TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Artisan on October 21, 2004, 12:40:02 PM

Title: Button Macro
Post by: Artisan 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
Title: Button Macro
Post by: whdjr on October 21, 2004, 01:03:33 PM
You could try
Code: [Select]
(princ "Framing Plan")
Title: Button Macro
Post by: Artisan 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?
Title: Button Macro
Post by: Keith™ 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.
Title: Button Macro
Post by: Artisan on October 22, 2004, 09:25:21 AM
Thanks for the help Keith, that worked great.