gdsestimating / dxf-parser

A javascript parser for DXF files. It reads DXF file strings into one large javascript object with more readable properties and a more logical structure.
MIT License
454 stars 140 forks source link

Question - Ability to read group of elements #88

Open aamendoza opened 2 years ago

aamendoza commented 2 years ago

I was just trying to figure out if I am reading a DXF file that has multiple elements grouped, how to read this group from when parsing the DXF file. Attached is a screen of what I am trying to read, I can read each element individually, but I need to read the group and parse all elements in the group.

Captura de Pantalla 2022-04-02 a la(s) 21 03 54
bzuillsmith commented 2 years ago

I'm not totally clear on what you are asking for. DXF files have "blocks" which are a form of grouping. They can be duplicated, each with different attribute values to change text in them. Try reading about DXF blocks and see if that is what you are referring to. Note that BLOCKs are the templates, and an INSERTs are instances of each template with a coordinate and specific attribute values.