Page 1 of 1
Order of Items..
Posted: 27 Oct 2006, 13:34
by Gibbo
Hi,
I've exported a filled rectangle and a string in that order..
But for some reason the string has appeared behind the rectangle. Is there a setting to change the order ?
Many thanks
-----
Gibbo
Posted: 30 Oct 2006, 12:47
by support
Hello Gibbo!
Please try the following code:
Code: Select all
DXFExport vDXF = new DXFExport();
DXFData Data = new DXFData();
Data.Clear();
Data.color = DXFExport.ColorToDXF(Color.Yellow);
Data.count = 1;
Data.points = <font color="blue">new</font id="blue"> ArrayList();
Data.points.Add(<font color="blue">new</font id="blue"> ArrayList()); // hatch can consist of more that one bound
DXFPoint Pt = <font color="blue">new</font id="blue"> DXFPoint();
Pt.X = 0;
Pt.Y = 0;
Pt.Z = 0;
((ArrayList)Data.points[0]).Add(Pt);
Pt = <font color="blue">new</font id="blue"> DXFPoint();
Pt.X = 10;
Pt.Y = 0;
Pt.Z = 0;
((ArrayList)Data.points[0]).Add(Pt);
Pt = <font color="blue">new</font id="blue"> DXFPoint();
Pt.X = 10;
Pt.Y = 5;
Pt.Z = 0;
((ArrayList)Data.points[0]).Add(Pt);
Pt = <font color="blue">new</font id="blue"> DXFPoint();
Pt.X = 0;
Pt.Y = 5;
Pt.Z = 0;
((ArrayList)Data.points[0]).Add(Pt);
Data.style = ((<font color="blue">byte</font id="blue">)DXF.HatchStyle.hsSolid);
vDXF.fOffset = 50;
vDXF.AddHatch(Data);
Data.Clear();
Data.height = 2;
Data.text = "Block";
Data.point.X = 0;
Data.point.Y = 0;
Data.color = ((int)DXFIntConst.DXF_RED);
vDXF.AddText(Data);
vDXF.Insert(Data);
vDXF.SaveToFile(dlgSaveDXF.FileName);
Sergey.
please post questions to the forum or write to
support@cadsofttools.com