How can I undefine a Command and Make Previous 2 Key macro call new definition

Discussion in 'AutoCAD' started by matt_1ca, Feb 9, 2005.

  1. matt_1ca

    matt_1ca Guest

    When I redefine a command say --
    (command "redefine" "ddedit")
    (defun c:ddedit() (alert "mama") )
    I find that previous two key shortcut I created using
    (defun c:dd() (command "ddedit"))
    also disappear and would say unknown command ddedit.

    How can I redefine a command and make my original two key shortcut work automatically calling the new definition of the command?

    Which in my example above translates to -- How can I redefine ddedit and automatically make my dd two key macro ( I wrote say one year ago) execute the code (alert "mama")

    Matt
     
    matt_1ca, Feb 9, 2005
    #1
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.