Print Page | Close Window

Select All on a certain layer.

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=4669
Printed Date: 05.Sep.2026 at 05:31


Topic: Select All on a certain layer.
Posted By: djp6
Subject: Select All on a certain layer.
Date Posted: 26.Oct.2010 at 18:21

Hi

How do you select everything on one layer?

I want to be able to copy and paste all from one layer into another layer?

Do I have to use scripts?

Any help would be much appreciated.


Cheers

Dave




Replies:
Posted By: Cad64
Date Posted: 26.Oct.2010 at 22:27
Use the LAYISO command to isolate the layer. Then you can easily window select everything and copy. Then just LAYUNISO to unisolate everything.

Depending on your version of Autocad, these commands may or may not be Express Tools.


-------------
Online Portfolio: http://www.rdeweese.com/" rel="nofollow - http://www.rdeweese.com/


Posted By: Ron C
Date Posted: 27.Oct.2010 at 17:53
djp6,
Cad64 has got you on the right track.  Depending on the version of AutoCAD you have after using LAYISO use COPYTOLAYER.
good luck.


-------------
RDC


Posted By: rob s
Date Posted: 28.Oct.2010 at 14:07
If you don´t want to isolate layers and to keep seeing everyting then you can use the command ´Filter´. You can select the layer of what you want to select everything there.

-------------
Visit http://www.acad-blocks.com" rel="nofollow - http://www.acad-blocks.com


Posted By: goons
Date Posted: 29.Oct.2010 at 00:59

try quick select, another way to select entities.



Posted By: Cats
Date Posted: 30.Oct.2010 at 19:23
how filter work... can you elaborate the procedure?

-------------
Cats


Posted By: Cad64
Date Posted: 30.Oct.2010 at 22:10
Filter: http://www.ellenfinkelstein.com/autocadtips/AutoCAD_tips_create_complex_selection_filter.html" rel="nofollow - http://www.ellenfinkelstein.com/autocadtips/AutoCAD_tips_create_complex_selection_filter.html



-------------
Online Portfolio: http://www.rdeweese.com/" rel="nofollow - http://www.rdeweese.com/


Posted By: linhoreka
Date Posted: 04.Nov.2010 at 14:57
You would find the following lisp useful: 1st:  Run "LF" (layer filter) command 2nd: Select command to perform (Erase, Copy, Move, Rotate, Scale or Mirror). 3rd. Select one or more objects on drawing as sample to get the layers. Finally, make your selection. Only object on choosen layers from the sample objects are selected. The command Erase, Copy or etc. would perform on the last selection.


(defun C:LF (/ ob obl la ss1 ss fil lalist i le cm)
  (initget "Erase Copy Move Rotate Scale Mirror")
  (setq cm (getkword "Erase Copy Move Rotate Scale Mirror: "))
  (prompt (strcat "Select sample objects in seclected layer to perform command " cm "\n"))
  (setq ss1 (ssget)
le (sslength ss1)
i -1
lalist (list))
  (repeat le (setq i (1+ i))
    (setq ob (ssname ss1 i)
 obl (entget ob)
 la (cdr (assoc 8 obl))
 )
    (setq lalist (uni_app lalist la))
    )
  (setq fil (list))
  (foreach la lalist
    (setq fil (app fil (cons 8 la)))
    )
  (setq fil (app fil (cons -4 "OR>"))
fil (append (list (cons -4 "<OR")) fil)
)
  (prompt (strcat "Select objects. Objects not in layer " la " will be filter out ..."))
  (setq ss (ssget fil))
  (if (= "Copy" cm)(command cm ss ss1 "" "M")
  (command cm ss ss1 ""))
  (princ)
  );end defun




Print Page | Close Window