My understanding is that Autocad has been using VBA for some time now. Maybe
that's a way to get the info you want.
Assuming you run autocad, try hitting Alt F11 or going throught the menus to
see if you can get to the VBE... And then use the help.
Unfortunately I don't use autocad any more so I can't really help. If
however it's possible to create a .DXF file and *if* that contains the
information you need then we can revisit because that's only a text file.