Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

entity list from VBA?

Status
Not open for further replies.

treyball3

Programmer
Jun 20, 2001
74
US
with lisp, I can do (entget (car (entsel))) and select an entity
and get it's entity list - something like

((-1 . <Entity name: 400b0438>) (0 . &quot;LINE&quot;) (330 . <Entity name: 400afcd8>) (5 . &quot;18F&quot;) (100 . &quot;AcDbEntity&quot;) (67 . 1) (410 . &quot;Drawing&quot;) (8 . &quot;Object&quot;) (390 . <Entity name: 400afd40>) (100 . &quot;AcDbLine&quot;) (10 14.5978 3.27929 0.0) (11 16.5533 3.5552 0.0) (210 0.0 0.0 1.0))

Is there a way to get this info using VBA? Thanks Todd
 
Well ... Sort of.
Entities in VBA are objects. Once you &quot;get&quot; the object, you can query it for its propeties (the &quot;list&quot; from LISP). i.e LINE.color or LINE.layer I hope this is clear enough. If you are not familar with VBA, it may seem a little foreign to you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top