NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Motion::MechanismExport Class Reference

Represents a Mechanism Export object used to export one or more Motion objects to a text file. More...

Public Types

enum  PositionOrientationFormat {
  PositionOrientationFormatTransformationMatrix, PositionOrientationFormatPqr, PositionOrientationFormatBryantAngles, PositionOrientationFormatEulerAngles,
  PositionOrientationFormatEulerParameters
}
 Format to export the position and orientation data. More...
 

Public Member Functions

void ExportMdef (const NXString &fileName, NXOpen::Motion::MechanismExport::PositionOrientationFormat posOrientFormat, bool exportEmptyInputFields, bool exportUnusedOptions, bool exportSubmechAsMdef, bool enablePublish, const NXString &publishedFolder, const std::vector< NXOpen::NXObject * > &objects)
 Exports selected objects to .mdef file
Created in NX12.0.0. More...
 
void ExportMdef (const char *fileName, NXOpen::Motion::MechanismExport::PositionOrientationFormat posOrientFormat, bool exportEmptyInputFields, bool exportUnusedOptions, bool exportSubmechAsMdef, bool enablePublish, const char *publishedFolder, const std::vector< NXOpen::NXObject * > &objects)
 Exports selected objects to .mdef file
Created in NX12.0.0. More...
 
void ExportPlmxml (const NXString &fileName, const std::vector< NXOpen::NXObject * > &objects)
 Exports Mechanism to .xml file. More...
 
void ExportPlmxml (const char *fileName, const std::vector< NXOpen::NXObject * > &objects)
 Exports Mechanism to .xml file. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

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

Created in NX12.0.0.

Member Enumeration Documentation

Format to export the position and orientation data.

Enumerator
PositionOrientationFormatTransformationMatrix 

Origin and X, Y, Z vectors.

PositionOrientationFormatPqr 

P, Q, R points.

PositionOrientationFormatBryantAngles 

Origin and Bryant angles.

PositionOrientationFormatEulerAngles 

Origin and Euler angles.

PositionOrientationFormatEulerParameters 

Origin and Euler parameters.

Member Function Documentation

void NXOpen::Motion::MechanismExport::ExportMdef ( const NXString fileName,
NXOpen::Motion::MechanismExport::PositionOrientationFormat  posOrientFormat,
bool  exportEmptyInputFields,
bool  exportUnusedOptions,
bool  exportSubmechAsMdef,
bool  enablePublish,
const NXString publishedFolder,
const std::vector< NXOpen::NXObject * > &  objects 
)

Exports selected objects to .mdef file
Created in NX12.0.0.



License requirements : mechanisms ("MECHANISMS")

Parameters
fileNameFull path to the .mdef file
posOrientFormatFormat to export the position and orientation data
exportEmptyInputFieldsWhen TRUE, exports data that do not have any values defined
exportUnusedOptionsWhen TRUE, exports data currently unused in the Motion objects
exportSubmechAsMdefWhen TRUE, export the submechanisms as .mdef files. Otherwise references them as .sim files.
enablePublishWhen TRUE, the publish option is enabled.
publishedFolderFull path to the published folder
objectsMotion objects to export
void NXOpen::Motion::MechanismExport::ExportMdef ( const char *  fileName,
NXOpen::Motion::MechanismExport::PositionOrientationFormat  posOrientFormat,
bool  exportEmptyInputFields,
bool  exportUnusedOptions,
bool  exportSubmechAsMdef,
bool  enablePublish,
const char *  publishedFolder,
const std::vector< NXOpen::NXObject * > &  objects 
)

Exports selected objects to .mdef file
Created in NX12.0.0.



License requirements : mechanisms ("MECHANISMS")

Parameters
fileNameFull path to the .mdef file
posOrientFormatFormat to export the position and orientation data
exportEmptyInputFieldsWhen TRUE, exports data that do not have any values defined
exportUnusedOptionsWhen TRUE, exports data currently unused in the Motion objects
exportSubmechAsMdefWhen TRUE, export the submechanisms as .mdef files. Otherwise references them as .sim files.
enablePublishWhen TRUE, the publish option is enabled.
publishedFolderFull path to the published folder
objectsMotion objects to export
void NXOpen::Motion::MechanismExport::ExportPlmxml ( const NXString fileName,
const std::vector< NXOpen::NXObject * > &  objects 
)

Exports Mechanism to .xml file.

If Motion part is included, exports all the Motion objects from it.
Created in NX12.0.0.

License requirements : mechanisms ("MECHANISMS")

Parameters
fileNameFull path of the .xml file
objectsMotion objects or Motion part tag
void NXOpen::Motion::MechanismExport::ExportPlmxml ( const char *  fileName,
const std::vector< NXOpen::NXObject * > &  objects 
)

Exports Mechanism to .xml file.

If Motion part is included, exports all the Motion objects from it.
Created in NX12.0.0.

License requirements : mechanisms ("MECHANISMS")

Parameters
fileNameFull path of the .xml file
objectsMotion objects or Motion part tag
tag_t NXOpen::Motion::MechanismExport::Tag ( ) const

Returns the tag of this object.


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.