Over 1.106.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
Discussion forum
?CAD discussions, advices, exchange of experience
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply
|
| Author | |
linhoreka
Newbie
Joined: 04.Nov.2010 Location: Vietnam Using: AutoCAD2008 Status: Offline Points: 16 |
Topic: Select All on a certain layer.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 |
|
![]() |
|
Cad64
Senior Member
Joined: 17.Apr.2010 Location: United States Using: Autocad 2011, 3DS Max 2011, Photoshop CS5 Status: Offline Points: 491 |
Posted: 30.Oct.2010 at 22:10 |
|
Online Portfolio: http://www.rdeweese.com/
|
|
![]() |
|
Cats
Newbie
Joined: 29.Oct.2010 Location: Philippines Using: autocad 2007 Status: Offline Points: 1 |
Posted: 30.Oct.2010 at 19:23 |
|
how filter work... can you elaborate the procedure?
|
|
|
Cats
|
|
![]() |
|
goons
Newbie
Joined: 13.Jul.2010 Location: Canada Using: autoCAD2018 Status: Offline Points: 4 |
Posted: 29.Oct.2010 at 00:59 |
|
try quick select, another way to select entities. |
|
![]() |
|
rob s
Newbie
Joined: 14.Oct.2010 Location: Netherlands Using: AutoCAD 2010 Status: Offline Points: 9 |
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.
|
|
![]() |
|
Ron C
Groupie
Joined: 05.Sep.2008 Location: United States Using: AutoCAD2010 Status: Offline Points: 36 |
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
|
|
![]() |
|
Cad64
Senior Member
Joined: 17.Apr.2010 Location: United States Using: Autocad 2011, 3DS Max 2011, Photoshop CS5 Status: Offline Points: 491 |
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/
|
|
![]() |
|
djp6
Newbie
Joined: 19.Sep.2010 Location: United Kingdom Using: AutoCAD 2008 work 2011 home Status: Offline Points: 10 |
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,197 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)



Select All on a certain layer.

Topic Options


