NX Open C++ Reference Guide
|
Represents a Mechanism Import object used to import a Motion model from a text file. More...
Public Types | |
enum | NamingRule { NamingRuleNone, NamingRuleAddPrefix, NamingRuleAddSuffix } |
Naming Rule type to modify imported object's name. More... | |
Public Member Functions | |
void | ImportFromSubassembly (NXOpen::Assemblies::Component *compOcc, NXOpen::Part *motionPart, NXOpen::Part *workPart, NXOpen::Motion::MechanismImport::NamingRule namingRule, const NXString &appendixString, bool reportToInfoWindow, bool abortOnFailure) |
Imports a Motion Definition (.sim) Part. More... | |
void | ImportFromSubassembly (NXOpen::Assemblies::Component *compOcc, NXOpen::Part *motionPart, NXOpen::Part *workPart, NXOpen::Motion::MechanismImport::NamingRule namingRule, const char *appendixString, bool reportToInfoWindow, bool abortOnFailure) |
Imports a Motion Definition (.sim) Part. More... | |
void | ImportMdef (NXOpen::NXObject *workPart, const NXString &fileName, NXOpen::Motion::MechanismImport::NamingRule namingRule, const NXString &addString, bool reportToInfoWindow, bool replaceExistingElements) |
Imports a Motion Definition (.mdef) file. More... | |
void | ImportMdef (NXOpen::NXObject *workPart, const char *fileName, NXOpen::Motion::MechanismImport::NamingRule namingRule, const char *addString, bool reportToInfoWindow, bool replaceExistingElements) |
Imports a Motion Definition (.mdef) file. More... | |
void | ImportXML (NXOpen::Part *workPart, const NXString &fileName, NXOpen::Motion::MechanismImport::NamingRule namingRule, const NXString &appendixString, bool reportToInfoWindow) |
Imports a Motion Definition (.XML) file. More... | |
void | ImportXML (NXOpen::Part *workPart, const char *fileName, NXOpen::Motion::MechanismImport::NamingRule namingRule, const char *appendixString, bool reportToInfoWindow) |
Imports a Motion Definition (.XML) file. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a Mechanism Import object used to import a Motion model from a text file.
To obtain an instance of this class, refer to NXOpen::Motion::MotionSession
Created in NX12.0.0.
void NXOpen::Motion::MechanismImport::ImportFromSubassembly | ( | NXOpen::Assemblies::Component * | compOcc, |
NXOpen::Part * | motionPart, | ||
NXOpen::Part * | workPart, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const NXString & | appendixString, | ||
bool | reportToInfoWindow, | ||
bool | abortOnFailure | ||
) |
Imports a Motion Definition (.sim) Part.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
compOcc | the selected component part occ |
motionPart | the motion part which the mechanism objects are imported from |
workPart | the current work part |
namingRule | enum to rule the naming behavior of the imported objects |
appendixString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
abortOnFailure | Flag to rule whether to abort the process when there is error occurrs |
void NXOpen::Motion::MechanismImport::ImportFromSubassembly | ( | NXOpen::Assemblies::Component * | compOcc, |
NXOpen::Part * | motionPart, | ||
NXOpen::Part * | workPart, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const char * | appendixString, | ||
bool | reportToInfoWindow, | ||
bool | abortOnFailure | ||
) |
Imports a Motion Definition (.sim) Part.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
compOcc | the selected component part occ |
motionPart | the motion part which the mechanism objects are imported from |
workPart | the current work part |
namingRule | enum to rule the naming behavior of the imported objects |
appendixString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
abortOnFailure | Flag to rule whether to abort the process when there is error occurrs |
void NXOpen::Motion::MechanismImport::ImportMdef | ( | NXOpen::NXObject * | workPart, |
const NXString & | fileName, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const NXString & | addString, | ||
bool | reportToInfoWindow, | ||
bool | replaceExistingElements | ||
) |
Imports a Motion Definition (.mdef) file.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
workPart | workpart |
fileName | Full path to the .mdef file |
namingRule | namingrule |
addString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
replaceExistingElements | Flag to replace elements with same names |
void NXOpen::Motion::MechanismImport::ImportMdef | ( | NXOpen::NXObject * | workPart, |
const char * | fileName, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const char * | addString, | ||
bool | reportToInfoWindow, | ||
bool | replaceExistingElements | ||
) |
Imports a Motion Definition (.mdef) file.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
workPart | workpart |
fileName | Full path to the .mdef file |
namingRule | namingrule |
addString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
replaceExistingElements | Flag to replace elements with same names |
void NXOpen::Motion::MechanismImport::ImportXML | ( | NXOpen::Part * | workPart, |
const NXString & | fileName, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const NXString & | appendixString, | ||
bool | reportToInfoWindow | ||
) |
Imports a Motion Definition (.XML) file.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
workPart | workpart |
fileName | Full path to the .xml file |
namingRule | namingrule |
appendixString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
void NXOpen::Motion::MechanismImport::ImportXML | ( | NXOpen::Part * | workPart, |
const char * | fileName, | ||
NXOpen::Motion::MechanismImport::NamingRule | namingRule, | ||
const char * | appendixString, | ||
bool | reportToInfoWindow | ||
) |
Imports a Motion Definition (.XML) file.
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
workPart | workpart |
fileName | Full path to the .xml file |
namingRule | namingrule |
appendixString | string to add when NamingRule is AddPrefix or AddSuffix |
reportToInfoWindow | Flag to report import status in the information window |
tag_t NXOpen::Motion::MechanismImport::Tag | ( | ) | const |
Returns the tag of this object.