mozman / dxfgrabber

Outdated DXF reader, please switch to ezdxf (UNMAINTAINED)
Other
67 stars 15 forks source link

Additional fields #16

Closed boukeas closed 6 years ago

boukeas commented 6 years ago

Thank you for making dxfgrabber! A question: does dxfgrabber support additional "inserted" fields? For example, a 3dpolyline can have fields like ObjectName and Material inserted in AutoCAD. These are not visible in the entity's __dict__.

mozman commented 6 years ago

Hi!

This are not properties of the DXF entity POLYLINE, this are additional DXF entities linked to the POLYLINE. But there is no Documentation in the DXF reference how AutoCAD or any other CAD application uses the DXF entities to implement such extended features.

boukeas commented 6 years ago

I was also unable to find relevant documentation.

In my working example, these additional fields do "come through" in the dxfgrabber output as MTEXT entities. I am wondering whether I can somehow establish how these MTEXT entities can be associated with the POLYLINE entities they are linked to.

mozman commented 6 years ago

I would also recommend to switch to ezdxf, because dxfgrabber will not get new features.

ezdxf supports more DXF entities and has also a pretty printer, which makes reverse engineering much easier: dxfpp -o opens a html file in your standard browser.

boukeas commented 6 years ago

OK, thanks. I will check ezdxf out.