Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details
Login with GitLab

dxf2sci

loads dxf(r) entities to scilab
(4570 downloads for this version - 4570 downloads for all versions)
Details
Version
1.0
Author
lukas wischounig
Maintainer
lukas wischounig
License
Supported Scilab Version
5.3
Creation Date
March 4, 2011
Description
            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!             
Files (2)
[26.03 kB]
Miscellaneous file
function definition file
[1.53 kB]
Miscellaneous file
demo runner file
News (0)
Comments (0)
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.