Bulk delete SketchLine objects?

Bulk delete SketchLine objects?

plbyrd
Explorer Explorer
209 Views
1 Reply
Message 1 of 2

Bulk delete SketchLine objects?

plbyrd
Explorer
Explorer

Hi,

 

I'm writing a script to remove duplicate sketch lines.  I am currently looping over the lines I want to delete and calling deleteMe on them.  Is there a way to bulk delete the instances?  Each deleteMe call takes several seconds to complete (it's a really big model).

0 Likes
210 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

The Design.deleteEntities method exists to support bulk deletion. It's the equivalent of selecting multiple entities and pressing the Delete key.

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com