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?
Solved! Go to Solution.
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.Device as ITxDevice;
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.