MechatronicsSession Class¶
-
class
NXOpen.Mechatronics.MechatronicsSession¶ Bases:
objectRepresents Mechatronics session
To obtain an instance of this class, refer to
NXOpen.SessionNew in version NX9.0.0.
Methods¶
| Method | Description |
|---|---|
| GetExportableLogicalObjects | Gets exportable logical objects |
| GetLogicalAttributeNames | Gets defined logical attribute names in configuration file |
| GetLogicalAttributeValues | Gets attribute values of logical object |
| GetLogicalTypes | Gets defined logical types in configuration file |
| PerformSimulation | Control the Simulation. |
Enumerations¶
| MechatronicsSessionSimulationAction Enumeration | Represents the action of simulation. |
Method Detail¶
GetExportableLogicalObjects¶
-
MechatronicsSession.GetExportableLogicalObjects¶ Gets exportable logical objects
Signature
GetExportableLogicalObjects(logicalObject)Parameters: logicalObject ( NXOpen.Mechatronics.LogicObject) – Logical objectReturns: Array of exportable logical objects Return type: list of NXOpen.Mechatronics.LogicObjectNew in version NX9.0.0.
License requirements: None.
GetLogicalAttributeNames¶
-
MechatronicsSession.GetLogicalAttributeNames¶ Gets defined logical attribute names in configuration file
Signature
GetLogicalAttributeNames()Returns: Array of defined attribute names Return type: list of str New in version NX9.0.0.
License requirements: None.
GetLogicalAttributeValues¶
-
MechatronicsSession.GetLogicalAttributeValues¶ Gets attribute values of logical object
Signature
GetLogicalAttributeValues(logicalObject, attributeNames)Parameters: - logicalObject (
NXOpen.Mechatronics.LogicObject) – Logical object - attributeNames (list of str) – Array of logical attribute names
Returns: Array of logical attribute values
Return type: list of str
New in version NX9.0.0.
License requirements: None.
- logicalObject (
GetLogicalTypes¶
-
MechatronicsSession.GetLogicalTypes¶ Gets defined logical types in configuration file
Signature
GetLogicalTypes()Returns: a tuple Return type: A tuple consisting of (logicalTypeNames, logicalTypeBitmaps) logicalTypeNames is a list of str. Array of type names logicalTypeBitmaps is a list of str. Array of type bitmaps New in version NX9.0.0.
License requirements: None.
PerformSimulation¶
-
MechatronicsSession.PerformSimulation¶ Control the Simulation.
Signature
PerformSimulation(action)Parameters: action ( NXOpen.Mechatronics.MechatronicsSessionSimulationAction) –New in version NX9.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)