Would it be not too hard to add an export filter /
dxf2ascii progam to convert dxf files into something
that could easily be loaded into another program that
doesn't support DXF? (eg csv format)
I'm mainly thinking about getting DXF files into a
tab/comma separated text file which I could load into
Matlab/Octave, or a GIS package, or do awk magic with.
Lines/Areas need to be broken by blank lines, "NaN,
NaN", or something like that.
May need to break layers into seperate files.
For a good example of what a simple, human readable,
*parsable*, text format that retains some topology
might look like, see:
http://grass.ibiblio.org/gdp/html_grass5/html/v.in.ascii.html
(From the GPL'd GRASS GIS project ASCII-vector import fn.)
note: that page only shows areas. Use "A" for areas,
"L" for lines, and "P" for point data(?). Support files
need not be generated.
see http://grass.ibiblio.org/grass5/progmangrass50.pdf
.., section 6.2 for more details on that format.
note also: GRASS already does [older versions of] dxf
import/export, but it is a bit of a pain to load the
data into GIS when you just want to use it as a filter.
Going the other way (ascii2dxf) would be great too..
thanks a bunch.
Logged In: YES
user_id=585096
To parse these files it might be better to convet them to
one of the new markup based formats (e.g. SVG
DesignXML) and then apply scripts to these rather than
changing to our own ascii file format and doing it.
Lx-Viewer already outputs to the SVG v1.0 format.
>> Going the other way (ascii2dxf) would be great too..
argh! Although perhaps a nightmare to write? :-)
I'm going to mark this as low priority for now as
lx-viewer already exports to SVG which could be parsed
as text using scripts, which seems to be the basis for
the feature request.
Guy Edwards (Hairball)