Inventor General Discussion

Inventor General Discussion

Reply
New Member
1 Posts
0 Kudos
Registered: ‎09-07-2013
Post 1 of 1

minimal DXF

340 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!