Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select All Objects On One Layer 1

Status
Not open for further replies.

briand2

Mechanical
Joined
Jan 15, 2002
Messages
180
Location
GB
I often want to select ALL objects on ONE layer (I am using AutoCAD LT 2000). Is there any way I can do this?

Thanks for your help.

Brian
 
FILTER or turn the rest of them off.
 
Thanks a lot. I had been using your second suggestion (turning the rest of the layers off), but this was awkward as the drawings I use have so many layers and I can't always remember which ones were already off before I started!

Filter is just what I needed.

Brian
 
There is an EXPRESS tool for isolating layer(s). You select an element on each layer you wish to remain on, and it turns off the rest.

Or here is an old routine that turns off everything but the selected layer. Only works on one layer.

defun C:LSF ()
prompt "\nPick object drawn on layer you wish to be new CURRENT LAYER ...")
setq LAY (cdr (assoc '8 (entget (car (entsel))))))
command "-layer" "S" LAY "off" "*" "N" "")
)
 
let's see if I can get all the parens to show up this time.

(defun C:LSF ()
(prompt "\nPick object drawn on layer you wish to be new CURRENT LAYER ...")
(setq LAY (cdr (assoc '8 (entget (car (entsel))))))
(command "-layer" "S" LAY "off" "*" "N" "")
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top