NXOpen.UF.Attr.GetBoolUserAttribute

Attr.GetBoolUserAttribute()

Refer to UF_ATTR_get_bool_user_attribute for documentation.

Signature: GetBoolUserAttribute(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,hasAttribute)

value(bool): The value, if any

hasAttribute(bool): An attribute has been found

License requirements: None