[Drawkit] Drawkit DXF Import

Brad Larson larson at sonoplot.com
Thu Jan 15 11:49:15 PST 2009


A more up-to-date version of SonoDraw can be found at

http://www.sonoplot.com/sites/default/files/SonoDrawIntro.zip

This is an archive that contains the code for DrawKit Beta 5 and  
SonoDraw, the Sparkle framework, and some sample files in our pattern  
filetype.  They should all be in the right hierarchy where if you  
unzip the archive and compile the Release target for DrawKit, SonoDraw  
should compile without a hitch.

This version of SonoDraw includes some rudimentary DXF import support,  
but I think I'm going to rearchitect things.  Our robot only takes  
input that uses a limited set of drawing commands (draw a line here,  
draw a spot here, etc.), so we dumbed down DrawKit by limiting users  
to only drawing certain types of shapes and only taking input of our  
limited pattern files.  We started to extend that to other file  
formats like DXF, but realized that any work we did on support for  
these filetypes would be locked in to our specific program.   
Therefore, we're going to shift the simplification of operations from  
the input end to our file saving routines by converting complex paths  
to line segments, etc. on saving to our pattern files (while storing  
the original complex path as metadata in the XML so a save / load  
operation is lossless) and expose the full capabilities of DrawKit to  
our users.  Then we can do generic file import routines that will pull  
file formats into stock DrawKit objects, which everyone can use.

I guess what I'm saying is that this is something you can look at  
right now, but we'll be rewriting a bunch of SonoDraw's code soon,  
including the DXF import stuff.


On Jan 15, 2009, at 10:33 AM, Allan wrote:

> Hello,
>
> I'm posting to the Drawkit list for the first time. I contacted  
> Graham outside of the list and he suggested I use this route  
> instead ....
>
> I'm developing an application that uses architectural CAD drawings  
> as a "background" on top of which I draw my own custom Drawkit-based  
> objects . This is similar to what Brad Larson created with the  
> SonoPlot application. I've downloaded and compiled/played with the  
> SonoPlot files and they are very instructive as a model for what I'm  
> doing. Brad -- thank you for making those available and sharing your  
> work.
>
> My application also aims to use the DXF format as a basis for  
> importing AutoCAD drawings. Brad -- I'm wondering if you might share  
> what you're doing along these lines so I can assist and/or build on  
> the work you've already done. Would that be possible? I'm willing to  
> work in any arrangement that makes sense to you. Please let me know.
>
> Thanks to both Graham and Brad for making your code publicly  
> available.
>
> -Allan Daly
>
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net

______________________
Brad Larson, Ph.D.
SonoPlot, Inc.
3030 Laura Lane, Suite 120
Middleton, WI 53562






More information about the Drawkit mailing list