NXOpen.UF.Attr.GetRealUserAttribute

Attr.GetRealUserAttribute()

Refer to UF_ATTR_get_real_user_attribute for documentation.

Signature: GetRealUserAttribute(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 (value,unitType,hasAttribute)

value(float): The value, if any. If attribute has units, this value is in the returned units.

unitType(Tag): The unit type tag (NULL_TAG may be returned if unit-less)

hasAttribute(bool): An attribute has been found

License requirements: None