'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.5K RobotStudio
- 396 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)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings