Select all objects in a layer

selecting

#1

Pretty basic question here…
I’m trying to select all entities in a certain layer. Is there a way?


#2

You could turn off the visibility for the other layers leaving those entities on the desired layer visible for selection. You can quickly turn off all layers by selecting the first one in the list and then the last one while holding Shift. Then deselect the layer containing the groups/components you want to select. Turn off the visibility for the selected layers.


#3

Ah yes. That’s pretty quick and easy. Thanks.


#4

Any time.

Your question made me go hunt to see if there’s an extension that might allow it to be done differently but I didn’t find one.


#5

This two-liner pasted into the Ruby Console will select everything in the current context by layer-name.
Edit the first line to define the layer’s name - default “Layer0”.

n="Layer0";
m=Sketchup.active_model; s=m.selection; s.clear; m.active_entities.each{|e| s.add(e) if e.layer.name==n };

#6

Selection Toys has a Select all on Selected Layer option.


#7

This topic was automatically closed after 91 days. New replies are no longer allowed.