Blocks in drawing

Discussion in 'AutoCAD' started by mnash, Mar 1, 2005.

  1. mnash

    mnash Guest

    I have the following lisp to use a certain leader head, defined by a drawing on our network.

    (prompt "\nSpecify first leader point...")
    (setq GP (getpoint))
    (prompt "\nSpecify next point:")
    (command "SETVAR" "DIMLDRBLK" "ICON-ARROWHEAD" "QLEADER" GP PAUSE PAUSE PAUSE "" "SETVAR" "DIMLDRBLK" ".")

    but if the block is not already in the drawing, the lisp will not work and we have a lot of drawings already created without the block in the template drawing file.

    Is there a way to "quietly load the block for use in the lisp, without have to insert the block and deleting it?
    Thanks
     
    mnash, Mar 1, 2005
    #1
  2. Try this to silently load the block.

    (command "insert" "blockname" \e)

    Jesse
     
    Jesse_Pickrum, Mar 1, 2005
    #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.