TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: guohq on April 29, 2009, 06:06:23 AM

Title: [sos] Read the type of vla-object!
Post by: guohq on April 29, 2009, 06:06:23 AM
If  feature is autolisp object,I  can use "type" function to know the type of the feature.But when the feature is vla object,how can I Know the type of the feature is a line ,lwpolyline or others. Don't use vlax-vla-object->ename.
Title: Re: [sos] Read the type of vla-object!
Post by: mkweaver on April 29, 2009, 06:35:08 AM
Will vla-get-objectname do what you want?
Title: Re: [sos] Read the type of vla-object!
Post by: Matt__W on April 29, 2009, 08:17:43 AM
If  feature is autolisp object,I  can use "type" function to know the type of the feature.But when the feature is vla object,how can I Know the type of the feature is a line ,lwpolyline or others. Don't use vlax-vla-object->ename.

Not quite sure what you're looking for.  This LSP (http://www.theswamp.org/index.php?topic=6491.msg80390#msg80390) wil display all of the features of a selected object.