GetAttributeTitlesByType Method is Deprecated

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

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

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 trees in the forrest ;-)