'Object is part of a project' debug error

Kevin
✭✭
in RobotStudio
When running my add-in I get the error message 'ArgumentException is unhandled: Object is part of a project' in the Visual C# debugger when
[CODE]myPart.Bodies.Add(myWire);[/CODE] executes.
Can anyone explain what this message means?
Thanks,
Kevin
[CODE]myPart.Bodies.Add(myWire);[/CODE] executes.
Can anyone explain what this message means?
Thanks,
Kevin
0
Comments
-
An object cannot have two parents. You must make sure myWire is "orphaned" before you add it to a part.
BTW, API questions should go in the "Developer Tools" forum.
Johannes Weiman2010-05-07 10:55:53Johannes Weiman
Software Engineer
ABB Robotics0 -
Thanks Johannes.
Kevin
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 328 IRC5
- 66 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 822 RAPID Programming
- 9 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings