Export geometry in DXF format.
While we certainly do not want to promote proprietary software, some of our users occasionally needed to export some model in DXF format. This class provides a minimum of functionality.
Methods
Open a file for export in DXF format.
No check is done that the file has a ‘.dxf’ extension. The file will by default be written in UNIX line termination mode. An existing file will be overwritten without warning!
Methods
DxfExporter objects have the following methods:
Write a string to the dxf file.
The string does not include the line terminator.
Output a string data item to the dxf file.
code is the group code, data holds the data
Export a line.
x is a (2,3) shaped array
Functions defined in the module dxf
- dxf.exportDXF(filename, F)¶
Export a Formex to a DXF file
Currently, only plex-2 Formices can be exported to DXF.