Multiple erase

Discussion in 'AutoCAD' started by amitvedak, Dec 23, 2004.

  1. amitvedak

    amitvedak Guest

    hellow there,

    i need command like erase single or window or crossing
    any type of selections but if once selected,
    objects shud erased
    and command need to be restarted. but if i enter nil
    command shud exit not canceled by escape,
    does it possible, i tried to much,
    even i used * in menu, but it needs esc for termination.
    repeating 1000 times also needs esc for termination
    pls help me in this func
    thanks
    amit
     
    amitvedak, Dec 23, 2004
    #1
  2. amitvedak

    Jim Claypool Guest

    (defun c:merase ( / ss)
    (princ "\nMultiple Erase: ")
    (if (setq ss (ssget))
    (progn
    (command ".erase" ss "")
    (c:merase)
    )
    )
    (princ)
    )
     
    Jim Claypool, Dec 23, 2004
    #2
  3. amitvedak

    Jim Claypool Guest

    This will work better

    (defun c:merase ( / ss)
    (princ "\nMultiple Erase: ")
    (while (setq ss (ssget))
    (command ".erase" ss "")
    (princ "\nMultiple Erase: ")
    )
    (princ)
    )
     
    Jim Claypool, Dec 23, 2004
    #3
  4. amitvedak

    Biscuits Guest

    Try this macro:
    *^C^C_erase;SINGLE;
     
    Biscuits, Dec 28, 2004
    #4
  5. amitvedak

    amitvedak Guest

    hi,
    thanks for the micro, this one is very old from acad12
    but it needs esc for exit, i m looking something which runs same as this menu macro and ends adter enter
    no need to cancel.

    pls tell me if u aware
    amit
     
    amitvedak, Dec 28, 2004
    #5
  6. amitvedak

    Jim Claypool Guest

    I posted a solution for you on 12/23 just 2 1/2 hours after you asked.
     
    Jim Claypool, Dec 28, 2004
    #6
  7. thanx jim,
    but cmd doesent erases single object immidiately

    amit
     
    shailendra vaidya, Apr 1, 2005
    #7
  8. amit do tell me

    if u recd. proper solution on thic cmd

    shailendra vidya
    Devyani cad sodtware developments
    http://devcs.com
     
    shailendra vaidya, Apr 1, 2005
    #8
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.