Curve misplaced in output DXF

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

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

Curve misplaced in output DXF

Post by jlavery » 05 Feb 2011, 20:27

Hi all,
My application produces patterns for sewing, and I now need to create a DXF file for the pattern.

I'm using DXFExport.NET to create a DXF file as follows:

Code: Select all

               // Create a form with which to associate the MetaForm
                frmDXF f = new frmDXF(this);
                f.Width = 5000;
                f.Height = 5000;
                f.Location = new System.Drawing.Point(0, 0);

                // Create the MetaForm
                MetaForm mf = new MetaForm(f, System.Drawing.Imaging.EmfType.EmfPlusDual, true);

                // Set up the DrawingSurface (this is a wrapper which controls the drawing)
                Ds.ControlSize = f.Size;
                Ds.Graphics = mf.mfGraph;

                // Draw the patten on the DrawingSurface
                Ds.Draw();
                mf.mfGraph.Dispose();

                f.Show();

                // Save  the pattern to a DXF file
                mf.Splitting(f.Handle, "Pattern.dxf", f.ClientRectangle);
This displays on the form OK as in the attached screenshot.

However, when I view the DXF file, the curve at the top-right of the pattern has moved, as in the attached pattern PNG.

Can anyone tell me why this might be happening - apart from this problem, I think my export is working really well!

Thanks,

James
Attachments
PNG of DXF - curve shifted.
PNG of DXF - curve shifted.
Pattern.png (25.37 KiB) Viewed 12894 times
Screenshot of form - curve OK.
Screenshot of form - curve OK.
Screenshot001.png (27.95 KiB) Viewed 12894 times

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

Re: Curve misplaced in output DXF

Post by support » 08 Feb 2011, 18:16

Hello James.
Could you please send the metafile that contains pattern or code that was used to create it with Graphics methods to support@cadsoftools.com for testing?

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

Post Reply