NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
NXOpen.Motion.MotionSession Class Reference

Represents motion session More...

Inheritance diagram for NXOpen.Motion.MotionSession:
NXOpen.Utilities.NXRemotableObject IMessageSink

Public Member Functions

unsafe int CalculateDof (NXOpen.NXObject simPart, NXOpen.Motion.MotionSolution solution)
 Calculate DOF More...
 
unsafe string CloneSimulation (NXOpen.NXObject masterPart, string motionSimName)
 Clones the Simulation. More...
 
unsafe NXOpen.NXObject ConstraintsToMotionObject (NXOpen.NXObject scenarioPart, NXOpen.NXObject masterPart)
 Converts mating conditions and constraints to motion bodies and joints More...
 
unsafe
NXOpen.Motion.AnimationConversionBuilder 
CreateAnimationConversionBuilder (NXOpen.NXObject scenarioPart)
 Creates a NXOpen.Motion.AnimationConversionBuilder More...
 
unsafe string CreateNamingSimulation (NXOpen.NXObject masterPart, string inputSimName)
 Creates the Non-master Simulation in NX Manager mode with an input name. More...
 
unsafe
NXOpen.Motion.PhysicsConversionBuilder 
CreatePhysicsConversionBuilder (NXOpen.NXObject scenarioPart)
 Creates a NXOpen.Motion.PhysicsConversionBuilder More...
 
unsafe string CreateSimulation (NXOpen.NXObject masterPart)
 Creates the Simulation. More...
 
unsafe void DeleteSimulation (NXOpen.NXObject masterPart, string motionSimName)
 Deletes the Simulation. More...
 
unsafe void DirectOpenSimulation (string motionSimName)
 Opens the Simulation directly. More...
 
unsafe void ExportProcessSimulateKinematics ()
 Exports kinematics for Process Simulate More...
 
unsafe NXOpen.NXObject FixLinkToGround (NXOpen.NXObject link)
 Fixes the motion body to ground More...
 
unsafe string GetFullName (NXOpen.NXObject masterPart, string scenarioName)
 Gets the full name for a scenario name, which is located in motion subfolder of master part More...
 
unsafe NXOpen.NXObject[] GetFunctionReferencedMotionObjects (NXOpen.NXObject scenarioPart, NXOpen.Motion.MotionFunction funcObject)
 Gets function referenced motion objects. More...
 
unsafe NXOpen.NXObject[] GetFunctionReferencingMotionObjects (NXOpen.NXObject scenarioPart, NXOpen.Motion.MotionFunction funcObject)
 Gets function referencing motion objects. More...
 
unsafe string[] GetMotionComponentPartNames (NXOpen.BasePart motionPart, out NXOpen.Assemblies.Component[] motionComponents)
 Returns all direct motion components with full path names from motion part. More...
 
unsafe
NXOpen.Motion.MotionFunction[] 
GetReferencedFunctions (NXOpen.NXObject scenarioPart, NXOpen.NXObject originObject)
 Gets the referenced functions More...
 
unsafe NXOpen.NXObject[] GetReferencedMotionObjects (NXOpen.NXObject scenarioPart, NXOpen.NXObject originObject)
 Gets the referenced motion objects. More...
 
unsafe
NXOpen.Motion.MotionFunction[] 
GetReferencingFunctions (NXOpen.NXObject scenarioPart, NXOpen.NXObject originObject)
 Gets the referencing functions More...
 
unsafe NXOpen.NXObject[] GetReferencingMotionObjects (NXOpen.NXObject scenarioPart, NXOpen.NXObject originObject)
 Gets the referencing motion objects. More...
 
unsafe string[] GetScenarioNames (NXOpen.NXObject masterPart)
 Gets all scenario names from motion subfolder of master part More...
 
unsafe NXOpen.BasePart[] GetUnsavedNewMotionParts (NXOpen.BasePart masterPart)
 Returns all new created but not saved motion simulation parts of the master part More...
 
unsafe void InitializeMechanisms ()
 Initializes the mech More...
 
unsafe void InitializeSimulation (NXOpen.Part simulationPart)
 Initializes the motion simulation context for the loaded motion part More...
 
unsafe void ReparentSimulation (string motionSimFullName, string destinationDirectory)
 Reparents the Simulation. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Properties

NXOpen.Motion.MotionEnvironment Environments [get]
 Returns the NXOpen.Motion.MotionEnvironment belonging to this part More...
 
NXOpen.Motion.MechanismExport MechanismExport [get]
 Returns the NXOpen.Motion.MechanismExport object belonging to this part More...
 
NXOpen.Motion.MechanismImport MechanismImport [get]
 Returns the NXOpen.Motion.MechanismImport object belonging to this part More...
 
NXOpen.Motion.MotionMethods MotionMethods [get]
 Returns the NXOpen.Motion.MotionMethods belonging to this part More...
 
