Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

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

Comments



  • 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...
    Patrik 812010-04-22 11:37:04
  • I found that RS has a function like the one we want in the API

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

    regards,
    Johannes

    Johannes Weiman
    Software Engineer
    ABB Robotics