You could call the command and add a line of pauses until the next command, in LISP it looks like this:
Code:(command....) (while (> (getvar "cmdactive") 0) (command pause)) (command....)


Registered forum members do not see this ad.
i need to change the macro in the CUI so that when i click on a button in the toolbar it runs a command prior to the command i want to call up.
You could call the command and add a line of pauses until the next command, in LISP it looks like this:
Code:(command....) (while (> (getvar "cmdactive") 0) (command pause)) (command....)
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Registered forum members do not see this ad.
Macro is where I first started in customizing commands, then I moved up to working in LISP (which I am still having a hard time working with). I created several custom macro's that contained over 10 commands in a single button click!
What commands are you wanting to combine? First, create a new command or copy the command that will be first in your macro. Set up the macro for the first command to do what you want, then at the end, put in ";" which acts like when you type enter which ends the first command, then ^C^C and the name of the second command you want.
Afterwards, you can create a custom icon or button image for your custom macro. Just remember, you never want to mess with the original macro commands, just copy and manipulate it that way.
***EDIT***
I forgot, when you have more than one command in a macro, if you choose to do it that way, use "+" after the last ";" and before ^C^C. Here is an example:
^C^Cselect;\pedit;m;previous;;j;j;a;12";+^C^Cfille t;p;last;
Guess what? I got a fever! And the only prescription.. is more Cad Lines!![]()
Bookmarks