blocks

Discussion in 'AutoCAD' started by Lunt, Aug 12, 2004.

  1. Lunt

    Lunt Guest

    any suggestions on how I would code a function that would find a specific block (by name) and just delete that block?

    Set acadMyBlock = ThisDrawing.ModelSpace??
    If acadMyBlock.Name = "BlockToDelete" Then
    acadMyBlock.Delete
    End If

    when I use property .Name is gives me "*Model_Space" for name, but I know the Name of the inserted block is "BlockToDelete" .what property should I call?
    I am having trouble syntaxing my object.
     
    Lunt, Aug 12, 2004
    #1
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.