Submitted by uwe.a on Mon, 06/23/2014 - 07:10
Forums:
Hi,
looking for solution using GetUserAttributes Method filtering attributes from type of string
Dim attr_info() As NXObject.AttributeInformation = sourcePart.GetUserAttributes
For Each ainfo As NXObject.AttributeInformation in attr_info
if ainfo.attributetype.sting is true ....
....
thx in ad
text formating
Hi,
I'm looking for solution using GetUserAttributes Method filtering attributes from type of string
Dim attr_info() As NXObject.AttributeInformation = sourcePart.GetUserAttributes
For Each ainfo As NXObject.AttributeInformation in attr_info
if ainfo.attributetype.sting is true .... ....
thx in ad
re: attribute type
Check the attribute type from the attributeInfo, do something based on the type. See code snippet below:
Dim attr_info() As NXObject.AttributeInformation = workPart.GetUserAttributes
For Each ainfo As NXObject.AttributeInformation In attr_info
'if type is string, do something with the value
If ainfo.Type = NXObject.AttributeType.String Then
lw.WriteLine(ainfo.StringValue)
End If
Next
thank you - I cannot the
thank you - I cannot the trees in the forrest ;-)