How make transparencydisplay toggle

How make transparencydisplay toggle

ht23624
Contributor Contributor
552 Views
6 Replies
Message 1 of 7

How make transparencydisplay toggle

ht23624
Contributor
Contributor

How make transparencydisplay toggle keyboard shortcuts in cui? For example F1 key work  turn on off.

 

To me It looks difficult make toggle micro.

like this Toggles Polar Mode

^P'_.autosnap $M=$(if,$(and,$(getvar,autosnap),8),$(-,$(getvar,autosnap),8),$(+,$(getvar,autosnap),8))

transparecydisplay toggle.png

0 Likes
Accepted solutions (1)
553 Views
6 Replies
Replies (6)
Message 2 of 7

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

in tooltip you see the variable in question: TRANSPARENCYDISPLAY

in help you the valid values [F1] -> 0 off, 1 on

and also how DIESEL function IF works.

All together, you can create a Macro like this: ^P'_.TRANSPARENCYDISPLAY;$M=$(if,$(and,$(getvar,TRANSPARENCYDISPLAY),1),0,1) 

 

The part about keyboard shortcuts

You can create your own key-combinations or re-define an existing one.

(I wouldn't redefine a standard, but that'S your choice)

https://help.autodesk.com/view/ACD/2026/ENU/?guid=GUID-9970E91B-A4F5-405C-99C1-46AD804A8858

 

Sebastian

Message 3 of 7

cadffm
Consultant
Consultant

^P don't show the steps in commandline

' do it transparent - so a running command will not cancel by this macro

_ it follow the engl. commandname (this way, the command works in all language versions)

. use the original command (it is possible that plugins re-defined the normal command, the period forcing the original one)

TRANSPARENCYDISPLAY is the commandname (the englisch one)

; Semicolon is an ENTERhit in menumacros, to send the input to the program

$M= like send feedback to Acad/commandline / here starting a DIESELexpression

$(if, IF

$(and, AND

$(getvar,TRANSPARENCYDISPLAY), feedback/value of TRANSPARENCYDISPLAY variable

1 is 1

), end of AND expression, which is a test for "all values are 1"? to verify if transparencydisplay is currently set to 1 (or not to 1)

0, send 0

1 send 1

) end of IF expression

 

 

HTH

Sebastian

Message 4 of 7

ВeekeeCZ
Consultant
Consultant

I found convenient to redefine Fx keys, those are most efficient toggles. BUT I would discourage from F1 specifically, just because it's the trouble one. There is some bug which prevents full HELP redefinition.

0 Likes
Message 5 of 7

cadffm
Consultant
Consultant

👍also redefine CTRL+C/CTRL+V CAN run into problems.

 

So, the simple rule is: Do not redefine standards.

 

The other side of that simple rule of thumb is:
Do you know how the program works in the standard version?

Can you help yourself?

Then do what you want 😊

Sebastian

0 Likes
Message 6 of 7

ht23624
Contributor
Contributor

Thank you very much. I think I can apply it in the way you told me. I always have trouble pressing the middle mouse button and panning. The middle mouse button is too hard. There is no suitable mouse. I would like to hear your valuable opinion. Should I do a lot of middle finger exercises?

0 Likes
Message 7 of 7

cadffm
Consultant
Consultant

I would further search for a suitable mouse, there are thousands.

 

Sebastian

0 Likes