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);
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