DavidWilbourn Posted January 23, 2012 Posted January 23, 2012 I am trying to write a *simple* DXF export procedure in a Delphi program. I can generate PolyLines, Text and Circles OK but am having real problems with Ellipses. No matter what I put for the posn & axis, I just get a tiny circle drawn at 0,0. Oddly one DXF viewer (online) does show the ellipse correctly but 3 others do not. Because this is a very simple application, I have not bothered with a Header (or Block & Table) section but from what I have read that should not be a problem. I have attached the test DXF I have created. Any suggestions would be gratefully appreciated! ellipse2.dxf Quote
SLW210 Posted January 24, 2012 Posted January 24, 2012 I cannot open your drawing in AutoCAD. I get this message on the command line... POLYLINE requires a 66 group on line 22.Invalid or incomplete DXF input -- drawing discarded. Quote
DavidWilbourn Posted January 24, 2012 Author Posted January 24, 2012 Thanks for trying, As I mentioned, I have tried this file in 4 different DXF viewers / editors now and they all read the file but give very different results. I am sure I will not be the first to comment that DXF is about the most un-standard standard I have ever seen! Having tried out a range of programs, the consensus seems to be to export everything as POLYLINEs. I have done that for Bezier curves and rectangles and have just done a first version of an Ellipse to Polyline conversion. That seems to work OK for my needs. David. Quote
DamianHaynes Posted August 23, 2012 Posted August 23, 2012 Hi David, I am exporting to DXF from a GDI Canvas and I am having the exact same issue, the Ellipse just goes to the very bottom in a small circle. Would you be willing to share your conversion code? cheers, Damian. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.