'Object is part of a project' debug error
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 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
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings