Manage3DModelsBuilder Class¶
-
class
NXOpen.AME.
Manage3DModelsBuilder
¶ Bases:
NXOpen.Builder
Represents the builder that is used to assign 3D models to a
NXOpen.AME.ProductDefinition
To create a new instance of this class, use
NXOpen.AME.AMEManager.CreateManage3dmodelsBuilder()
New in version NX11.0.0.
Properties¶
Property | Description |
---|---|
SelectedProduct | Returns the selected NXOpen.AME.AspectNode |
Tag | Returns the Tag for this object. |
Methods¶
Method | Description |
---|---|
Add3dModel | Assigns the given 3d model to the associated NXOpen.AME.ProductDefinition |
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. |
GetDefaultModel | Gets the default 3d model from the associated NXOpen.AME.ProductDefinition |
GetObject | Returns the object currently being edited by this builder. |
Remove3dModel | Removes the given 3D Model from the associated NXOpen.AME.ProductDefinition |
ResetDefaultModel | Reset the default 3d model from the associated NXOpen.AME.ProductDefinition |
SetDefaultModel | Sets the given 3d model as default to the associated NXOpen.AME.ProductDefinition |
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. |
Property Detail¶
SelectedProduct¶
-
Manage3DModelsBuilder.
SelectedProduct
¶ Returns the selected
NXOpen.AME.AspectNode
-------------------------------------
Getter Method
Signature
SelectedProduct
Returns: Return type: NXOpen.AME.SelectAMEBaseNode
New in version NX11.0.0.
License requirements: None.
Method Detail¶
Add3dModel¶
-
Manage3DModelsBuilder.
Add3dModel
¶ Assigns the given 3d model to the associated
NXOpen.AME.ProductDefinition
Signature
Add3dModel(fileNameString)
Parameters: fileNameString (str) – New in version NX11.0.0.
License requirements: None.
GetDefaultModel¶
-
Manage3DModelsBuilder.
GetDefaultModel
¶ Gets the default 3d model from the associated
NXOpen.AME.ProductDefinition
Signature
GetDefaultModel()
Returns: Return type: str New in version NX11.0.0.
License requirements: None.
Remove3dModel¶
-
Manage3DModelsBuilder.
Remove3dModel
¶ Removes the given 3D Model from the associated
NXOpen.AME.ProductDefinition
Signature
Remove3dModel(fileNameString)
Parameters: fileNameString (str) – New in version NX11.0.0.
License requirements: None.
ResetDefaultModel¶
-
Manage3DModelsBuilder.
ResetDefaultModel
¶ Reset the default 3d model from the associated
NXOpen.AME.ProductDefinition
Signature
ResetDefaultModel()
New in version NX11.0.0.
License requirements: None.
SetDefaultModel¶
-
Manage3DModelsBuilder.
SetDefaultModel
¶ Sets the given 3d model as default to the associated
NXOpen.AME.ProductDefinition
Signature
SetDefaultModel(fileNameString)
Parameters: fileNameString (str) – New in version NX11.0.0.
License requirements: None.
Validate¶
-
Manage3DModelsBuilder.
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.