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

Represents Motion. More...

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

Public Types

enum  JaMotionMotionExportAdamsGeometryFormat { None = -1, Stl, Parasolid }
 Format to export the geometry of Adams More...
 

Public Member Functions

unsafe void AddMaster (NXOpen.Part motionPart, NXOpen.NXObject masterPart)
 Creates a new NXOpen.Assemblies.Component in this motion simulation assembly as master part More...
 
unsafe void AddSuppressedObjectForAllSolutions (NXOpen.Part motionPart, NXOpen.NXObject obj)
 Deactivates a motion object for all solutions More...
 
unsafe int CalculateGrueblerCount (NXOpen.NXObject motionPart)
 Calculate the gruebler count of given motion part More...
 
unsafe void ConvertTextBasedElements (NXOpen.Part motionPart)
 Convert Text Based Elements More...
 
unsafe
NXOpen.Motion.AddSubmechanismBuilder 
CreateAddSubmechanismBuilder (NXOpen.NXObject part)
 Returns NXOpen.Motion.AddSubmechanismBuilder object More...
 
unsafe void ExportRecurdynSdk (string fullFileName)
 Export Recurdyn sdk data, need an active solution in simulation More...
 
unsafe NXOpen.Part GetMasterCadPart (NXOpen.Part motionPart)
 Gets the loaded master part in this motion simulation assembly. More...
 
unsafe void LoadSimulation (NXOpen.NXObject masterPart, string motionSimName)
 Load the simulation More...
 
unsafe void ReadDeactivatedStates (NXOpen.NXObject sumbmechanism, NXOpen.Motion.MotionSolution solution)
 Copies the deactivated states of motion objects occurrences belonging to a given submechanism from a given solution to the motion assembly. More...
 
unsafe void RemoveMaster (NXOpen.Part motionPart, bool deleteMotionObjects)
 Removes existing master part in this motion simulation assembly More...
 
unsafe void RemoveSuppressedObjectForAllSolutions (NXOpen.Part motionPart, NXOpen.NXObject obj)
 Activates a motion object for all solutions More...
 
unsafe void RenameSimulation (NXOpen.NXObject masterPart, string oldMotionSimName, string newMotionSimName)
 Rename the simulation More...
 
unsafe void RenameSubmechanism (NXOpen.NXObject submechanism, string name)
 Sets the custom name of the Submechanism object. More...
 
unsafe void SaveSimulation (NXOpen.NXObject masterPart, string motionSimName)
 Save the simulation through input part name More...
 
unsafe void SaveSimulation (NXOpen.NXObject masterPart, NXOpen.NXObject motionSimPart)
 Save the simulation through input part object More...
 
unsafe void SetAdamsStlParams (double minFacetEdgeLen, double maxFacetEdgeLen, double facetToSurfaceTolerance)
 Adams Stl parameters More...
 
unsafe void UnloadSimulation (NXOpen.NXObject masterPart, string motionSimName)
 Unload the simulation through input part name More...
 
unsafe void UnloadSimulation (NXOpen.NXObject masterPart, NXOpen.NXObject motionSimPart)
 Unload the simulation through input part object More...
 
unsafe void WriteAdamsAnlFile (string fullFileName)
 Write Adams anl file More...
 
unsafe void WriteAdamsGeometryFile (string fullFileName, NXOpen.Motion.MotionSimulation.JaMotionMotionExportAdamsGeometryFormat geoFormat)
 Write geometry file for Adams solver, the active solver should be Recurdyn More...
 
unsafe void WriteRdsdkAdmFile (string fullFileName)
 Write adams adm file for Recurdyn solver, the active solver should be Recurdyn 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

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.

Simulation

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

Created in NX5.0.0

Member Enumeration Documentation

Format to export the geometry of Adams

Enumerator
None 

NONE format to export the geometry of Adams

Stl 

STL format to export the geometry of Adams

Parasolid 

PARASOLID format to export the geometry of Adams

Member Function Documentation

unsafe void NXOpen.Motion.MotionSimulation.AddMaster ( NXOpen.Part  motionPart,
NXOpen.NXObject  masterPart 
)
inline

Creates a new NXOpen.Assemblies.Component in this motion simulation assembly as master part

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPartthe motion part to add master part into it
masterPartthe master part to be added, it can be a part occurrence tag or part tag
unsafe void NXOpen.Motion.MotionSimulation.AddSuppressedObjectForAllSolutions ( NXOpen.Part  motionPart,
NXOpen.NXObject  obj 
)
inline

Deactivates a motion object for all solutions

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPart
obj
unsafe int NXOpen.Motion.MotionSimulation.CalculateGrueblerCount ( NXOpen.NXObject  motionPart)
inline

Calculate the gruebler count of given motion part

Created in NX7.5.0

License requirements: None.

Parameters
motionPartmotion part object
Returns
gruebler count
unsafe void NXOpen.Motion.MotionSimulation.ConvertTextBasedElements ( NXOpen.Part  motionPart)
inline

Convert Text Based Elements

Created in NX1872.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPart
unsafe NXOpen.Motion.AddSubmechanismBuilder NXOpen.Motion.MotionSimulation.CreateAddSubmechanismBuilder ( NXOpen.NXObject  part)
inline

Returns NXOpen.Motion.AddSubmechanismBuilder object

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
partthe part object
Returns
NXOpen.Motion.AddSubmechanismBuilder object
unsafe void NXOpen.Motion.MotionSimulation.ExportRecurdynSdk ( string  fullFileName)
inline

