Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
How do you dynamically change the length of a cylinder body?
Agge89
✭
in RobotStudio
Hi,
I'm trying to animate how a robot behaves when a rod is increased or decreased in length.
My solution is to have a Part that contains a Body. When the Part is to change size, I clear all the bodies from the Part and then create a new Body that is to be inserted into the Part object.
However, whenever I create a new Body, the old Body that should be cleared is for some reason still in memory and I get a memory leak.
Is there a way to remove a Body from memory that is no longer used, as the garbage collector does not take care of this. Or is there an other solution to change the parameters of an existing Body?
in best regards
August
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings