Create a DXF file using Graphics methods

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
jlavery
Posts: 3
Joined: 05 Feb 2011, 02:37

Create a DXF file using Graphics methods

Post by jlavery » 05 Feb 2011, 03:02

Hi,
I've got an existing application which draws an image preview to a PictureBox on a form, and then prints the image to the printer (scaled appropriately).

This uses the System.Drawing.Graphics methods to draw - using the Graphics objects supplied in the form's Paint event and the PrintDocument's PrintPage event.

I now need to produce a DXF of the image - and it seems that DXFExport.NET is my solution.

However, I'm struggling to see which DXFExport methods I should use. Could you give me some instructions on how I can do what I want?

Thanks a lot,

James

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

Re: Create a DXF file using Graphics methods

Post by support » 08 Feb 2011, 16:54

Hello.
DXF Export .NET software provides two methods: direct export and export from metafile. Direct export requires creation entities programmatically while export from metafile allows export GDI+ graphics. Demo project contains illustrations for both methods using. You can either transfer a part of your existed application source that responsible for drawing with System.Drawing.Graphics methods or import existed metafile to the new application.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply