Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to delete some bodies from my model but the call generates an error dialog with the message:
Failed : InternalValidationError : rawNeutronObject() == NULL
Here's the piece of code making the call:
for (var iBody = 0; iBody < rootComp.bRepBodies.count; ++iBody) {
var body = rootComp.bRepBodies.item(iBody);
if ( body.name.indexOf("_Hole_") === 0 ) {
body.deleteMe();
break;
}
}
It looks for any body that has a name that begins with "_Hole_" and then deletes that body.
Is this the correct method for deleting a body?
Thanks.

Hans Kellner
Senior Manager, Principal Engineer
Solved! Go to Solution.