MechanismExport Class¶
-
class
NXOpen.Motion.
MechanismExport
¶ Bases:
object
Represents a Mechanism Export object used to export one or more Motion objects to a text file.
To obtain an instance of this class, refer to
NXOpen.Motion.MotionSession
New in version NX12.0.0.
Methods¶
Method | Description |
---|---|
ExportMdef | Exports selected objects to . |
ExportPlmxml | Exports Mechanism to . |
Enumerations¶
MechanismExportPositionOrientationFormat Enumeration | Format to export the position and orientation data. |
Method Detail¶
ExportMdef¶
-
MechanismExport.
ExportMdef
¶ Exports selected objects to .
mdef file
Signature
ExportMdef(fileName, posOrientFormat, exportEmptyInputFields, exportUnusedOptions, exportSubmechAsMdef, enablePublish, publishedFolder, objects)
Parameters: - fileName (str) – Full path to the .mdef file
- posOrientFormat (
NXOpen.Motion.MechanismExportPositionOrientationFormat
) – Format to export the position and orientation data - exportEmptyInputFields (bool) – When TRUE, exports data that do not have any values defined
- exportUnusedOptions (bool) – When TRUE, exports data currently unused in the Motion objects
- exportSubmechAsMdef (bool) – When TRUE, export the submechanisms as .mdef files. Otherwise references them as .sim files.
- enablePublish (bool) – When TRUE, the publish option is enabled.
- publishedFolder (str) – Full path to the published folder
- objects (list of
NXOpen.NXObject
) – Motion objects to export
New in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
ExportPlmxml¶
-
MechanismExport.
ExportPlmxml
¶ Exports Mechanism to .
xml file. If Motion part is included, exports all the Motion objects from it.
Signature
ExportPlmxml(fileName, objects)
Parameters: - fileName (str) – Full path of the .xml file
- objects (list of
NXOpen.NXObject
) – Motion objects or Motion part tag
New in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)