NXOpen.UF.Ugmgr.ValidateAlternatePartId

Ugmgr.ValidateAlternatePartId()

Refer to UF_UGMGR_validate_alternate_part_id for documentation.

Signature: ValidateAlternatePartId(partTag, altItemId, altRevId, context, idType)

Parameters:
  • partTag (Tag) – Tag of part to assign thealternate ID to.
  • altItemId (str) – Alternate Item ID. May beNULL.
  • altRevId (str) – Alternate Revision ID. May beNULL.
  • context (str) – Context for which alternatename is being validated. May be NULL.
  • idType (str) – ID type for which alternatename is being validated. May be NULL.
Returns:

A Tuple

Return type:

A tuple consisting of (modifiedItemId,modifiedRevId,status,reason)

modifiedItemId(str): Modified Alternate Item ID.Will be an empty string if no amendment. The string must be freed after use with UF_free.

modifiedRevId(str): Modified Alternate RevisionID. Will be an empty string if no amendment. The string must be freed after use with UF_free.

status(`NXOpen.UF.Ugmgr.AltIdStatus Refer to UF_UGMGR_alt_id_status_e for documentation.`): Enum code indicating:UF_UGMGR_alt_id_valid - accept UF_UGMGR_alt_id_invalid - reject UF_UGMGR_alt_id_modified - input modified.

reason(str): Reason. The string must befreed after use with UF_free.

License requirements: None