MechatronicsSession Class

class NXOpen.Mechatronics.MechatronicsSession

Bases: object

Represents Mechatronics session

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

New 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 object
Returns:Array of exportable logical objects
Return type:list of NXOpen.Mechatronics.LogicObject

New 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:
Returns:

Array of logical attribute values

Return type:

list of str

New in version NX9.0.0.

License requirements: None.

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”)