SELECTIONANNODISPLAY tool palette button

SELECTIONANNODISPLAY tool palette button

ckeesGF9JG
Explorer Explorer
844 Views
4 Replies
Message 1 of 5

SELECTIONANNODISPLAY tool palette button

ckeesGF9JG
Explorer
Explorer

Hi I want to create a tool palette button that toggles SELECTIONANNODISPLAY between <1> and <0>. Can someone help me the structure the command string so that it toggles the opposite of what is current?

 

Thanks

845 Views
4 Replies
Replies (4)
Message 2 of 5

natasha.l
Alumni
Alumni

Hello @ckeesGF9JG

 

I believe you want to customize a command, if it is available you can make your changes in the Customize User Interface (CUI) Editor.

 

Please "Accept Solution" if a reply or replies have helped resolve the issue or answered your question, to help others in the community.

0 Likes
Message 3 of 5

SeeMSixty7
Advisor
Advisor

Create your button and use the following for the command macro

^C^C(if (= 1 (getvar "SELECTIONANNODISPLAY")) (setvar "SELECTIONANNODISPLAY" 0) (setvar "SELECTIONANNODISPLAY" 1))

Good luck,

Message 4 of 5

Crass
Collaborator
Collaborator

Hello. Thanks for the response. Is this a candidate for creating a conditional expression?

 

I tried this...

^C^C_$M=SELECTIONANNODISPLAY (-,1,$(getvar,fillmode))

 

but it didn't seem to work.

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
0 Likes
Message 5 of 5

cadffm
Consultant
Consultant

^Q'_.SETVAR;SELECTIONANNODISPLAY;$M=$(-,1,$(getvar,SELECTIONANNODISPLAY))

^Q'_.SELECTIONANNODISPLAY;$M=$(-,1,$(getvar,SELECTIONANNODISPLAY))

 

Sebastian

0 Likes