'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
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 337 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 831 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings