NonMasterData Class¶
-
class
NXOpen.PDM.
NonMasterData
¶ Bases:
NXOpen.TransientObject
Represents a class that performs various operations on NonMaster Datasets
New in version NX11.0.0.
Methods¶
Method | Description |
---|---|
CreateNonMasterListForLogicalObject | Create NonMaster list for the selected logical Object |
Dispose | Frees the object from memory. |
EditNonMasterToCopyName | Sets the name the non-master part will get saved as. |
GetCopyNonMasterPartsOption | Get the nonmasters saveAs option for given logical object. |
GetNonMasterListForCopyLogicalObject | Gets NonMaster list for the given logical Object @return Non-master part file names |
IsNonMasterForLogicalObjectBeingCopied | Returns whether or not the non-master part specified for the given :py:class:`NXOpen.PDM.LogicalObject`will actually get saved during the save as operation. |
SetNonMasterSaveAsOption | Set the nonmasters saveAs option for given logical object. |
SetSelectedNonMasterToCopy | Sets whether or not the non-master part specified will actually get saved during the save as operation. |
Enumerations¶
NonMasterDataCopyNonMasterPartsOption Enumeration | This enum is used to specify which non-master parts should be copied to new part during the save as operation. |
Method Detail¶
CreateNonMasterListForLogicalObject¶
-
NonMasterData.
CreateNonMasterListForLogicalObject
¶ Create NonMaster list for the selected logical Object
Signature
CreateNonMasterListForLogicalObject(logicalObject)
Parameters: logicalObject ( NXOpen.PDM.LogicalObject
) –New in version NX11.0.0.
License requirements: None.
Dispose¶
-
NonMasterData.
Dispose
¶ Frees the object from memory.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Signature
Dispose()
New in version NX11.0.0.
License requirements: None.
EditNonMasterToCopyName¶
-
NonMasterData.
EditNonMasterToCopyName
¶ Sets the name the non-master part will get saved as.
It will get saved as the original non-master name if this method is not called.
Signature
EditNonMasterToCopyName(logicalObject, oldName, newName)
Parameters: - logicalObject (
NXOpen.PDM.LogicalObject
) – - oldName (str) – the non-master part whose save as name is being set here
- newName (str) – the new name
Returns: flag to indicate whether the newName is valid
Return type: bool
New in version NX11.0.0.
License requirements: None.
- logicalObject (
GetCopyNonMasterPartsOption¶
-
NonMasterData.
GetCopyNonMasterPartsOption
¶ Get the nonmasters saveAs option for given logical object.
Save As option can be one of these
NonMasterDataCopyNonMasterPartsOption.All
andNonMasterDataCopyNonMasterPartsOption.None
Signature
GetCopyNonMasterPartsOption(logicalObject)
Parameters: logicalObject ( NXOpen.PDM.LogicalObject
) –Returns: Return type: NXOpen.PDM.NonMasterDataCopyNonMasterPartsOption
New in version NX11.0.0.
License requirements: None.
GetNonMasterListForCopyLogicalObject¶
-
NonMasterData.
GetNonMasterListForCopyLogicalObject
¶ Gets NonMaster list for the given logical Object
Signature
GetNonMasterListForCopyLogicalObject(logicalObject)
Parameters: logicalObject ( NXOpen.PDM.LogicalObject
) –Returns: Non-master part file names Return type: list of str New in version NX11.0.0.
License requirements: None.
IsNonMasterForLogicalObjectBeingCopied¶
-
NonMasterData.
IsNonMasterForLogicalObjectBeingCopied
¶ Returns whether or not the non-master part specified for the given :py:class:`NXOpen.PDM.LogicalObject`will actually get saved during the save as operation.
Signature
IsNonMasterForLogicalObjectBeingCopied(logicalObject, partName)
Parameters: - logicalObject (
NXOpen.PDM.LogicalObject
) – - partName (str) – the non-master part that the caller wants to save or not save
Returns: True means that this non-master will be saved.
False means that this non-master will not be saved. :rtype: bool
New in version NX11.0.0.
License requirements: None.
- logicalObject (
SetNonMasterSaveAsOption¶
-
NonMasterData.
SetNonMasterSaveAsOption
¶ Set the nonmasters saveAs option for given logical object.
Save As option can be one of these
NonMasterDataCopyNonMasterPartsOption.All
andNonMasterDataCopyNonMasterPartsOption.None
Signature
SetNonMasterSaveAsOption(logicalObject, saveOption)
Parameters: - logicalObject (
NXOpen.PDM.LogicalObject
) – - saveOption (
NXOpen.PDM.NonMasterDataCopyNonMasterPartsOption
) –
New in version NX11.0.0.
License requirements: None.
- logicalObject (
SetSelectedNonMasterToCopy¶
-
NonMasterData.
SetSelectedNonMasterToCopy
¶ Sets whether or not the non-master part specified will actually get saved during the save as operation.
True means that it will be saved. False means that it will not be saved.
Signature
SetSelectedNonMasterToCopy(logicalObject, partName)
Parameters: - logicalObject (
NXOpen.PDM.LogicalObject
) – - partName (str) – the non-master part whose save option is being set here
New in version NX11.0.0.
License requirements: None.
- logicalObject (