Author Topic: [sos] Read the type of vla-object!  (Read 2165 times)

0 Members and 1 Guest are viewing this topic.

guohq

  • Newt
  • Posts: 84
[sos] Read the type of vla-object!
« 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.

mkweaver

  • Bull Frog
  • Posts: 352
Re: [sos] Read the type of vla-object!
« Reply #1 on: April 29, 2009, 06:35:08 AM »
Will vla-get-objectname do what you want?

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: [sos] Read the type of vla-object!
« Reply #2 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 wil display all of the features of a selected object.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io