AttributeGroupReviseBuilder Class

class NXOpen.PDM.AttributeGroupReviseBuilder

Bases: NXOpen.Builder

Represents an attribute group revise builder.

Given a list of existing attribute groups for an attribute group owner, a new revision for each attribute group is created.

Note: The Builder.Commit() returns None for this builder. Use the NXOpen.PDM.AttributeGroupReviseBuilder.GetRevisedAttributeGroups() to get the successfully revised attribute groups after the builder is committed.

Use NXOpen.PDM.IAttributeGroupOwner.CreateAttributeGroupReviseBuilder() to create an instance of this class

New in version NX9.0.0.

Properties

Property Description
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
Destroy Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetLogicalObjects Returns list of logical objects created by the builder for use during the revise operation.
GetObject Returns the object currently being edited by this builder.
GetOperationErrors Returns the NXOpen.PDM.OperationErrors object containing information about the attribute groups that failed to revise.
GetOperationFailures Returns the operation failures during revise of the attribute groups
GetRevisedAttributeGroups Returns a list of attribute groups for use during the revise operation.
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Enumerations

AttributeGroupReviseBuilderSaveAsActionType Enumeration Represents the save as action on a managed attribute group

Method Detail

GetLogicalObjects

AttributeGroupReviseBuilder.GetLogicalObjects

Returns list of logical objects created by the builder for use during the revise operation.

Signature GetLogicalObjects()

Returns:
Return type:list of NXOpen.PDM.LogicalObject

New in version NX11.0.0.

License requirements: None.

GetOperationErrors

AttributeGroupReviseBuilder.GetOperationErrors

Returns the NXOpen.PDM.OperationErrors object containing information about the attribute groups that failed to revise.

Signature GetOperationErrors()

Returns:
Return type:NXOpen.PDM.OperationErrors

New in version NX9.0.0.

License requirements: None.

GetOperationFailures

AttributeGroupReviseBuilder.GetOperationFailures

Returns the operation failures during revise of the attribute groups

Signature GetOperationFailures()

Returns:
Return type:NXOpen.ErrorList

New in version NX11.0.0.

License requirements: None.

GetRevisedAttributeGroups

AttributeGroupReviseBuilder.GetRevisedAttributeGroups

Returns a list of attribute groups for use during the revise operation.

Before the builder is committed this list of attribute groups is used to set any required user attribute. The attribute groups do not exist in Teamcenter until the builder is committed. After the builder is committed the list only contains successfully revised attribute groups. Any attribute groups that failed to revise are removed from the list and are no longer valid after commit. Call this method after commit to get a list of the successfully revised attribute groups.

Signature GetRevisedAttributeGroups()

Returns:
Return type:list of NXOpen.PDM.AttributeGroup

New in version NX9.0.0.

License requirements: None.

Validate

AttributeGroupReviseBuilder.Validate

Validate whether the inputs to the component are sufficient for commit to be called.

If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

Signature Validate()

Returns:Was self validation successful
Return type:bool

New in version NX3.0.1.

License requirements: None.