Message 1 of 7
get and use extended ent data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've done lisp for a long time ... and am trying to learn VBA - but am finding it difficult ...
The extended data in lisp looks like the following...
(-3 ("MyApplication" (1002 . "{")
(1011 522.909 -15481.2 0.0) (1011 17682.1 -15450.2 0.0) (1011 17679.0 -13712.5
0.0) (1011 519.768 -13743.5 0.0) (1002 . "}"))))
In VBA I am having a difficult time getting the data ... the GetXData call runs without error ...
but I can't seem to get a look at the extended ent data when I toggle a breakpoint there ...
What I trying to do is to extract this ext data, pull out a window defined by the four 1011 coordinates and use them in
a selection to grab other entities that lay within the window.
I can do this in lisp very easy ... but in VBA I find it a struggle.
Can someone give me a leg up?
*******************
Dim xdata As Variant
Dim xtype As Variant
Dim blkObj As AcadBlockReference
blkObj.GetXData "MyApplication", xtype, xdata
The extended data in lisp looks like the following...
(-3 ("MyApplication" (1002 . "{")
(1011 522.909 -15481.2 0.0) (1011 17682.1 -15450.2 0.0) (1011 17679.0 -13712.5
0.0) (1011 519.768 -13743.5 0.0) (1002 . "}"))))
In VBA I am having a difficult time getting the data ... the GetXData call runs without error ...
but I can't seem to get a look at the extended ent data when I toggle a breakpoint there ...
What I trying to do is to extract this ext data, pull out a window defined by the four 1011 coordinates and use them in
a selection to grab other entities that lay within the window.
I can do this in lisp very easy ... but in VBA I find it a struggle.
Can someone give me a leg up?
*******************
Dim xdata As Variant
Dim xtype As Variant
Dim blkObj As AcadBlockReference
blkObj.GetXData "MyApplication", xtype, xdata