Write a Drawing using C# in dxf
posted by adme @ 10:58pm, Tuesday 27 March 2012.
Cara menulis sebuah lukisan menggunakan C# untuk hasilkan bentuk lengkong boomeran dari titik kordinat X dan Y, semuanya boleh disimpan dalam fail dxf atau dwg. Bagaimana ia boleh dilakukan ?
Possible solution ( by David S. Tufts ):
DxfMaker dxf = new DxfMaker();
float[,] points = new float[,]
{
{ 0, 10 }, { 1, 12 }, { 2, 17 }, { 3, 14 }, { 4, 9 }
};
int N = points.GetLength(0);
for (int i = 1; i < N; i++)
{
dxf.DXF_Line(
points[i - 1, 0], points[i - 1, 1], 0,
points[i, 0], points[i, 1], 0);
}
dxf.DXF_Save("curve.dxf");

Ref code dari page ini:
http: // dl.dropbox.com / u / 11487099 / DxfMaker.zip
















Comments
this could be a related link of your interest :
http://www.codeproject.com/Articles/3398/CadLib-for-creating-DXF-Drawing-Interchange-Format
ummi - 1:10am , Wednesday 28 March 2012
Submit Your Comment
Show/Hide CommentBox