RobotStudio event

Create new body by scaling

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

Comments

  • apox
    apox ✭✭
    "Body.Scale" does not work for me, too. Is there any workaround available to scale geometry?

    Best regards.