Selecting objects by layer property

Selecting objects by layer property

Anonymous
Not applicable
417 Views
2 Replies
Message 1 of 3

Selecting objects by layer property

Anonymous
Not applicable

Hello,

 

I am trying to create a lisp that will select all objects on all layers whos linetype property is not equal to continuous. My ultimate goal is to select all lines and turn them to layer 0 but keep the original line type.

 

For example:

   all lines are set to linetype: by layer

 

layer list:

  lay1   linetype: continuous

  lay2   linetype: continuous

  lay3   linetype: continuous

  lay4   linetype: hidden2

  lay5   linetype: hidden2

  lay6   linetype: phantom

 

I want to select everything on lay4, lay5, and lay6 and change the linetype overwrite from "bylayer" to "hidden2" so that when I change them over to layer 0, the line will still look hidden2.

 

Thank you for your help

Have a great day!!!

 

0 Likes
Accepted solutions (1)
418 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant
Accepted solution

Welcome to the Forums!

 

This kind of thing comes up here now and then, in fact a couple of times quite recently, for example here.  What you'll find there may be more extensive than you need [designed to do everything in the drawing, and there are links to things to do everything in Block definitions], but could be pared down to do a little less, if you prefer.

Kent Cooper, AIA
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you!! This pointed me in the corect direction. I appologize for the delayed reply. I appreciate your help.

 

Have a great week!!!!

0 Likes