AttributePropertiesBuilderOperationType Enumeration

NXOpen.AttributePropertiesBuilder.OperationType is an alias for NXOpen.AttributePropertiesBuilderOperationType

class NXOpen.AttributePropertiesBuilderOperationType

Bases: object

It is used to determine the behaviors of attributes that has been mapped from TC, such as Hidden, Required, CopyFromOriginal, etc. Mapped attributes can be from Hardwired Attributes, Create Descriptor, Revise Descriptor or attribute mapping file. Proper operation type should be set when applicable, otherwise the system may not behave correctly. For example, if you ask if an attribute is required or not with OpType “None”, it will always say No. But the same attribute may be required for “Create”, or “Save As” or “Revise”, etc. So Attribute templates from Teamcenter are able to force different behaviors on attributes based on whether they are being shown in item creation, edit or saveAs.

Enum Members

Enum Member Enum Member Description
NotSet None. This should be chosen if attribute is not required for the operation.
Create Create. This should be chosen if attribute is required for create operation.
Revise Revise. This should be chosen if attribute is required for revise operation.
SaveAs SaveAs. This should be chosen if attribute is required for Save As operation.
Save Save. This should be chosen if attribute is required for save operation.
Delete Delete. This should be chosen if attribute is required for delete operation.
ValueOf()

Returns enum member equivalent to the value passed. Useful for bit operations of enum members.

Signature ValueOf(value)

Parameters:value – Any integer value or bit operation result of enum members:type value: int:returns: Enum member equivalent to the value passed.
Return type:Enum Member type.

New in version NX9.0.1.

License requirements: None.