Hi! Can you give one example of "minimum" dxf file? Just one rectangle saved from CorelDraw gives 4 kb of text. And I need only simple features: points, lines, polylines and polygons. Can you write here example of file containing one shape of each type? Thanks!
I am not certain, but I think it is more complex than this. A dxf file created in autocad would also have layer and linetype defaults, which would be saved in ( I'm going to call it ) a header of it's own.
Surely there would be other headers for other types of info.
I think a polygon would be a polyline, but not sure of that either.
Do you want to be able to write dxf to import to autocad? I am having trouble conceiving any reason to NOT use autocad to create the types of entities you mention in the first place.
Here is a simplest dxf file with point, line and polyline. It will work, but it's VERY plain drawing (without any layers, colors, linetype scales, etc.). It's writen in DXF 12 file format, which is much simpler then DXF 13 and later.
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.