Script

Discussion in 'AutoCAD' started by dveusa, Mar 28, 2006.

  1. dveusa

    dveusa Guest

    I am trying to write a scipt that automatically performs following
    commands:

    zoom extends

    explode all (I do not want any blocks remaining in the drawing -
    sometimes blocks are nested)

    purge all (to make sure all unwanted items such as legacy block names
    and linetypes are gone)

    wblock (start a new wblock routine that then lets me pick entities to
    form a block and save the block under a certain name while it remains
    in the drawing - after that wblock the entire drawing with a different
    name)

    I have come up with following script (that does not work, depending on
    the state of the drawing on which it is applied to):

    ^C^C
    zoom e
    explode ALL
    PURGE
    wblock

    I an trying to learn as I go along but after a full morning wasted I
    would certainly appreciate some help.

    Thanks
     
    dveusa, Mar 28, 2006
    #1
  2. dveusa

    Remo Shiva Guest

    try this:

    ^C^Czoom e^Mexplode all^M^M-purge all^M^Mn^Mwblock^M
     
    Remo Shiva, Mar 28, 2006
    #2
  3. dveusa

    dveusa Guest

    Thanks for the help. Just what I needed to get started on macros.
     
    dveusa, Mar 30, 2006
    #3
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.