Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selecting objects by layer property

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
HeatRye
298 Views, 2 Replies

Selecting objects by layer property

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!!!

 

2 REPLIES 2
Message 2 of 3
Kent1Cooper
in reply to: HeatRye

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
Message 3 of 3
HeatRye
in reply to: Kent1Cooper

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

 

Have a great week!!!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost