Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I am looking for a better way to delete multiple sketchs with only one or few instructions.
Actually I follow a simple method using a loop but I hope that exist a more efficient way using some Api method.
This what I do (I am a newbye so please excuse me !)
sketchArray = []
# in a loop I create sketches with assigned names:
..........
sketchPlane.name="SK-"+str(k)
# append name in an array
sketchArray.append(k)
sketchArray[k] = sketchPlane.name
.........
#in another loop (after I use all the sketches) I delete the sketches
for k in range(0,n):
sketches.itemByName(sketchArray[k]).deleteMe()
Many Thanks
Dino
Solved! Go to Solution.