NXOpen.Motion.PostProcess PostProcess [get]
 Returns the NXOpen.Motion.PostProcess belonging to this part More...
 
Tag Tag [get]
 Returns the tag of this object. More...
 
- Properties inherited from NXOpen.Utilities.NXRemotableObject
IMessageSink NextSink [get]
 Gets the next message sink in the sink chain. More...
 

Additional Inherited Members

- Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject
void initialize ()
 <exclude> More...
 

Detailed Description

Represents motion session

To obtain an instance of this class, refer to NXOpen.Session

Created in NX5.0.0

Member Function Documentation

unsafe int NXOpen.Motion.MotionSession.CalculateDof ( NXOpen.NXObject  simPart,
NXOpen.Motion.MotionSolution  solution 
)
inline

Calculate DOF

Created in NX1899.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
simPart
solution
Returns
The DOF count
unsafe string NXOpen.Motion.MotionSession.CloneSimulation ( NXOpen.NXObject  masterPart,
string  motionSimName 
)
inline

Clones the Simulation.

Created in NX5.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part
motionSimNamemotion simulation part which ready to be cloned
Returns
new motion simulation part name
unsafe NXOpen.NXObject NXOpen.Motion.MotionSession.ConstraintsToMotionObject ( NXOpen.NXObject  scenarioPart,
NXOpen.NXObject  masterPart 
)
inline

Converts mating conditions and constraints to motion bodies and joints

Created in NX6.0.1

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPartthe scenario part object
masterPartthe master part object
Returns
the motion body which will be fixed to ground
unsafe NXOpen.Motion.AnimationConversionBuilder NXOpen.Motion.MotionSession.CreateAnimationConversionBuilder ( NXOpen.NXObject  scenarioPart)
inline

Creates a NXOpen.Motion.AnimationConversionBuilder

Created in NX12.0.2

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
Returns
unsafe string NXOpen.Motion.MotionSession.CreateNamingSimulation ( NXOpen.NXObject  masterPart,
string  inputSimName 
)
inline

Creates the Non-master Simulation in NX Manager mode with an input name.

Created in NX8.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master_part
inputSimNamethe input simulation name
Returns
the created motion simulation part name
unsafe NXOpen.Motion.PhysicsConversionBuilder NXOpen.Motion.MotionSession.CreatePhysicsConversionBuilder ( NXOpen.NXObject  scenarioPart)
inline

Creates a NXOpen.Motion.PhysicsConversionBuilder

Created in NX8.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
Returns
unsafe string NXOpen.Motion.MotionSession.CreateSimulation ( NXOpen.NXObject  masterPart)
inline

Creates the Simulation.

Created in NX5.0.0

Deprecated in NX12.0.0. Use NXOpen.FileNew and NXOpen.Motion.MotionSession.InitializeSimulation

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master_part
Returns
created motion simulation part name
unsafe void NXOpen.Motion.MotionSession.DeleteSimulation ( NXOpen.NXObject  masterPart,
string  motionSimName 
)
inline

Deletes the Simulation.

Created in NX5.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master_part
motionSimNamemotion simulation part which ready to be deleted
unsafe void NXOpen.Motion.MotionSession.DirectOpenSimulation ( string  motionSimName)
inline

Opens the Simulation directly.

Created in NX5.0.0

Deprecated in NX12.0.0. Use NXOpen.PartCollection.OpenDisplay and NXOpen.Motion.MotionSession.InitializeSimulation

License requirements: mechanisms ("MECHANISMS")

Parameters
motionSimNamemotion simulation part name
unsafe void NXOpen.Motion.MotionSession.ExportProcessSimulateKinematics ( )
inline

Exports kinematics for Process Simulate

Created in NX8.5.0

License requirements: mechanisms ("MECHANISMS")

unsafe NXOpen.NXObject NXOpen.Motion.MotionSession.FixLinkToGround ( NXOpen.NXObject  link)
inline

Fixes the motion body to ground

Created in NX6.0.1

License requirements: mechanisms ("MECHANISMS")

Parameters
linkthe motion body object
Returns
the joint object created
unsafe string NXOpen.Motion.MotionSession.GetFullName ( NXOpen.NXObject  masterPart,
string  scenarioName 
)
inline

Gets the full name for a scenario name, which is located in motion subfolder of master part

Created in NX7.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
scenarioNamescenario name to check (with or without extension)
Returns
full path to the file
unsafe NXOpen.NXObject [] NXOpen.Motion.MotionSession.GetFunctionReferencedMotionObjects ( NXOpen.NXObject  scenarioPart,
NXOpen.Motion.MotionFunction  funcObject 
)
inline

Gets function referenced motion objects.

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
funcObject
Returns
The referenced motion objects
unsafe NXOpen.NXObject [] NXOpen.Motion.MotionSession.GetFunctionReferencingMotionObjects ( NXOpen.NXObject  scenarioPart,
NXOpen.Motion.MotionFunction  funcObject 
)
inline

