RobotStudio event

'Object is part of a project' debug error

Options
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

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:53
    Johannes Weiman
    Software Engineer
    ABB Robotics
  • Kevin
    Kevin ✭✭
    Options
    Thanks Johannes.

    Kevin