Allocate target in addin
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 734 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings