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 theNXOpen.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 classNew in version NX9.0.0.
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. |
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. |
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. |
Method Detail¶
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.
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.