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