Broken links? Email us! |
14 users have rated this article. result: |
|
3.07 out of 5. |
|
Download source files - 16 Kb
This article demonstrate how to write an ASCII DXF files. A DXF file
is a file composed of sections and associated values. They are read by
AutoCad and then converted to a drawing.
I have developped a class CDxf to write a DXF file from an application.
Then the user must use AutoCad to interpret the DXF file.
I have included only a small portion of what can be do with DXF files.
All the details are contained in the following document from the AutoDesk
web site : http://www.autodesk.com/techpubs/autocad/dxf/.
void CDxf::Circle ()
{
ofstream FichierDxf ("TestDxf.dxf", ios::app);
FichierDxf << 0 << endl;
FichierDxf << "CIRCLE" << endl;
FichierDxf << 8 << endl;
FichierDxf << 0 << endl;
FichierDxf << 10 << endl;
FichierDxf << 0.0 << endl;
FichierDxf << 20 << endl;
FichierDxf << 0.0 << endl;
FichierDxf << 30 << endl;
FichierDxf << 0.0 << endl;
FichierDxf << 40 << endl;
FichierDxf << 500.0 << endl;
FichierDxf.close();
}
By being able to write a DXF file, I can integrate into my applications a
way to share information with AutoCad. Obviously there is a lot more that can
be added to this class.
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Use DHTML' from the View dropdown and hit 'Set Options'. | New thread | Messages 1 to 4 of 4 (Total: 4) | First Prev Next Last |
| | | Author | |
| | Date | |
|
| | | Lev | 6:08 8 Feb 00 |
| | Claude Gagnon | 16:40 11 Feb 00 |
| | | Zuccaro Gianfranco | 3:11 26 Jan 00 |
| | Chris Maunder | 16:28 26 Jan 00 |
|
| Last Visit: 12:00 Friday 1st January, 1999 | First Prev Next Last |
|
|