Closed ChristopherVR closed 1 year ago
The DXF spec is really pretty simple and only allows for entities without any real kind of connection between them. Different CAD applications are free to use the entity attributes (or XDATA
) to put additional metadata that can be used to link the entities, but there's no official way to specify something like that in a plain DXF file; the association you're finding appears to be purely a byproduct of the SysCAD software you're using, so the solution to your problem will be to try and divine exactly how they're encoding these relationships in the DXF and pulling that information out yourself.
There's not a lot of documentation available for this library so I figured I'd ask here.
Say you have an DXF file like this (I'm using SysCAD to create DXF files):
How can I determine the relationship between CONC_ACID -> TNK_002
Similar to all the other ex. TINK_001 -> TNK__02 -> XPG_005
So far I've got this:
I do see an issue with this approach and that the Entities properties also contain all the Links/Lines between the nodes.
Any help would be appreciated.