Hi,
Is there any command to choose just one layer we want to activate (not choose by click the mouse).. for example I want to activate the blue layer, i think it can be faster if I type rather than click it.. *beginner*
With that list pulled down, type the first letter and the Layer gets sort of semi-highlighted; hit Enter. That works for me in a trial in Acad2016.
@Udins wrote:
it works while the layer pulled down like you say Mr. Kent .. but how we choose if the list is not pulled down ? .. sorry for my strange question.
Well, it would probably take longer, but you can type -LA [with the hyphen prefix], which will bring up the command-line version of the Layer command, then type S for Set, the Layer name, and an extra Enter to end the command. But in that way of doing it, you have to type the entire Layer name.
Or, for a limited number of Layer names, you could define little commands that would make the appropriate one current. For example:
(defun C:BI () (setvar 'clayer "biru"))
Write a bunch of those, in a .lsp file, and load it, and you can type BI and it will set the BIRU Layer current.
@Kent1Cooper wrote:With that list pulled down, type the first letter and the Layer gets sort of semi-highlighted; hit Enter. That works for me in a trial in Acad2016.
Thanks for your kindly answer .. but I prefer to choose your answer as I quotted above. I'm not interested in autolisp yet for this time .. because am still reinforce my skill in 2D ..
USED A LISP LIKE THAT BACK IN THE DAY WHEN OUR LAYERS WHERE NAMED "1" - "8"
JUST HIT THE NUMBER AND ENTER
YOU GOT TWO CLICKS TO ACTIVATE THAT LAYER
A LISP WOULD REQUIRE YOU TYPE THE NAME
FOR MY MONEY, THAT IS THE QUICKEST WAY
The icon for the LAYMCUR command is right there beside the layer pull down. Pick on any object, pick that icon, done.
Misread your question, ignore above.
With the right INPUTSEARCHOPTIONS settings you can type in the command line a few letters of a layer and then pick from the list shown, or pick the only one that matches.
GrantsPirate
Piping and Mech. Designer
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.
You could make your own toolbar with buttons by entering the CUI? Then you will get your layer with the push of one button.
@pendean wrote:
....
-LAYER <enter>
M <enter>
name_of_layer <enter>
<enter>
That was my suggestion at the beginning of Post 4, except for my using the command alias [saves three whole keystrokes!] and using the Set option rather than Make. The Make option is good if the Layer may not already exist in the drawing, because it will create it if needed, but simply set it current if it's there already. But the disadvantage I see with it is that if the Layer you want is in the drawing, but you happen to mis-type the name in any way, you'll end up [perhaps unwittingly] in an unwanted and extraneous Layer. If you use the Set option, it will inform you if you mis-type an existing Layer name [and also if the Layer doesn't exist].
In any case, I think they were after something quicker than all that typing, and I would guess just the basic pull-down-list approach would usually be quicker. They didn't explain why they initially seemed to want to do it without pulling down the list, but Post 5 sounds like they're resigned to that way of doing it.