All layers on

i have searched several different ways, how do i turn all layers on(make them visible) with out individually clicking each one? this can be helpful on a large file when looking for a particular entity. i know my layer names should tell me where they are, but sometimes something gets created on an errant layer by mistake.

Use a command line macro:
-Layer On * Enter

The leading hyphen is important

The Layer toolbar has a button for this macro already.

thanks. replacing on with off turns them all off except the current layer as well. cool! control a and control q for me.

thanks margaret, i see that now. that would mean clicking a new tool bar to get to it though. for this particular use the shortcut is faster.

True, but it might help someone else who is a toolbar junkie.
:smile:

absolutely!

Hi John, thanks a lot for the reply! Would you please explain a little further what does the asterisk do in this script? thanks again!

he was just calling out the fact you need to hit enter.

the asterisk is not part of the script.

Hi Kyle thanks for the prompt reply.

The script no longer works without the asterisk.
In the Rhino macro documentation the asterisk also has a special meaning that I am looking to understand here how it’s applicable here.
Would you please clarify? @John_Brock

Thanks again!
Iyang

duh… my bad… you are right… that is actually calling the “enter” key to complete the command

When Rhino is asking for a name you can use the asterisk * as a wildcard character.
In case of the _Layer command it will accept any name (all layers)
Lay* will select all layer names which start with “Lay”
*03 selects layers which ends with “03”
*ay * selects layers which contains “ay”

HTH,
Jess

THIS IS VERY CLEAR AND HELPFUL… THANK YOU SO MUCH !!!
This really well explains what it actually does.