- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the CombineCut tool to create a new component by setting the isNewComponent to True. I cannot figure out how to delete the new component from the browser at the end of the script. I can delete the new Body by using newBody.deleteMe() but there is no deleteMe method on Components. How can you delete a Component?
Thanks,
Scott
Here is a snippet of my code:
CombineCutInput = rootComp.features.combineFeatures.createInput(targetBody, toolBodies)
CombineCutInput.operation = adsk.fusion.FeatureOperations.IntersectFeatureOperation
CombineCutInput.isKeepToolBodies = True
CombineCutInput.isNewComponent = True
ret = rootComp.features.combineFeatures.add(CombineCutInput)
newBody = ret.bodies.item(0)
newComponent = newBody.parentComponent
newBody.deleteMe()
Solved! Go to Solution.