PhysicsConversionBuilder Class

class NXOpen.Motion.PhysicsConversionBuilder

Bases: NXOpen.Builder

Represents a NXOpen.Motion.PhysicsConversionBuilder builder

To create a new instance of this class, use NXOpen.Motion.MotionSession.CreatePhysicsConversionBuilder()

New in version NX8.0.0.

Properties

Property Description
Tag Returns the Tag for this object.

Methods

Method Description
ActiveAll The active button.
Commit Commits any edits that have been applied to the builder.
DeactiveAll The deactive button.
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.
GetPhysics The physics data.
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
UpdateStatus The data update accordingly.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Method Detail

ActiveAll

PhysicsConversionBuilder.ActiveAll

The active button.

Call this method to make all physics items active.

Signature ActiveAll()

New in version NX8.0.0.

License requirements: mechanisms (“MECHANISMS”)

DeactiveAll

PhysicsConversionBuilder.DeactiveAll

The deactive button.

Call this method to make all physics items inactive.

Signature DeactiveAll()

New in version NX8.0.0.

License requirements: mechanisms (“MECHANISMS”)

GetPhysics

PhysicsConversionBuilder.GetPhysics

The physics data.

Call this method to get the physics data.

Signature GetPhysics()

Returns:a tuple
Return type:A tuple consisting of (physicsProto, partOccurrence). physicsProto is a list of NXOpen.NXObject. partOccurrence is a list of NXOpen.Assemblies.Component.

New in version NX8.0.0.

License requirements: mechanisms (“MECHANISMS”)

UpdateStatus

PhysicsConversionBuilder.UpdateStatus

The data update accordingly.

Call this method to make part of the physics items active or inactive.

Signature UpdateStatus(physicsProto, partOccurrence, active)

Parameters:

New in version NX8.0.0.

License requirements: mechanisms (“MECHANISMS”)

Validate

PhysicsConversionBuilder.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.