Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ВeekeeCZ
en respuesta a: Thomasbatson

It's more complicated. You can use the name CLOSE for you routine, but you need to UNDEFINE the autocad's original command first. Then you can use your routine to define contents for the CLOSE command name.

Your lisp routine should look like this:

 

{*.lsp beginnig}

 

(command "UNDEFINE" "CLOSE")

 

(defun c:CLOSE ()

(command "_.zoom" "ex") 

(command-s "_.SAVE"

(command "_.CLOSE").....  ; note the DOT!!!!

 

BTW Your custom command marco definition: ^C^C_.ZeSC    - Added . (dot) has no sence in here. Also underscore is useless here.