RobotStudio event

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