NXOpen.UF.Attr.GetStringUserAttribute

Attr.GetStringUserAttribute()

Refer to UF_ATTR_get_string_user_attribute for documentation.

Signature: GetStringUserAttribute(objectArg, title, index)

Parameters:
  • objectArg (Tag) – The object holding the attribute
  • title (str) – The attribute title
  • index (int) – The array index (set to UF_ATTR_NOT_ARRAY if not an array)
Returns:

A Tuple

Return type:

A tuple consisting of (stringValue,hasAttribute)

stringValue(str): String attribute value (Free using UF_free() after use)

hasAttribute(bool): An attribute has been found

License requirements: None