Redifine block

Discussion in 'AutoCAD' started by Jawknee99, Jan 17, 2005.

  1. Jawknee99

    Jawknee99 Guest

    I need to redefine a block in the current drawing with a drawing of the same
    name stored in the current directory. It needs to be done without user
    input other than issuing "ESIZE". I don't want to edit any attributes and I
    want the current values to remain.

    I have this so far...

    (defun c:ESIZE ()
    (SETQ TBNAME (strcat (getvar "dwgprefix") "JWS 30X42"))
    (command "-insert" TBNAME "0,0" "" "" 0)
    )

    it inserts the block in the current drawing not the one pathed.

    Thanks!

    -jawknee
     
    Jawknee99, Jan 17, 2005
    #1
  2. Jawknee99

    Jawknee99 Guest

    Pretty sharp for an old dead guy.

    That's just what I wanted to do.

    Thanks!

    -jawknee
     
    Jawknee99, Jan 17, 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.