RuntimeBehaviorBuilder Class

class NXOpen.Mechatronics.RuntimeBehaviorBuilder

Bases: NXOpen.Builder

Represents a NXOpen.Mechatronics.RuntimeBehaviorBuilder.

To create a new instance of this class, use NXOpen.Mechatronics.RuntimeBehaviorCollection.CreateRuntimeBehaviorBuilder()

New in version NX7.5.1.

Properties

Property Description
Name Returns or sets the name.
Source Returns or sets the source.
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
Destroy Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetObject Returns the object currently being edited by this builder.
SetPhysicsObject Sets physics object
SetReplacementCode Sets byte code for replacement
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
StoreExecutableCode Stores executable code for source
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

Name

RuntimeBehaviorBuilder.Name

Returns or sets the name.

-------------------------------------

Getter Method

Signature Name

Returns:
Return type:str

New in version NX7.5.1.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

-------------------------------------

Setter Method

Signature Name

Parameters:name (str) –

New in version NX7.5.1.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

Source

RuntimeBehaviorBuilder.Source

Returns or sets the source.

-------------------------------------

Getter Method

Signature Source

Returns:
Return type:str

New in version NX7.5.1.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

-------------------------------------

Setter Method

Signature Source

Parameters:source (str) –

New in version NX7.5.1.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

Method Detail

SetPhysicsObject

RuntimeBehaviorBuilder.SetPhysicsObject

Sets physics object

Signature SetPhysicsObject(className, propIndex, physicsObject)

Parameters:
  • className (str) –
  • propIndex (int) –
  • physicsObject (NXOpen.NXObject) –

New in version NX8.5.0.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

SetReplacementCode

RuntimeBehaviorBuilder.SetReplacementCode

Sets byte code for replacement

Signature SetReplacementCode(physicsObject)

Parameters:physicsObject (NXOpen.NXObject) –

New in version NX8.5.0.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

StoreExecutableCode

RuntimeBehaviorBuilder.StoreExecutableCode

Stores executable code for source

Signature StoreExecutableCode(fileSpec, source)

Parameters:
  • fileSpec (str) – The file specification
  • source (str) – The runtime behavior code

New in version NX8.5.0.

License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

Validate

RuntimeBehaviorBuilder.Validate

Validate whether the inputs to the component are sufficient for commit to be called.

If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

Signature Validate()

Returns:Was self validation successful
Return type:bool

New in version NX3.0.1.

License requirements: None.