Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Jan 15, 2002
180
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
 
Replies continue below

Recommended for you

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