How about this?
[TAF]^c^c(defun c:temp () (gcvr_sub "TAF" 12));temp
[TAM^c^c(defun c:temp () (gcvr_sub "TAM" 10));temp
etc.......
--
Jeff
check out
www.cadvault.com
"TRJ" <a0h9rjone@cfl.rr.com> wrote in message
news:42547280$1_1@newsprd01...
If I create a subroutine and call it in each macro with the appropriate
values as in:
[TAF]^c^c(gcvr_sub "TAF" 12)
it DOES NOT repeat with a simple Enter.
I cannot imagine having to create unique C: defuns for each line of the
menu
(hundreds of lines). And as stated before, I realize a menu macro can be
made to repeat until escaped but, again, this is not the desired
functionality.
Can't you create a "container" or temporary C: defun of some sort to
accomplish the desired functionality? Is the lambda function what I'm
looking for? I've never used it nor do I understnd its use.
"Tom Closs" <tcloss@incat.com> wrote in message
news:42541f14$1_3@newsprd01...
It looks as if all of these macros creates some layers and inserts
blocks
on
these layers. If you created a simple LISP routine to do the same
thing
it
would allow you to use the Enter key to repeat the LISP lika a seperate
AutoCAD command. I think this is what you are looking for.
--
Tom Closs
INCAT
tcloss@incat.com
www.incat.com
"TRJ" <a0h9rjone@cfl.rr.com> wrote in message
news:4254157a_2@newsprd01...
I have a partial menu (heirarchical) with hundreds of lines like the
following:
[SP-20 ]^c^c-LAYER;M;LA-TREE;C;3;;;-INSERT;TREE-01;\(/ 10.0 12)+
;;;SP-20;-LAYER;M;LA-TREEHT;C;2;;;-INSERT;TREE-HGT;@;!sf;;;20;
How can these macro be "defun'd" so that a single return will repeat
the
macro? I know how to make macros repeat but this is not the desired
functionality.