Author Topic: Repeat Lisp via Macro  (Read 3599 times)

0 Members and 1 Guest are viewing this topic.

M-dub

  • Guest
Repeat Lisp via Macro
« on: February 18, 2010, 10:00:57 AM »
In a button used to call a lisp routine, is it not possible to have the routine repeat itself after it has been run once?  I thought I only had to throw an asterisk at the beginning of the macro ( *^C^C.... )

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Repeat Lisp via Macro
« Reply #1 on: February 18, 2010, 10:02:14 AM »
In a button used to call a lisp routine, is it not possible to have the routine repeat itself after it has been run once?  I thought I only had to throw an asterisk at the beginning of the macro ( *^C^C.... )
(It's been a while but....)
The ^C^C is the equivalent to CANCEL.  Try removing those and see if it sticks.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

M-dub

  • Guest
Re: Repeat Lisp via Macro
« Reply #2 on: February 18, 2010, 10:07:43 AM »
In a button used to call a lisp routine, is it not possible to have the routine repeat itself after it has been run once?  I thought I only had to throw an asterisk at the beginning of the macro ( *^C^C.... )
(It's been a while but....)
The ^C^C is the equivalent to CANCEL.  Try removing those and see if it sticks.

I know...
I did that and it thinks that the asterisk is part of the command.


I'm thinking that it would be easier to modify the lisp routine, itself to have it repeat.

I just wish I knew how to do that.  (hint hint hint)  ;)

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Repeat Lisp via Macro
« Reply #3 on: February 18, 2010, 10:09:12 AM »
In a button used to call a lisp routine, is it not possible to have the routine repeat itself after it has been run once?  I thought I only had to throw an asterisk at the beginning of the macro ( *^C^C.... )
(It's been a while but....)
The ^C^C is the equivalent to CANCEL.  Try removing those and see if it sticks.

I know...
I did that and it thinks that the asterisk is part of the command.


I'm thinking that it would be easier to modify the lisp routine, itself to have it repeat.

I just wish I knew how to do that.  (hint hint hint)  ;)

 *hint hint* Chuck a while in there  :wink:

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Repeat Lisp via Macro
« Reply #5 on: February 18, 2010, 10:22:54 AM »
What happens if you use ^C^C(while (not (C:lispName)))
or use ^C^C(while(C:lispName)) if the lisp returns a value.

You will need to escape to exit.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Repeat Lisp via Macro
« Reply #6 on: February 18, 2010, 10:30:59 AM »
I usually just hit ENTER to repeat the command 8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

M-dub

  • Guest
Re: Repeat Lisp via Macro
« Reply #7 on: February 18, 2010, 10:48:15 AM »
What happens if you use ^C^C(while (not (C:lispName)))
or use ^C^C(while(C:lispName)) if the lisp returns a value.

You will need to escape to exit.


Awesome.  :)

Thank-you Alan


(This was the request of someone else.  I'm fine with hitting Enter, Space, or right click. ;) )

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Repeat Lisp via Macro
« Reply #8 on: February 18, 2010, 10:59:18 AM »
You're welcome.
Not sure if that's were Lee was intending the while to go. 8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

M-dub

  • Guest
Re: Repeat Lisp via Macro
« Reply #9 on: February 18, 2010, 11:01:51 AM »
I think so, and I was actually coming back in to ask where to chuck it.  :)

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Repeat Lisp via Macro
« Reply #10 on: February 18, 2010, 11:02:58 AM »
You're welcome.
Not sure if that's were Lee was intending the while to go. 8-)

Not originally, but good clean solution Alan  :-)