redefining a block

Discussion in 'AutoCAD' started by liftedaxis, Aug 6, 2003.

  1. liftedaxis

    liftedaxis Guest

    having difficulty pulling this off in Lisp, so I'm curious if VBA can do it more elegantly. When you insert a block manually, Acad prompts if you would like to redefine it. In firing the insert command from Lisp, the only way to redefine the block is to delete all references to the block and purge the drawing first. Does VBA allow redefining the block any easier? Thanks for any help!
    --Jeremiah
     
    liftedaxis, Aug 6, 2003
    #1
  2. I take it you've never tried:
    (command "._Insert" "OldBlk=C:\\Temp\\NewBlk.dwg" (command))


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | having difficulty pulling this off in Lisp, so I'm curious if VBA can do
    it more elegantly. When you insert a block manually, Acad prompts if you
    would like to redefine it. In firing the insert command from Lisp, the only
    way to redefine the block is to delete all references to the block and purge
    the drawing first. Does VBA allow redefining the block any easier? Thanks
    for any help!
    | --Jeremiah
     
    R. Robert Bell, Aug 6, 2003
    #2
  3. I'm guessing he is dealing with attributed inserts, but we
    don't know that just yet.
     
    Jason Piercey, Aug 6, 2003
    #3
  4. We may *never* know... ;-)

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | I'm guessing he is dealing with attributed inserts, but we
    | don't know that just yet.
    |
     
    R. Robert Bell, Aug 7, 2003
    #4
  5. liftedaxis

    liftedaxis Guest

    eesh, sorry, some of us have day jobs, ya know? :)

    actually, no, i don't have blocks with attributes, and no, haven't tried the insert "block=locale" method.
    phew. now i can continue my overt avoidance of vba for a little longer. :)

    thanks,
    --Jeremiah
     
    liftedaxis, Aug 7, 2003
    #5
  6. Day job, shmay job... 8^)

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | eesh, sorry, some of us have day jobs, ya know? :)
    | actually, no, i don't have blocks with attributes, and no, haven't tried
    the insert "block=locale" method.
    | phew. now i can continue my overt avoidance of vba for a little longer. :)
    |
    | thanks,
    | --Jeremiah
    |
     
    R. Robert Bell, Aug 7, 2003
    #6
  7. liftedaxis

    Murph Guest

    And some of us have day jobs, night jobs and mile long honey-do lists.



     



    Murph



     



    "liftedaxis" <> wrote in message news:...

    eesh, sorry, some of us have day jobs, ya know? :)

    actually, no, i don't have blocks with attributes, and no, haven't tried the insert "block=locale" method.
    phew. now i can continue my overt avoidance of vba for a little longer. :)

    thanks,
    --Jeremiah
     
    Murph, Aug 7, 2003
    #7
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.