
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.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 323 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 812 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings