RenameLinkedPartModulePartBuilder Class

class NXOpen.GeometricUtilities.RenameLinkedPartModulePartBuilder

Bases: NXOpen.Builder

Represents a Features.PartModule builder

To create a new instance of this class, use NXOpen.Features.FeatureCollection.CreateRenameLinkedPartModulePartBuilder()

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.
GetAllAssociatedLinkedPartModulePartTags Get all linked part module part tags associated with given main part.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetLinkedPartNameToBeSavedAs Retrieve new name of linked part module part added earlier for Save As.
GetObject Returns the object currently being edited by this builder.
SetLinkedPartNameToBeSavedAs Add linked part module part tag and its new name to perform Save As along with its main part.
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

GetAllAssociatedLinkedPartModulePartTags

RenameLinkedPartModulePartBuilder.GetAllAssociatedLinkedPartModulePartTags

Get all linked part module part tags associated with given main part.

This function will also load linked parts if they are not loaded.

Signature GetAllAssociatedLinkedPartModulePartTags(mainPartTag)

Parameters:mainPartTag (NXOpen.Part) – the main part for which linked part module parts are to be queried
Returns:all associated linked part module parts
Return type:list of NXOpen.Part

New in version NX9.0.0.

License requirements: None.

GetLinkedPartNameToBeSavedAs

RenameLinkedPartModulePartBuilder.GetLinkedPartNameToBeSavedAs

Overloaded method GetLinkedPartNameToBeSavedAs

  • GetLinkedPartNameToBeSavedAs(linkedPartTag)
  • GetLinkedPartNameToBeSavedAs()

-------------------------------------

Retrieve new name of linked part module part added earlier for “Save As”.

Signature GetLinkedPartNameToBeSavedAs(linkedPartTag)

Parameters:linkedPartTag (NXOpen.Part) – the linked part
Returns:new linked part file name
Return type:str

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Retrieve all linked part module parts and their associated new names.

Signature GetLinkedPartNameToBeSavedAs()

Returns:new linked part file name
Return type:list of str

New in version NX9.0.0.

License requirements: None.

-------------------------------------

SetLinkedPartNameToBeSavedAs

RenameLinkedPartModulePartBuilder.SetLinkedPartNameToBeSavedAs

Overloaded method SetLinkedPartNameToBeSavedAs

  • SetLinkedPartNameToBeSavedAs(linkedPartTag, fileName)
  • SetLinkedPartNameToBeSavedAs(linkedPartTag, fileName)

-------------------------------------

Add linked part module part tag and its new name to perform “Save As” along with its main part.

Signature SetLinkedPartNameToBeSavedAs(linkedPartTag, fileName)

Parameters:
  • linkedPartTag (NXOpen.Part) – the linked part
  • fileName (str) – new linked part file name

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Add multiple linked part module part tags and their new names to perform “Save As” along with its main part.

Signature SetLinkedPartNameToBeSavedAs(linkedPartTag, fileName)

Parameters:
  • linkedPartTag (list of NXOpen.Part) – the linked part
  • fileName (list of str) – new linked part file name

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Validate

RenameLinkedPartModulePartBuilder.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.