MotionSimulation Class¶
-
class
NXOpen.Motion.
MotionSimulation
¶ Bases:
object
Represents Motion.
Simulation To obtain an instance of this class, refer to
NXOpen.Session
New in version NX5.0.0.
Methods¶
Method | Description |
---|---|
CalculateGrueblerCount | Calculate the gruebler count of given motion part @return gruebler count |
ExportRecurdynSdk | Export Recurdyn sdk data, need an active solution in simulation |
LoadSimulation | Load the simulation |
RenameSimulation | Rename the simulation |
SaveSimulation | Save the simulation through input part name |
UnloadSimulation | Unload the simulation through input part name |
Method Detail¶
CalculateGrueblerCount¶
-
MotionSimulation.
CalculateGrueblerCount
¶ Calculate the gruebler count of given motion part
Signature
CalculateGrueblerCount(motionPart)
Parameters: motionPart ( NXOpen.NXObject
) – motion part objectReturns: gruebler count Return type: int New in version NX7.5.0.
License requirements: None.
ExportRecurdynSdk¶
-
MotionSimulation.
ExportRecurdynSdk
¶ Export Recurdyn sdk data, need an active solution in simulation
Signature
ExportRecurdynSdk(fullFileName)
Parameters: fullFileName (str) – full name with directory and extension New in version NX7.0.0.
License requirements: mechanisms (“MECHANISMS”)
LoadSimulation¶
-
MotionSimulation.
LoadSimulation
¶ Load the simulation
Signature
LoadSimulation(masterPart, motionSimName)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - motionSimName (str) – the motion simulation name to load
New in version NX5.0.0.
License requirements: mechanisms (“MECHANISMS”)
- masterPart (
RenameSimulation¶
-
MotionSimulation.
RenameSimulation
¶ Rename the simulation
Signature
RenameSimulation(masterPart, oldMotionSimName, newMotionSimName)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - oldMotionSimName (str) – the motion simulation part name which ready to be renamed
- newMotionSimName (str) – the new motion simulation part name
New in version NX5.0.0.
License requirements: mechanisms (“MECHANISMS”)
- masterPart (
SaveSimulation¶
-
MotionSimulation.
SaveSimulation
¶ Overloaded method SaveSimulation
SaveSimulation(masterPart, motionSimName)
SaveSimulation(masterPart, motionSimPart)
-------------------------------------
Save the simulation through input part name
Signature
SaveSimulation(masterPart, motionSimName)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - motionSimName (str) – the motion simulation part name which ready to be saved
New in version NX5.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------
Save the simulation through input part object
Signature
SaveSimulation(masterPart, motionSimPart)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - motionSimPart (
NXOpen.NXObject
) – the motion simulation part which ready to be saved
New in version NX7.5.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------
UnloadSimulation¶
-
MotionSimulation.
UnloadSimulation
¶ Overloaded method UnloadSimulation
UnloadSimulation(masterPart, motionSimName)
UnloadSimulation(masterPart, motionSimPart)
-------------------------------------
Unload the simulation through input part name
Signature
UnloadSimulation(masterPart, motionSimName)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - motionSimName (str) – the motion simulation name to unload
New in version NX5.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------
Unload the simulation through input part object
Signature
UnloadSimulation(masterPart, motionSimPart)
Parameters: - masterPart (
NXOpen.NXObject
) – the master part object - motionSimPart (
NXOpen.NXObject
) – the motion simulation to unload
New in version NX7.5.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------