CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 3930
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage 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.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedSelect All on a certain layer.

 Post Reply Post Reply
Author
djp6 View Drop Down
Newbie
Newbie


Joined: 19.Sep.2010
Location: United Kingdom
Using: AutoCAD 2008 work 2011 home
Status: Offline
Points: 10
Direct Link To This Post Topic: Select All on a certain layer.
    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

Back to Top
Cad64 View Drop Down
Senior Member
Senior Member


Joined: 17.Apr.2010
Location: United States
Using: Autocad 2011, 3DS Max 2011, Photoshop CS5
Status: Offline
Points: 491
Direct Link To This Post 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/
Back to Top
Ron C View Drop Down
Groupie
Groupie


Joined: 05.Sep.2008
Location: United States
Using: AutoCAD2010
Status: Offline
Points: 36
Direct Link To This Post 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
Back to Top
rob s View Drop Down
Newbie
Newbie


Joined: 14.Oct.2010
Location: Netherlands
Using: AutoCAD 2010
Status: Offline
Points: 9
Direct Link To This Post 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.
Back to Top
goons View Drop Down
Newbie
Newbie


Joined: 13.Jul.2010
Location: Canada
Using: autoCAD2018
Status: Offline
Points: 4
Direct Link To This Post Posted: 29.Oct.2010 at 00:59

try quick select, another way to select entities.

Back to Top
Cats View Drop Down
Newbie
Newbie


Joined: 29.Oct.2010
Location: Philippines
Using: autocad 2007
Status: Offline
Points: 1
Direct Link To This Post Posted: 30.Oct.2010 at 19:23
how filter work... can you elaborate the procedure?
Cats
Back to Top
Cad64 View Drop Down
Senior Member
Senior Member


Joined: 17.Apr.2010
Location: United States
Using: Autocad 2011, 3DS Max 2011, Photoshop CS5
Status: Offline
Points: 491
Direct Link To This Post Posted: 30.Oct.2010 at 22:10
Online Portfolio: http://www.rdeweese.com/
Back to Top
linhoreka View Drop Down
Newbie
Newbie


Joined: 04.Nov.2010
Location: Vietnam
Using: AutoCAD2008
Status: Offline
Points: 16
Direct Link To This Post 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

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,402 seconds.