Inventor General Discussion

Reply
New Member
PunchyShoe
Posts: 1
Registered: ‎09-07-2013
Message 1 of 1 (229 Views)

minimal DXF

229 Views, 0 Replies
09-07-2013 08:22 AM

I have written a little program that exports some data in a DXF file R12.

Works fine, but I now need to export splines. R12 does not support splines.

Higher versions of DXF support splines, but I have been having trouble creating a simple R14 file that works.

It apparently isn't enough to create an entity in an entities section, some other mysterious data is needed.

 

for example, this is a valid R12 dxf file:

0
SECTION
2
ENTITIES
0
POINT
8
POINTS
10
1129.37750048186
20
1151.48159030391
30
105.53332335643

0

EndSec

0

EOF

 

but good luck trying to get something like this working as a R14 format (or higher).

 

To find out what I was missing, I created a simple spline (4 control points) in autocad and saved it as a DXF..

The result is a file packed with data that (although no doubt usefull to the autocad application) is in fact worse than useless to me as it seriously inhibits my attempts at deciphering the format. So, if anyone would be so kind as to explain to me:

 

What do I need to include besides an entities section in order to constuct a valid DXF R14 file?

Does anyone have a bare-bones no-nonsense DXF R14 file they could post for me as an example?

 

(p.s. in fact, it doesn't have to be R14, could be higher for all I care. I just want to be able to create a DXF file that contains splines).

 

Thanks.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.