SmartSaveContext Class¶
-
class
NXOpen.PDM.
SmartSaveContext
¶ Bases:
NXOpen.TransientObject
Represents smart save context
To create a new instance of this class, use
NXOpen.PDM.PdmSession.CreateSmartSaveContext()
New in version NX11.0.1.
Methods¶
Method | Description |
---|---|
Dispose | Frees the object from memory. |
GetSaveType | Returns the save operation type |
GetWorkObjectToRootObjectMap | Returns the set of work object to root object pairs from the context |
SetWorkObjectToRootObjectMap | Adds the given set of work object to root object pairs to the context |
Method Detail¶
Dispose¶
-
SmartSaveContext.
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.1.
License requirements: None.
GetSaveType¶
-
SmartSaveContext.
GetSaveType
¶ Returns the save operation type
Signature
GetSaveType()
Returns: Return type: NXOpen.PDM.SmartSaveBuilderSaveType
New in version NX11.0.1.
License requirements: None.
GetWorkObjectToRootObjectMap¶
-
SmartSaveContext.
GetWorkObjectToRootObjectMap
¶ Returns the set of work object to root object pairs from the context
Signature
GetWorkObjectToRootObjectMap()
Returns: a tuple Return type: A tuple consisting of (workObjects, rootObjects). workObjects is a list of NXOpen.TaggedObject
. array of work objects to be saved rootObjects is a list ofNXOpen.TaggedObject
. array of root objectsNew in version NX11.0.1.
License requirements: None.
SetWorkObjectToRootObjectMap¶
-
SmartSaveContext.
SetWorkObjectToRootObjectMap
¶ Adds the given set of work object to root object pairs to the context
Signature
SetWorkObjectToRootObjectMap(workObjects, rootObjects)
Parameters: - workObjects (list of
NXOpen.TaggedObject
) – array of work objects to be saved - rootObjects (list of
NXOpen.TaggedObject
) – array of root objects
New in version NX11.0.1.
License requirements: assemblies (“ASSEMBLIES MODULE”)
- workObjects (list of