Read dxf code from VBA?
Read dxf code from VBA?
(OP)
I need to read dxf code value using VBA - but not using lisp.
Say (96. "somedata") is dxf pair for an entity. I want to know if VBA can directly return "somedata"-if I select an entity.
With lisp, it is as simple as:
(dxf 96 (entget (car (entsel))))
Say (96. "somedata") is dxf pair for an entity. I want to know if VBA can directly return "somedata"-if I select an entity.
With lisp, it is as simple as:
(dxf 96 (entget (car (entsel))))





RE: Read dxf code from VBA?
The difficult part is to understand the DXF file format so you can write the VBA code to parse the file and find the information you are looking for.
I always try to use R12 DXF's as the format is simpler than later versions.
RE: Read dxf code from VBA?
It doesn't look good, see http://www.theswamp.org/index.php?topic=6853.0 for more info.
RE: Read dxf code from VBA?
Best I can think of right now is to first use lisp to attach the dxf data (that I am after) to entity's Xdata. Then I can use VBA to read it.