Gets function referencing motion objects.

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
funcObject
Returns
The referencing motion objects
unsafe string [] NXOpen.Motion.MotionSession.GetMotionComponentPartNames ( NXOpen.BasePart  motionPart,
out NXOpen.Assemblies.Component[]  motionComponents 
)
inline

Returns all direct motion components with full path names from motion part.

The direct motion components can be loaded or unloaded. For unloaded component, a simple part name is returned.

An error will be thrown if the input part is not a motion part.

Created in NX1847.0.0

License requirements: None.

Parameters
motionPartthe motion part object
motionComponentsmotion components
Returns
motion component part names
unsafe NXOpen.Motion.MotionFunction [] NXOpen.Motion.MotionSession.GetReferencedFunctions ( NXOpen.NXObject  scenarioPart,
NXOpen.NXObject  originObject 
)
inline

Gets the referenced functions

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
originObjectNon-function motion object.
Returns
The referenced functions
unsafe NXOpen.NXObject [] NXOpen.Motion.MotionSession.GetReferencedMotionObjects ( NXOpen.NXObject  scenarioPart,
NXOpen.NXObject  originObject 
)
inline

Gets the referenced motion objects.

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
originObjectNon-function motion object. For function, please use Motion.MotionSession.GetReferencedMotionObjects .
Returns
The referenced motion objects
unsafe NXOpen.Motion.MotionFunction [] NXOpen.Motion.MotionSession.GetReferencingFunctions ( NXOpen.NXObject  scenarioPart,
NXOpen.NXObject  originObject 
)
inline

Gets the referencing functions

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
originObjectNon-function motion object.
Returns
The referencing functions
unsafe NXOpen.NXObject [] NXOpen.Motion.MotionSession.GetReferencingMotionObjects ( NXOpen.NXObject  scenarioPart,
NXOpen.NXObject  originObject 
)
inline

Gets the referencing motion objects.

Created in NX11.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
scenarioPart
originObjectNon-function motion object. For function, please use Motion.MotionSession.GetReferencingMotionObjects .
Returns
The referencing motion objects.
unsafe string [] NXOpen.Motion.MotionSession.GetScenarioNames ( NXOpen.NXObject  masterPart)
inline

Gets all scenario names from motion subfolder of master part

Created in NX7.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
Returns
scenario names
unsafe NXOpen.BasePart [] NXOpen.Motion.MotionSession.GetUnsavedNewMotionParts ( NXOpen.BasePart  masterPart)
inline

Returns all new created but not saved motion simulation parts of the master part

Created in NX1847.0.0

License requirements: None.

Parameters
masterPartthe master part object
Returns
unsaved motion simulation parts
unsafe void NXOpen.Motion.MotionSession.InitializeMechanisms ( )
inline

Initializes the mech

Created in NX6.0.0

Deprecated in NX12.0.0. Use NXOpen.Motion.MotionSession.InitializeSimulation

License requirements: mechanisms ("MECHANISMS")

unsafe void NXOpen.Motion.MotionSession.InitializeSimulation ( NXOpen.Part  simulationPart)
inline

Initializes the motion simulation context for the loaded motion part

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
simulationPartthe loaded motion simulation part
unsafe void NXOpen.Motion.MotionSession.ReparentSimulation ( string  motionSimFullName,
string  destinationDirectory 
)
inline

Reparents the Simulation.

Created in NX5.0.0

Deprecated in NX12.0.0. Removed without replacement.

License requirements: mechanisms ("MECHANISMS")

Parameters
motionSimFullNamemotion simulation full name
destinationDirectorydestination directory

Property Documentation

NXOpen.Motion.MotionEnvironment NXOpen.Motion.MotionSession.Environments
get

Returns the NXOpen.Motion.MotionEnvironment belonging to this part

Created in NX7.5.0

NXOpen.Motion.MechanismExport NXOpen.Motion.MotionSession.MechanismExport
get

Returns the NXOpen.Motion.MechanismExport object belonging to this part

Created in NX12.0.0

NXOpen.Motion.MechanismImport NXOpen.Motion.MotionSession.MechanismImport
get

Returns the NXOpen.Motion.MechanismImport object belonging to this part

Created in NX12.0.0

NXOpen.Motion.MotionMethods NXOpen.Motion.MotionSession.MotionMethods
get

Returns the NXOpen.Motion.MotionMethods belonging to this part

Created in NX8.0.0

NXOpen.Motion.PostProcess NXOpen.Motion.MotionSession.PostProcess
get

Returns the NXOpen.Motion.PostProcess belonging to this part

Created in NX7.5.0

Tag NXOpen.Motion.MotionSession.Tag
get

Returns the tag of this object.


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