Inserting Blocks with customized menus

Discussion in 'AutoCAD' started by Lobo, Nov 11, 2004.

  1. Lobo

    Lobo Guest

    Hello Again
    I tried to make a menu with Insertion of Blocks(drawings in the hard
    disk),
    but i have a dissapointment result, i used to made it the same way that
    in former releases, but i'm not pretty sure where to put the blocks or
    drawings, !in the support carpet??. maybe??
    I'll appreciate any help even if anyone can send a little sample of the menu
    text where the blocks insertion appears.
     
    Lobo, Nov 11, 2004
    #1
  2. Here's a clip from what I use. The blocks are in a "Base symbols"
    folder that's included in the AutoCad search path, at the top of the
    files list.

    (defun C:insert_3panel42 ()
    (setvar "cmdecho" 0)
    (setpower)
    (setq ds (getvar "dimscale"))
    (prompt "\nSelect insertion point... ")
    (command "_insert" "E_3PANEL42" "PS" ds pause ds ds pause)
    (PRINC)
    )

    (defun setpower ()
    (if
    (null (tblsearch "layer" "power"))
    (command "-layer" "make" "power" "color" "cyan" "power" "")
    )
    (setvar "clayer" "power")
    )
     
    Martin Shoemaker, Nov 11, 2004
    #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.