MachineLibraryBuilder Class¶
-
class
NXOpen.SIM.
MachineLibraryBuilder
¶ Bases:
NXOpen.Builder
This class is used for the Machine Library Dialog.
Calling
Builder.Commit()
on this builder will only return None.Use the
Part
class to create a MachineLibraryBuilder object.New in version NX10.0.2.
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. |
EditMachineLibrary | Edit a specific machine of the database. |
GetAllAttributeNames | Returns a array of the library attributes. |
GetAllMachineNames | Returns a array of the machine names(librefs) that are in the machine database. |
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. |
GetValue | Returns the attribute value of a specific machine. |
InsertEntryToMachineLibrary | Insert a machine entry to the machine_database. |
RemoveEntryFromMachineLibrary | Removes a machine entry from the machine_database. |
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¶
EditMachineLibrary¶
-
MachineLibraryBuilder.
EditMachineLibrary
¶ Edit a specific machine of the database.
That will write the machine_database.dat.
Signature
EditMachineLibrary(machineName, attName, value)
Parameters: - machineName (str) – machine name (libref)
- attName (str) – library attribute name
- value (str) – the new value that will be set
New in version NX10.0.2.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
GetAllAttributeNames¶
-
MachineLibraryBuilder.
GetAllAttributeNames
¶ Returns a array of the library attributes.
This function allocates the memory for attributeNames. The caller is responsible to deallocate the memory.
Signature
GetAllAttributeNames()
Returns: array of all attribute names Return type: list of str New in version NX10.0.3.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
GetAllMachineNames¶
-
MachineLibraryBuilder.
GetAllMachineNames
¶ Returns a array of the machine names(librefs) that are in the machine database.
This function allocates the memory for machineNames. The caller is responsible to deallocate the memory.
Signature
GetAllMachineNames()
Returns: array of all machine names (libref) Return type: list of str New in version NX10.0.3.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
GetValue¶
-
MachineLibraryBuilder.
GetValue
¶ Returns the attribute value of a specific machine.
Signature
GetValue(machineName, attName)
Parameters: - machineName (str) – machine name (libref)
- attName (str) – library attribute name
Returns: Return type: str
New in version NX10.0.2.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
InsertEntryToMachineLibrary¶
-
MachineLibraryBuilder.
InsertEntryToMachineLibrary
¶ Insert a machine entry to the machine_database.
dat. The libref is the name of the machine entry, that is copied, the libref appended by a count and the new entry is put in the list as next entry. If the libref is empty, a default entry is add to the bottom of the list.
Signature
InsertEntryToMachineLibrary(selectedMachineName)
Parameters: selectedMachineName (str) – machine name (libref), that will copied Returns: machine name (libref), of the new machien entry Return type: str New in version NX10.0.3.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
RemoveEntryFromMachineLibrary¶
-
MachineLibraryBuilder.
RemoveEntryFromMachineLibrary
¶ Removes a machine entry from the machine_database.
dat. The libref is the name of the machine entry, that will reomved from the Library.
Signature
RemoveEntryFromMachineLibrary(machineName)
Parameters: machineName (str) – machine name (libref) New in version NX10.0.3.
License requirements: ug_isv_full (“Full functionality for Integrated Simulation and Verification”) OR nx_isv_mtb (“Machine Tool Builder”)
Validate¶
-
MachineLibraryBuilder.
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.