Create new body by scaling
in RobotStudio
Hallo,
I tried to to create a new body by scaling a given body, therefor i use the following code:
[CODE]Station station = Project.ActiveProject as Station;
Part p = new Part();
Body b = _selectedPart.Bodies[0];
p.Bodies.Add(b.Scale(100));
station.GraphicComponents.Add(p);
[/CODE]
What happens is, that a new part with a body is created, but the new body is still of the size of the old body. The strange thing is: when i readout the volume of the new body, it is the volume of the scaled body, so everything seems right - except in RS only a body with the old dimensions was created.
Is this a bug, or did i made a mistake?
Thanks for your answers, Matthias
I tried to to create a new body by scaling a given body, therefor i use the following code:
[CODE]Station station = Project.ActiveProject as Station;
Part p = new Part();
Body b = _selectedPart.Bodies[0];
p.Bodies.Add(b.Scale(100));
station.GraphicComponents.Add(p);
[/CODE]
What happens is, that a new part with a body is created, but the new body is still of the size of the old body. The strange thing is: when i readout the volume of the new body, it is the volume of the scaled body, so everything seems right - except in RS only a body with the old dimensions was created.
Is this a bug, or did i made a mistake?
Thanks for your answers, Matthias
0
Comments
-
"Body.Scale" does not work for me, too. Is there any workaround available to scale geometry?
Best regards.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings