API: Creating workobject

Hello!
An other question regarding workobjects.

In the RsWorkobject class it is possible to create a workobject at a location with x, y and z, and RX, RY, RZ for the orientation.

However, I wonder if it is possible to use three Vector3 to specify both location and orientation. Example, the first vector3 will be the origin of the workobject, the second will define the x axis and the third will define the y axis.

Kind regards
Daniel

Hello

What we want is the same function as the Rapid function DefFrame. And there are a similar function in RS there you can define a frame from three points…

I found that RS has a function like the one we want in the API

The Matrix4 class has a number of methods for creating a matrix from points. Check out Matrix4.FromTwoPointXY() etc.

regards,
Johannes