Maybe this isn't the right forum (I'm new here), but here goes....I'm trying to write a DXF file outside of AutoCAD that can be opened within AutoCad, but I'm having problems.

I've created a simple AutoCAD drawing (a 4-sided, 2D box), saved it as a DXF file, opened it in wordpad and studied it. I wrote a piece of code in visual basic to replicate the dxf file exactly, but it won't open as a dxf file in AutoCAD. Do you follow?

Here's the error AutoCAD gives me when I try to open my auto-generated dxf file...

Error in APPID Table
DXF read error on line 1418.
Invalid or incomplete DXF input -- drawing discarded.

I'm compared the files line-by-line and can't find a discrepency. Any tought, tips or tricks would be approciated.

PS: I'm brand new to writing any kind of code for AutoCAD