Ellipse in DXFExport

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
ANDREVANZYL
Posts: 2
Joined: 15 Nov 2007, 09:23
Location: South Africa

Ellipse in DXFExport

Post by ANDREVANZYL » 19 Dec 2007, 00:08

Whenever I use the Delphi Ellipse function to draw directly to a DXF canvas, I find that if the parameters are not simmetrical ie a perfect circle, the shape is not drawn. How do I draw an oval shape by using Delphi functions such as Ellipse?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 19 Dec 2007, 18:39

Hello!

We have added the following line:

Code: Select all

  Canvas.Ellipse(<font color="blue">400</font id="blue">,<font color="blue">300</font id="blue">,<font color="blue">500</font id="blue">,<font color="blue">320</font id="blue">);

to the:

Code: Select all

  <b>procedure</b> TfmDXFExporter.FormPaint(Sender: TObject); 

in the <b>DXF Exporter demo</b> from the <b>DXF Export VCL</b> package (available at: http://www.cadsofttools.com/download/dxfexportvcl.zip), compiled the demo and got usual ellipse when pressing <b>Form.paintto DXF...</b> button on the demo.
What code do you use to draw ellipse on canvas?
Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Post Reply