NX Open C++ Reference Guide
|
Represents motion session
To obtain an instance of this class, refer to NXOpen::Session
Created in NX5.0.0.
More...
Public Member Functions | |
NXString | CloneSimulation (NXOpen::NXObject *masterPart, const NXString &motionSimName) |
Clones the Simulation. More... | |
NXString | CloneSimulation (NXOpen::NXObject *masterPart, const char *motionSimName) |
Clones the Simulation. More... | |
NXOpen::NXObject * | ConstraintsToMotionObject (NXOpen::NXObject *scenarioPart, NXOpen::NXObject *masterPart) |
Converts mating conditions and constraints to links and joints. More... | |
NXString | CreateNamingSimulation (NXOpen::NXObject *masterPart, const NXString &inputSimName) |
Creates the Non-master Simulation in NX Manager mode with an input name. More... | |
NXString | CreateNamingSimulation (NXOpen::NXObject *masterPart, const char *inputSimName) |
Creates the Non-master Simulation in NX Manager mode with an input name. More... | |
NXOpen::Motion::PhysicsConversionBuilder * | CreatePhysicsConversionBuilder (NXOpen::NXObject *scenarioPart) |
Creates a NXOpen::Motion::PhysicsConversionBuilder. More... | |
NXString | CreateSimulation (NXOpen::NXObject *masterPart) |
Creates the Simulation. More... | |
void | DeleteSimulation (NXOpen::NXObject *masterPart, const NXString &motionSimName) |
Deletes the Simulation. More... | |
void | DeleteSimulation (NXOpen::NXObject *masterPart, const char *motionSimName) |
Deletes the Simulation. More... | |
void | DirectOpenSimulation (const NXString &motionSimName) |
Opens the Simulation directly. More... | |
void | DirectOpenSimulation (const char *motionSimName) |
Opens the Simulation directly. More... | |
NXOpen::Motion::MotionEnvironment * | Environments () |
Returns the NXOpen::Motion::MotionEnvironment belonging to this part Created in NX7.5.0. More... | |
void | ExportProcessSimulateKinematics () |
Exports kinematics for Process Simulate Created in NX8.5.0. More... | |
NXOpen::NXObject * | FixLinkToGround (NXOpen::NXObject *link) |
Fixes the link to ground. More... | |
NXString | GetFullName (NXOpen::NXObject *masterPart, const NXString &scenarioName) |
Gets the full name for a scenario name, which is located in motion subfolder of master part. More... | |
NXString | GetFullName (NXOpen::NXObject *masterPart, const char *scenarioName) |
Gets the full name for a scenario name, which is located in motion subfolder of master part. More... | |
std::vector< NXOpen::NXObject * > | GetFunctionReferencedMotionObjects (NXOpen::NXObject *scenarioPart, NXOpen::Motion::MotionFunction *funcObject) |
Gets function referenced motion objects. More... | |
std::vector< NXOpen::NXObject * > | GetFunctionReferencingMotionObjects (NXOpen::NXObject *scenarioPart, NXOpen::Motion::MotionFunction *funcObject) |
Gets function referencing motion objects. More... | |
std::vector < NXOpen::Motion::MotionFunction * > | GetReferencedFunctions (NXOpen::NXObject *scenarioPart, NXOpen::NXObject *originObject) |
Gets the referenced functions. More... | |
std::vector< NXOpen::NXObject * > | GetReferencedMotionObjects (NXOpen::NXObject *scenarioPart, NXOpen::NXObject *originObject) |
Gets the referenced motion objects. More... | |
std::vector < NXOpen::Motion::MotionFunction * > | GetReferencingFunctions (NXOpen::NXObject *scenarioPart, NXOpen::NXObject *originObject) |
Gets the referencing functions. More... | |
std::vector< NXOpen::NXObject * > | GetReferencingMotionObjects (NXOpen::NXObject *scenarioPart, NXOpen::NXObject *originObject) |
Gets the referencing motion objects. More... | |
std::vector< NXString > | GetScenarioNames (NXOpen::NXObject *masterPart) |
Gets all scenario names from motion subfolder of master part. More... | |
void | InitializeMechanisms () |
Initializes the mech More... | |
void | InitializeSimulation (NXOpen::Part *simulationPart) |
Initializes the motion simulation context for the loaded motion part Created in NX12.0.0. More... | |
NXOpen::Motion::MechanismExport * | MechanismExport () |
Returns the NXOpen::Motion::MechanismExport object belonging to this part Created in NX12.0.0. More... | |
NXOpen::Motion::MechanismImport * | MechanismImport () |
Returns the NXOpen::Motion::MechanismImport object belonging to this part Created in NX12.0.0. More... | |
NXOpen::Motion::MotionMethods * | MotionMethods () |
Returns the NXOpen::Motion::MotionMethods belonging to this part Created in NX8.0.0. More... | |
NXOpen::Motion::PostProcess * | PostProcess () |
Returns the NXOpen::Motion::PostProcess belonging to this part Created in NX7.5.0. More... | |
void | ReparentSimulation (const NXString &motionSimFullName, const NXString &destinationDirectory) |
Reparents the Simulation. More... | |
void | ReparentSimulation (const char *motionSimFullName, const char *destinationDirectory) |
Reparents the Simulation. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents motion session
To obtain an instance of this class, refer to NXOpen::Session
Created in NX5.0.0.
NXString NXOpen::Motion::MotionSession::CloneSimulation | ( | NXOpen::NXObject * | masterPart, |
const NXString & | motionSimName | ||
) |
Clones the Simulation.
masterPart | the master part |
motionSimName | motion simulation part which ready to be cloned |
NXString NXOpen::Motion::MotionSession::CloneSimulation | ( | NXOpen::NXObject * | masterPart, |
const char * | motionSimName | ||
) |
Clones the Simulation.
masterPart | the master part |
motionSimName | motion simulation part which ready to be cloned |
NXOpen::NXObject* NXOpen::Motion::MotionSession::ConstraintsToMotionObject | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::NXObject * | masterPart | ||
) |
Converts mating conditions and constraints to links and joints.
scenarioPart | the scenario part object |
masterPart | the master part object |
NXString NXOpen::Motion::MotionSession::CreateNamingSimulation | ( | NXOpen::NXObject * | masterPart, |
const NXString & | inputSimName | ||
) |
Creates the Non-master Simulation in NX Manager mode with an input name.
masterPart | the master_part |
inputSimName | the input simulation name |
NXString NXOpen::Motion::MotionSession::CreateNamingSimulation | ( | NXOpen::NXObject * | masterPart, |
const char * | inputSimName | ||
) |
Creates the Non-master Simulation in NX Manager mode with an input name.
masterPart | the master_part |
inputSimName | the input simulation name |
NXOpen::Motion::PhysicsConversionBuilder* NXOpen::Motion::MotionSession::CreatePhysicsConversionBuilder | ( | NXOpen::NXObject * | scenarioPart | ) |
Creates a NXOpen::Motion::PhysicsConversionBuilder.
scenarioPart | scenario part |
NXString NXOpen::Motion::MotionSession::CreateSimulation | ( | NXOpen::NXObject * | masterPart | ) |
Creates the Simulation.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
masterPart | the master_part |
void NXOpen::Motion::MotionSession::DeleteSimulation | ( | NXOpen::NXObject * | masterPart, |
const NXString & | motionSimName | ||
) |
Deletes the Simulation.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
masterPart | the master_part |
motionSimName | motion simulation part which ready to be deleted |
void NXOpen::Motion::MotionSession::DeleteSimulation | ( | NXOpen::NXObject * | masterPart, |
const char * | motionSimName | ||
) |
Deletes the Simulation.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
masterPart | the master_part |
motionSimName | motion simulation part which ready to be deleted |
void NXOpen::Motion::MotionSession::DirectOpenSimulation | ( | const NXString & | motionSimName | ) |
Opens the Simulation directly.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
motionSimName | motion simulation part name |
void NXOpen::Motion::MotionSession::DirectOpenSimulation | ( | const char * | motionSimName | ) |
Opens the Simulation directly.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
motionSimName | motion simulation part name |
NXOpen::Motion::MotionEnvironment* NXOpen::Motion::MotionSession::Environments | ( | ) |
Returns the NXOpen::Motion::MotionEnvironment belonging to this part
Created in NX7.5.0.
void NXOpen::Motion::MotionSession::ExportProcessSimulateKinematics | ( | ) |
Exports kinematics for Process Simulate
Created in NX8.5.0.
License requirements : mechanisms ("MECHANISMS")
NXOpen::NXObject* NXOpen::Motion::MotionSession::FixLinkToGround | ( | NXOpen::NXObject * | link | ) |
Fixes the link to ground.
link | the link object |
NXString NXOpen::Motion::MotionSession::GetFullName | ( | NXOpen::NXObject * | masterPart, |
const NXString & | scenarioName | ||
) |
Gets the full name for a scenario name, which is located in motion subfolder of master part.
masterPart | the master part object |
scenarioName | scenario name to check (with or without extension) |
NXString NXOpen::Motion::MotionSession::GetFullName | ( | NXOpen::NXObject * | masterPart, |
const char * | scenarioName | ||
) |
Gets the full name for a scenario name, which is located in motion subfolder of master part.
masterPart | the master part object |
scenarioName | scenario name to check (with or without extension) |
std::vector<NXOpen::NXObject *> NXOpen::Motion::MotionSession::GetFunctionReferencedMotionObjects | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::Motion::MotionFunction * | funcObject | ||
) |
Gets function referenced motion objects.
scenarioPart | scenario part |
funcObject | funcobject |
std::vector<NXOpen::NXObject *> NXOpen::Motion::MotionSession::GetFunctionReferencingMotionObjects | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::Motion::MotionFunction * | funcObject | ||
) |
Gets function referencing motion objects.
scenarioPart | scenario part |
funcObject | funcobject |
std::vector<NXOpen::Motion::MotionFunction *> NXOpen::Motion::MotionSession::GetReferencedFunctions | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::NXObject * | originObject | ||
) |
Gets the referenced functions.
scenarioPart | scenario part |
originObject | Non-function motion object. |
std::vector<NXOpen::NXObject *> NXOpen::Motion::MotionSession::GetReferencedMotionObjects | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::NXObject * | originObject | ||
) |
Gets the referenced motion objects.
scenarioPart | scenario part |
originObject | Non-function motion object. For function, please use Motion::MotionSession::GetReferencedMotionObjects . |
std::vector<NXOpen::Motion::MotionFunction *> NXOpen::Motion::MotionSession::GetReferencingFunctions | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::NXObject * | originObject | ||
) |
Gets the referencing functions.
scenarioPart | scenario part |
originObject | Non-function motion object. |
std::vector<NXOpen::NXObject *> NXOpen::Motion::MotionSession::GetReferencingMotionObjects | ( | NXOpen::NXObject * | scenarioPart, |
NXOpen::NXObject * | originObject | ||
) |
Gets the referencing motion objects.
scenarioPart | scenario part |
originObject | Non-function motion object. For function, please use Motion::MotionSession::GetReferencingMotionObjects . |
std::vector<NXString> NXOpen::Motion::MotionSession::GetScenarioNames | ( | NXOpen::NXObject * | masterPart | ) |
Gets all scenario names from motion subfolder of master part.
masterPart | the master part object |
void NXOpen::Motion::MotionSession::InitializeMechanisms | ( | ) |
Initializes the mech
Use NXOpen::Motion::MotionSession::InitializeSimulation
Created in NX6.0.0.
License requirements : mechanisms ("MECHANISMS")
void NXOpen::Motion::MotionSession::InitializeSimulation | ( | NXOpen::Part * | simulationPart | ) |
Initializes the motion simulation context for the loaded motion part
Created in NX12.0.0.
License requirements : mechanisms ("MECHANISMS")
simulationPart | the loaded motion simulation part |
NXOpen::Motion::MechanismExport* NXOpen::Motion::MotionSession::MechanismExport | ( | ) |
Returns the NXOpen::Motion::MechanismExport object belonging to this part
Created in NX12.0.0.
NXOpen::Motion::MechanismImport* NXOpen::Motion::MotionSession::MechanismImport | ( | ) |
Returns the NXOpen::Motion::MechanismImport object belonging to this part
Created in NX12.0.0.
NXOpen::Motion::MotionMethods* NXOpen::Motion::MotionSession::MotionMethods | ( | ) |
Returns the NXOpen::Motion::MotionMethods belonging to this part
Created in NX8.0.0.
NXOpen::Motion::PostProcess* NXOpen::Motion::MotionSession::PostProcess | ( | ) |
Returns the NXOpen::Motion::PostProcess belonging to this part
Created in NX7.5.0.
void NXOpen::Motion::MotionSession::ReparentSimulation | ( | const NXString & | motionSimFullName, |
const NXString & | destinationDirectory | ||
) |
Reparents the Simulation.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
motionSimFullName | motion simulation full name |
destinationDirectory | destination directory |
void NXOpen::Motion::MotionSession::ReparentSimulation | ( | const char * | motionSimFullName, |
const char * | destinationDirectory | ||
) |
Reparents the Simulation.
Created in NX5.0.0.
License requirements : mechanisms ("MECHANISMS")
motionSimFullName | motion simulation full name |
destinationDirectory | destination directory |
tag_t NXOpen::Motion::MotionSession::Tag | ( | ) | const |
Returns the tag of this object.