- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I've developed a script for creating a specific geometry. When adjusting my script, I run it again, and for this purpose I have created a simple function to delete all construction planes that were created in a previous run, ,and it is called at the beginning of the run-section. However, this is not successful, since there are always some of them remaining even if the new geometry and its construction planes were created. Do you have any idea why this happens? Here is my function:
def plane_Delete():
app=adsk.core.Application.get()
design=adsk.fusion.Design.cast(app.activeProduct)
rootComp=design.rootComponent
for plane in rootComp.constructionPlanes:
plane.deleteMe()
Thank you in advance!
Solved! Go to Solution.