This macro uses a tree view to display all the blocks and xrefs for all open
drawings. Each root of the tree is the file path for each open drawing. Then
next nodes break into groups of blocks and xrefs for each drawing. For the
blocks, the names of the blocks are simply listed. For the xrefs, the path to
each xrefs drawing file is listed. The macro checks to see if it can find the
file, and if so, a green check is placed in front of the file path; if not, a
red X. Also, double-clicking on the file path for a valid XREF will cause that
drawing to be opened. The tree view control used in this macro is not included
in the VBA that ships with TurboCAD. It is in the ActiveX library MScomctl.ocx.
This is a fairly commonly used VB runtime, and is probably on most PC's. If
not, you can find it for download from many sites (Here
is just one.)