API Calls to delete drawing block instances and definition

Discussion in 'SolidWorks' started by david, Dec 19, 2007.

  1. david

    david Guest

    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
     
    david, Dec 19, 2007
    #1
  2. 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.

    http://swapi.wordpress.com
     
    Philippe Guglielmetti, Dec 19, 2007
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.