How to get a tree structure of any supported drawing file?
To get a tree structure of any drawing file (IGES, DWG, DXF, etc.) for visualization with a tree component (for example, TTreeView), you need to iterate through entities in the given file and add each entity to the structure using the following recursive procedure.