TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: viva on September 11, 2006, 02:38:57 AM

Title: find out data type of layername
Post by: viva on September 11, 2006, 02:38:57 AM
hi everybody,
i had one query in autolisp. how 2 find out the datatype of the layername (string ,integer ...) by using autolisp. can anyone help me regarding this query

regards
vivek
Title: Re: find out data type of layername
Post by: It's Alive! on September 11, 2006, 03:31:01 AM
I think they are all strings

(type(cdr(assoc 2(tblsearch "layer" yourlayer ))))

Dan
Title: Re: find out data type of layername
Post by: viva on September 11, 2006, 04:00:53 AM
hi
   thanks for ur reply. i got the solution in some other forum. i had mention the link below. i hope it will useful for forum members
http://discussion.autodesk.com/thread.jspa?messageID=5324266&#5324266

regards
vivek