cancel
Showing results for 
Search instead for 
Did you mean: 

Create a new Pose for a TxComponent

Valued Contributor
Valued Contributor

I import a cojt in Process Simulate Standalone in order to create a kinematics for a component. The invocation of TxApplication.ActiveDocument.PhysicalRoot.InsertComponent gets me an instance of TxComponent.

The Class TxComponent implements the Interface ITxKinematicsModellable, that allows creation of the kinematic links and joints (TxKinematicLink and TxJoint). But I miss a possibility to create a pose (class TxPose) for a TxComponent.

I have found possibility to create a pose just for a device (Interface ITxDevice), but I cannot find any possibility to convert a TxComponent instance to ITxDevice.

It is possible to create a pose for imported component over the user interface, but .NET API does not expose this possibility.

Have I overseeing anypossibility?

3 REPLIES

Betreff: Create a new Pose for a TxComponent

Legend
Legend

Hi,

it is not possible to create a Pose in a TxComponent.

You have to convert your component to a TxDevice.

That can be done after the joint creation.

TxComponent component = new TxComponent();
...
ITxDevice device = component.Joints[0].Device as ITxDevice;

Betreff: Create a new Pose for a TxComponent

Valued Contributor
Valued Contributor

Thank you!

I will test this.

Betreff: Create a new Pose for a TxComponent

Valued Contributor
Valued Contributor

It does the job for me.

It is not clearly evident way to get a device from a component over the a joint. May be the evident ppossibility can be exposed in the next version of .NET Api.