this is a very simple dxf reader for dxf(r) files. (in general: when you save a
file in autocad(r) as .dxf it will be ascii dxf automatically. in some other cad
platforms [like e.g. progecad] you have to choose ascii or binary dxf
explicit).
supported formats --> developed for 2004, should work for 2000 - 2010 (try out)
the script reads entities from an ascii dxf(r) file so they can be used as
scilab variables. A entity group (e.g. points) is saved as a list where one
entity within this list is a tlist. supported entities are currently: ARCS,
ELLIPSES, POINTS, LINES, LWPOLYLINES, POLYLINES, 3DFACES,CIRCLES, TEXTS, MTEXTS
and IMAGES. for closed lwpolylines or polylines (2d & 3d) the first coordinates
are equal to the last ones.
Scilab versions: 5.3 / 5.3.1 but should also work with versions <5.3... try out
For the future the following improvements are planned: import of blocks and
block definitions.
some words for processing speed: i admit this function is no rocket. when dxf
files are bigger than, i dont't know let's say 2-3 mb, it might get boring. i am
still not sure which one is the better approach: the one from my matlab versions
where dxf file lines are marked and finally "cut out" or this version which
works as a parser line by line. the thing with the latter is that memory is
increased line by line, does't that slow down extremely? any (good) ideas are
welcome!