Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layer Dialogue Box, Invert Filter

10 REPLIES 10
Reply
Message 1 of 11
DP-Mike
918 Views, 10 Replies

Layer Dialogue Box, Invert Filter

Is it possible to make "Invert Filter" in the Layer Properties Manager checked by default so every time I open a drawing I don't have to open layers and check the box? 

 

And no I will not UnCheck "Apply Layer Filter to Toolbar," that defeats the purpose of the filter when using the Layer Pulldown Toolbar.

 

Personnaly I'm very tired of many settings not staying from one session of Cad to another. I know it's one step probably once a day, but some days I go back into old drawings 4 or 5 times and each time I click Layer Pull Down and get only the XREF layers. Plus when I have to reset multiple things, (column sizes and order in layer properties box, both open dialogue boxes, size of open boxes) every day it seems less productive.

 

Thanks

DP Mike

10 REPLIES 10
Message 2 of 11
smaloneCKM3L
in reply to: DP-Mike

Layer Dialogue Box, Invert Filter

Is it possible to make "Invert Filter" in the Layer Properties Manager checked by default so every time I open a drawing I don't have to open layers and check the box? 

 

And no I will not UnCheck "Apply Layer Filter to Toolbar," which defeats the purpose of the filter when using the Layer Pulldown Toolbar.

 

Personally, I'm very tired of many settings not staying from one session of Cad to another. I know it's one step probably once a day, but some days I go back into old drawings 4 or 5 times, and each time I click Layer Pull Down and get only the XREF layers. Plus when I have to reset multiple things, (column sizes and order in layer properties box, both open dialogue boxes, size of open boxes) every day it seems less productive.

 

If there are no default settings are there any LISP routines, User interface commands that can toggle the checked box on and off with a command/enter sequence. 

 

Message 3 of 11
ВeekeeCZ
in reply to: smaloneCKM3L

Which filter are you actually inverting?

Message 4 of 11
paullimapa
in reply to: ВeekeeCZ

I'm with @DP-Mike on this.  I typically like to have Invert Filter checked so I see just the Xref Layers.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 11
smaloneCKM3L
in reply to: ВeekeeCZ

smaloneCKM3L_0-1653499513519.png

Is there a way to assign a key stroke to this invert filter check box to switch from checked to unchecked?

Message 6 of 11
ВeekeeCZ
in reply to: DP-Mike

The best I can offer is a combo of

 

Ctrl+I Alt+I ENTER

 

Alt+I is the one that toggles the feature. BUT only if the LAYER palette (= modeless dialog) is focused. That unfortunately means that you literally need to click on the palette itself, just plain launch is not enough. I guess it's useless at this point.

 

But... IF you launch the old modal dialog CLASSICLAYER instead, this one is focused automatically. So in the CUI you can assign eg. CTRL+I for CLASSICLAYER (or any other shortcut if that one does not work for you, or possibly just an ALIAS... in that case you can have eg. I ENTER Alt+I ENTER). 

 

Even in the CLASSICLAYER dialog has to be a filter side bar on, but it is saved in registry.

 

HTH

Message 7 of 11
smaloneCKM3L
in reply to: ВeekeeCZ

That is a solution I can work with. I'm constantly using the layer drop-down toolbar and typically need to go in the layer manager to toggle the invert filter to see local layers. I think I will change the alias Alt +I to something a little shorter. The toggle function Alt +I  works as you explained in the layer properties manager, so thank you. 

Message 8 of 11
ВeekeeCZ
in reply to: smaloneCKM3L


@smaloneCKM3L wrote:

... I think I will change the alias Alt +I to something a little shorter. ... 


 

Unless you know some trick that I don't, Alt+I cannot be changed.

Message 9 of 11
smaloneCKM3L
in reply to: ВeekeeCZ

I looked for a trick with edit alias or synonym options and didn't find anything within cad. The workaround option that is available to me is I'm able to program a number of key strokes in my mouse software, but I have to sacrifice one of my programable mouse buttons. See attached, I'm not sure if I will end up keeping the assignment but its an option.

smaloneCKM3L_0-1653666780219.png

 

Message 10 of 11
ВeekeeCZ
in reply to: DP-Mike

I too have a tilting mouse wheel. It's an awesome feature - left to TRIM, right to EXTEND. I wouldn't change it for anything in the world.

 

IMHO it's not worth it. Even if you don't have anything better to assign there, it's just that it doesn't solve the whole problem.

 

Try to explore something like AutoHotkey. I can't help with that, but it seems to me worth exploring.

 

Else, I would probably go with I-space-Alt+I-enter. Or that Crtl+I-Alt+I-Enter.

 

Good luck.

Message 11 of 11
paullimapa
in reply to: ВeekeeCZ

Since I typically use the Invert option to have the Layer dropdown list show me non-xref layers vs xref layers, I've created a couple of quick lisp function to call up one vs the other. These could be easily entered as macros onto the Ribbon as well. 

Since AutoCAD has already these built-in Layer Filter Groups, it's a matter of entering the exact Filter name (case sensitive) at the Command line for the Layer Filter Group to appear on the Layer dropdowns.

After loading the code, I type "1" on the keyboard to have the layer dropdown show me non xref layers.

I can also type "2" on the keyboard to have the layer dropdown show me all the xref layers only.

Type "0" at the command prompt to restore all layer filter listing.

You can go on to create as many additional Layer Filters and call them up using this format.

 

; 1 will place all non-xref layers filter on the layer dropdown
(defun c:1 ()(command"-Layer" "_Filter" "_Set" "All non-Xref Layers" "_X" ""))
; 2 will place all the xref layer filter on the layer dropdown
(defun c:2 ()(command"-Layer" "_Filter" "_Set" "Xref" "_X" ""))
; 0 will place all layers filter on the layer dropdown
(defun c:0 ()(command"-Layer" "_Filter" "_Set" "All" "_X" ""))

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

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

Post to forums  

Autodesk Design & Make Report

”Boost