API Calls to delete drawing block instances and definition

Dec 19, 2007 1 Replies

Hi there,



I am trying to create a macro to clean up a batch of drawings that have some bad block definitions. I cannot find the API call to delete anything, only create and insert.



Any help would be appreciated.



Thanks Dave


1 : select the block with SketchBlockInstance::Select (from 2007, before that it was a bit trickier...) 2 : delete it with ModelDoc2::EditDelete. A useful one.

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required