Export Recurdyn sdk data, need an active solution in simulation

Created in NX7.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
fullFileNamefull name with directory and extension
unsafe NXOpen.Part NXOpen.Motion.MotionSimulation.GetMasterCadPart ( NXOpen.Part  motionPart)
inline

Gets the loaded master part in this motion simulation assembly.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPartthe motion part to remove master part from it
Returns
the loaded master part
unsafe void NXOpen.Motion.MotionSimulation.LoadSimulation ( NXOpen.NXObject  masterPart,
string  motionSimName 
)
inline

Load the simulation

Created in NX5.0.0

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

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
motionSimNamethe motion simulation name to load
unsafe void NXOpen.Motion.MotionSimulation.ReadDeactivatedStates ( NXOpen.NXObject  sumbmechanism,
NXOpen.Motion.MotionSolution  solution 
)
inline

Copies the deactivated states of motion objects occurrences belonging to a given submechanism from a given solution to the motion assembly.

The motion objects deactivated from the given solution will become "Deactivated for All" in the motion assembly. If submechanism tag is NULL then will copy the deactivated states from the selected solution to the active one.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
sumbmechanismsubmechanism child of current root part
solutionthe solution, from the submechanism part, from which the deactivated states are read
unsafe void NXOpen.Motion.MotionSimulation.RemoveMaster ( NXOpen.Part  motionPart,
bool  deleteMotionObjects 
)
inline

Removes existing master part in this motion simulation assembly

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPartthe motion part to remove master part from it
deleteMotionObjectsthe tag whether to keep or delete motion objects referencing master part
unsafe void NXOpen.Motion.MotionSimulation.RemoveSuppressedObjectForAllSolutions ( NXOpen.Part  motionPart,
NXOpen.NXObject  obj 
)
inline

Activates a motion object for all solutions

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
motionPart
obj
unsafe void NXOpen.Motion.MotionSimulation.RenameSimulation ( NXOpen.NXObject  masterPart,
string  oldMotionSimName,
string  newMotionSimName 
)
inline

Rename the simulation

Created in NX5.0.0

Deprecated in NX12.0.0. Use NXOpen.BasePart.SaveAs

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
oldMotionSimNamethe motion simulation part name which ready to be renamed
newMotionSimNamethe new motion simulation part name
unsafe void NXOpen.Motion.MotionSimulation.RenameSubmechanism ( NXOpen.NXObject  submechanism,
string  name 
)
inline

Sets the custom name of the Submechanism object.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
submechanism
name
unsafe void NXOpen.Motion.MotionSimulation.SaveSimulation ( NXOpen.NXObject  masterPart,
string  motionSimName 
)
inline

Save the simulation through input part name

Created in NX5.0.0

Deprecated in NX12.0.0. Use NXOpen.BasePart.Save

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
motionSimNamethe motion simulation part name which ready to be saved
unsafe void NXOpen.Motion.MotionSimulation.SaveSimulation ( NXOpen.NXObject  masterPart,
NXOpen.NXObject  motionSimPart 
)
inline

Save the simulation through input part object

Created in NX7.5.0

Deprecated in NX12.0.0. Use NXOpen.BasePart.Save

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
motionSimPartthe motion simulation part which ready to be saved
unsafe void NXOpen.Motion.MotionSimulation.SetAdamsStlParams ( double  minFacetEdgeLen,
double  maxFacetEdgeLen,
double  facetToSurfaceTolerance 
)
inline

Adams Stl parameters

Created in NX1872.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
minFacetEdgeLen
maxFacetEdgeLen
facetToSurfaceTolerance
unsafe void NXOpen.Motion.MotionSimulation.UnloadSimulation ( NXOpen.NXObject  masterPart,
string  motionSimName 
)
inline

Unload the simulation through input part name

Created in NX5.0.0

Deprecated in NX12.0.0. Use NXOpen.BasePart.Close

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
motionSimNamethe motion simulation name to unload
unsafe void NXOpen.Motion.MotionSimulation.UnloadSimulation ( NXOpen.NXObject  masterPart,
NXOpen.NXObject  motionSimPart 
)
inline

Unload the simulation through input part object

Created in NX7.5.0

Deprecated in NX12.0.0. Use NXOpen.BasePart.Close

License requirements: mechanisms ("MECHANISMS")

Parameters
masterPartthe master part object
motionSimPartthe motion simulation to unload
unsafe void NXOpen.Motion.MotionSimulation.WriteAdamsAnlFile ( string  fullFileName)
inline

Write Adams anl file

Created in NX1872.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
fullFileNamefull name with directory and extension
unsafe void NXOpen.Motion.MotionSimulation.WriteAdamsGeometryFile ( string  fullFileName,
NXOpen.Motion.MotionSimulation.JaMotionMotionExportAdamsGeometryFormat  geoFormat 
)
inline

Write geometry file for Adams solver, the active solver should be Recurdyn

Created in NX1872.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
fullFileNamefull name with directory and extension
geoFormat
unsafe void NXOpen.Motion.MotionSimulation.WriteRdsdkAdmFile ( string  fullFileName)
inline

Write adams adm file for Recurdyn solver, the active solver should be Recurdyn

Created in NX1872.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
fullFileNamefull name with directory and extension

Property Documentation

Tag NXOpen.Motion.MotionSimulation.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.