Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

  • 6 months later...
Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...