Re: lisp help: identify ltype if set to "bylayer"?

Jun 22, 2003 Last reply: 23 years ago 3 Replies


I need to find a way to identify an element's linetype when it is set to


> "bylayer". There is no group code 6 in the assoc list returned by the
> entget function when the ltype is "bylayer".

Then why not test for the presence of a group code 6?


I have to find all the elements in the database that have "hidden" and
> "center" as their line type. Is there any lisp code that will help me
> identify an element's or layer's line type when ltype is set to "bylayer"?

These could be different things. Do you want the hidden and center, the bylayer, or both? If it bylayer you want see above. If it the others, test for the line types in the group code.

It was answered. Test for a group code 6. If none exits, it's bylayer, in which case you'd have to check the layer's linetype setting.

Can you search the layer definitions for layers with "Hidden" and "Centre" linetypes?

If you can, copy each such layer name to variable then search for elements on that/those layer(s).

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required