Allocate target in addin
mutti
✭
Hello.
I am dealing with the creation of a big number of targets in an ABB robotstudio addin.
I was wondering if there is a method to pre allocate the target in order to save time during the creation.
I noticed that almost the 95% of the execution time is due to the target creation, anyone knows how to increase efficency?
Thanks
I am dealing with the creation of a big number of targets in an ABB robotstudio addin.
I was wondering if there is a method to pre allocate the target in order to save time during the creation.
I noticed that almost the 95% of the execution time is due to the target creation, anyone knows how to increase efficency?
Thanks
0
Comments
-
Hi,
A possible cause is that there is no open undo step. In that case each API call will create a new undo step which causes a lot of overhead.
Wrap the target creation in an undo step like this:try { Project.UndoContext.BeginUndoStep("Create targets"); // Do many things } finally { Project.UndoContext.EndUndoStep(); }
If that doesn't help, please post some of your code here so we can take a look.
Regards,
Johannes
Johannes Weiman
Software Engineer
RobotStudio Team, ABB Robotics0 -
That worked thanks.0
Categories
- All Categories
- 5.5K RobotStudio
- 395 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)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings