API: Transform relative to UCS
Hello
I want to apply a transformation on an object in my scene with reference to the UCS.
I can set the UCS in the station, but how can i tell robotstudio to use this coordinatesystem for the transformation?
Best Regards, Matthias
I want to apply a transformation on an object in my scene with reference to the UCS.
I can set the UCS in the station, but how can i tell robotstudio to use this coordinatesystem for the transformation?
Best Regards, Matthias
0
Comments
-
Hi Matthias,
To set the transform of an object relative to UCS you should do something like this:
[code]
Station stn = Project.ActiveProject as Station;
IHasTransform object = ...
Matrix4 relativeTransform = ...
object.Transform.GlobalMatrix = stn.UCS.GlobalMatrix * relativeTransform;
[/code]
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 15 Tutorials
- 12 RobotApps
- 290 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 283 IRC5
- 44 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 746 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings