Author Topic: Button Macro  (Read 2198 times)

0 Members and 1 Guest are viewing this topic.

Artisan

  • Guest
Button Macro
« on: October 21, 2004, 12:40:02 PM »
I have a quick question about a macro I am trying to use in a button I have created. We use layer states and restore them often to look at different layouts. I have created some buttons that restore named layer states that are one word only. We have a couple that are two or more words long, like Framing Plan. Upon entering this into a macro, one cannot use a space because it reads as an enter. Are there other ways of doing this without changing the names of our states? Maybe a lisp? Thanks

whdjr

  • Guest
Button Macro
« Reply #1 on: October 21, 2004, 01:03:33 PM »
You could try
Code: [Select]
(princ "Framing Plan")

Artisan

  • Guest
Button Macro
« Reply #2 on: October 21, 2004, 08:23:46 PM »
Does that work in a button macro? Or would I need to attempt to create a lisp?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Button Macro
« Reply #3 on: October 21, 2004, 08:40:23 PM »
You should be able to use a named state with a space in it if you enclose the name in quotes.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Artisan

  • Guest
Button Macro
« Reply #4 on: October 22, 2004, 09:25:21 AM »
Thanks for the help Keith, that worked great.