NXOpen.UF.Attr.GetUserAttributeLockWithTitleAndType

Attr.GetUserAttributeLockWithTitleAndType()

Refer to UF_ATTR_get_user_attribute_lock_with_title_and_type for documentation.

Signature: GetUserAttributeLockWithTitleAndType(objectArg, title, type, index)

Parameters:
  • objectArg (Tag) – The object holding the attribute
  • title (str) – The attribute title
  • type (int) – The attribute type Valid values: UF_ATTR_integer UF_ATTR_real UF_ATTR_time UF_ATTR_null UF_ATTR_string UF_ATTR_bool UF_ATTR_any NOTE: If UF_ATTR_any is used, the first attribute encountered that matches the given title (and index), is returned
  • index (int) – The array index (set to UF_ATTR_NOT_ARRAY if not an array)
Returns:

A Tuple

Return type:

A tuple consisting of (isLocked,hasAttribute)

isLocked(bool): The lock status of the attribute. Valid only if the attribute is set.

hasAttribute(bool): A set attribute has been found

License requirements: None