Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trying to create a grips toggle button

4 REPLIES 4
Reply
Message 1 of 5
tlr156
188 Views, 4 Replies

Trying to create a grips toggle button

I am trying to transfer the few customized toolbars, & menus our company uses from LT '02 to LT '06. I noticed we had a button that was supposed to turn toggle the grips on & off, however it only manages to bring up the "grips" command at the command line & you have to input "1" or "0" & "enter" to change the current setting. Is there some sort of "getvar" or other language I can use for the "Macro" portion of Properties in the CUI to have a single button toggle the setting or will I need to make one button to turn them on & one to tun them off to avoid using the keyboard?

Thanks,
Scott
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: tlr156

What was the original macro for that button?

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Message 3 of 5
Anonymous
in reply to: tlr156

setvar;grips;$M=$(if,$(eq,$(getvar,grips),0),1,0)

Rough translation:
If getvar,grips equals 0 then setvar,grips to 1 else 0

Conny


skrev i meddelandet news:5066413@discussion.autodesk.com...
I am trying to transfer the few customized toolbars, & menus our company
uses from LT '02 to LT '06. I noticed we had a button that was supposed to
turn toggle the grips on & off, however it only manages to bring up the
"grips" command at the command line & you have to input "1" or "0" & "enter"
to change the current setting. Is there some sort of "getvar" or other
language I can use for the "Macro" portion of Properties in the CUI to have
a single button toggle the setting or will I need to make one button to turn
them on & one to tun them off to avoid using the keyboard?

Thanks,
Scott
Message 4 of 5
tlr156
in reply to: tlr156

Dean, the original macro was just ^C^C_GRIPS, which launched the grips command at the command line, & you had to manually enter 1 or 0. Whoever set it up originally had not completed the macro.

Conny, thank you, that is EXACTLY what I was looking for. I've been "out of the loop" for several years, & seem to have forgotten everything I used to know about AutoCAD customization.
Message 5 of 5
Anonymous
in reply to: tlr156

That's funny, I've been out of the loop for a while as well 🙂

Conny

skrev i meddelandet news:5066467@discussion.autodesk.com...

Conny, thank you, that is EXACTLY what I was looking for. I've been "out of
the loop" for several years, & seem to have forgotten everything I used to
know about AutoCAD customization.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost