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.