How is the dxf Summer of Code developing? I haven't heard much about how this is progressing?
When is the summer of code up anyhow?
Jon
On Wed, Aug 24, 2005 at 02:50:35PM -0700, Jon Phillips wrote:
How is the dxf Summer of Code developing? I haven't heard much about how this is progressing?
When is the summer of code up anyhow?
All work is to be completed by September 1st IIRC. At that point I think the mentors will start making decisions about which projects were completed successfully.
Bryce
On Wed, 2005-08-24 at 14:51 -0700, Bryce Harrington wrote:
On Wed, Aug 24, 2005 at 02:50:35PM -0700, Jon Phillips wrote:
How is the dxf Summer of Code developing? I haven't heard much about how this is progressing?
When is the summer of code up anyhow?
All work is to be completed by September 1st IIRC. At that point I think the mentors will start making decisions about which projects were completed successfully.
Did you hear that??? You guys better get hacking and posting and talking more so that you can get paid by Google!!! That is under 7 days to get everything in or no enchilada!!!
Jon
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions. Can I get CVS access and some guidence where to put code that is not directly part of the Inkscape code base but an extension?
I think there is a simple way to add dxf export using pstoedit. I don't know if anyone has tried it before, but I was able to do some simple conversions. Again the only change would be .inx files.
My SF id is squires
Thanks, Matt Squires
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions.
My fault for not looking two minutes soone the .inx goes under share\extensions and the source code goes under \src\extensions.
Matt
On Tue, 2005-08-30 at 10:13 -0600, Matt Squires wrote:
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions.
My fault for not looking two minutes soone the .inx goes under share\extensions and the source code goes under \src\extensions.
Generally, our policy is to provide at least one patch, and if good, then we give you cvs...it is our primary policy.
Maybe you should provide a patch so that we can test it, work with you on any changes, and then, once that is sorted and things look good, then give you cvs access.
I don't think you have submitted the patch yet to the list or through the patch tracker, but do that, we'll check out, then move forward, cool?
Jon
On Tue, Aug 30, 2005 at 10:08:51AM -0600, Matt Squires wrote:
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions. Can I get CVS access and some guidence where to put code that is not directly part of the Inkscape code base but an extension?
I think there is a simple way to add dxf export using pstoedit. I don't know if anyone has tried it before, but I was able to do some simple conversions. Again the only change would be .inx files.
My SF id is squires
Hi Matt,
Thanks for posting the request; I've enabled your SF CVS access.
Bryce
The dxf2svg code still does not work for simple R12 dxf drawings (it goes into an indeterminate loop and every 3 minutes outputs the same "translate..." line) - OpenOffice Draw code handles the same translation perfectly in a microsecond. The first code submission (just last Saturday), completely segfaulted. I don't think we should be the ones having to test for such basic operation. Personally I think this project still needs a lot of work to be finished and useful.
Bryce Harrington wrote:
On Tue, Aug 30, 2005 at 10:08:51AM -0600, Matt Squires wrote:
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions. Can I get CVS access and some guidence where to put code that is not directly part of the Inkscape code base but an extension?
I think there is a simple way to add dxf export using pstoedit. I don't know if anyone has tried it before, but I was able to do some simple conversions. Again the only change would be .inx files.
My SF id is squires
Hi Matt,
Thanks for posting the request; I've enabled your SF CVS access.
Bryce
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
could you send me the file.
thanks, Matt
The dxf2svg code still does not work for simple R12 dxf drawings (it goes into an indeterminate loop and every 3 minutes outputs the same "translate..." line) - OpenOffice Draw code handles the same translation perfectly in a microsecond. The first code submission (just last Saturday), completely segfaulted. I don't think we should be the ones having to test for such basic operation. Personally I think this project still needs a lot of work to be finished and useful.
Bryce Harrington wrote:
On Tue, Aug 30, 2005 at 10:08:51AM -0600, Matt Squires wrote:
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions. Can I get CVS access and some guidence where to put code that is not directly part of the Inkscape code base but an extension?
I think there is a simple way to add dxf export using pstoedit. I don't know if anyone has tried it before, but I was able to do some simple conversions. Again the only change would be .inx files.
My SF id is squires
Hi Matt,
Thanks for posting the request; I've enabled your SF CVS access.
Bryce
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
I just did a test using dxf versions R12, 2000, and 2004 and it loaded with out hanging. It used circles, plines with arcs, arcs, lines, and text. It was created using AutoCAD 2004.
If you can be more specific as to what was in the file I will try to fix the problem. Most of the segfaults in the code from last Saturday came from blank lines in the dxf files, that has been completely fixed. I assume you are refering to the file Eric tested. Did you also have a file that segfaulted? If so, please send it to me. I can handle large attachments.
Matt
The dxf2svg code still does not work for simple R12 dxf drawings (it goes into an indeterminate loop and every 3 minutes outputs the same "translate..." line) - OpenOffice Draw code handles the same translation perfectly in a microsecond. The first code submission (just last Saturday), completely segfaulted. I don't think we should be the ones having to test for such basic operation. Personally I think this project still needs a lot of work to be finished and useful.
Bryce Harrington wrote:
On Tue, Aug 30, 2005 at 10:08:51AM -0600, Matt Squires wrote:
Bryce,
The dxf2svg part is coming along. I have gotten it to work in Inkscape with an .inx file. I would like to add it to the Inkscape CVS tree under share or extensions. Can I get CVS access and some guidence where to put code that is not directly part of the Inkscape code base but an extension?
I think there is a simple way to add dxf export using pstoedit. I don't know if anyone has tried it before, but I was able to do some simple conversions. Again the only change would be .inx files.
My SF id is squires
Hi Matt,
Thanks for posting the request; I've enabled your SF CVS access.
Bryce
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Sorry for not many updates, I know it is not OSS of me. It is taking me longer to get back to speed on the dxf SOC than I expected after working to save funding for my actual research. I am trying to get an import .inx file working. The code now is only for import and is in the form of a dxf2svg file. A little help would be nice on the inx files. I have both window and linux boxes and right now it seems that I am having better luck with linux when I am playing with .inx files. Is windows more touchy when it comes to the inx files?
In the spirit of being a student I have focused on the class that is most important and that is physics. My CS class has taken a back seat to classes in my major. I will turn in the import part and will completly ignore the export part for the Sept 1 deadline. I think it would be nice to try to get dxf export working on a longer timeframe.
Matt
How is the dxf Summer of Code developing? I haven't heard much about how this is progressing?
When is the summer of code up anyhow?
Jon
-- Jon Phillips
San Francisco, CA USA PH 510.499.0894 jon@...235... http://www.rejon.org
MSN, AIM, Yahoo Chat: kidproto Jabber Chat: rejon@...896... IRC: rejon@...897...
Inkscape (http://inkscape.org) Open Clip Art Library (www.openclipart.org)
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Matt Squires wrote:
Sorry for not many updates, I know it is not OSS of me. It is taking me longer to get back to speed on the dxf SOC than I expected after working to save funding for my actual research. I am trying to get an import .inx file working. The code now is only for import and is in the form of a dxf2svg file. A little help would be nice on the inx files. I have both window and linux boxes and right now it seems that I am having better luck with linux when I am playing with .inx files. Is windows more touchy when it comes to the inx files?
Please post your inx file and dxf2svg, or get them into CVS. I'll try to help in any way I am able. But I think I need a little more information. ;)
In the spirit of being a student I have focused on the class that is most important and that is physics. My CS class has taken a back seat to classes in my major. I will turn in the import part and will completly ignore the export part for the Sept 1 deadline. I think it would be nice to try to get dxf export working on a longer timeframe.
Do you have anything to show for export? I would think bad code is better than no code. And incomplete code is much more valueable to the project than no code at all. And will completing import be sufficient for your SoC goals?
Aaron Spike
On Thu, 2005-08-25 at 06:27 -0500, aaron@...749... wrote:
Matt Squires wrote:
Sorry for not many updates, I know it is not OSS of me. It is taking me longer to get back to speed on the dxf SOC than I expected after working to save funding for my actual research. I am trying to get an import .inx file working. The code now is only for import and is in the form of a dxf2svg file. A little help would be nice on the inx files. I have both window and linux boxes and right now it seems that I am having better luck with linux when I am playing with .inx files. Is windows more touchy when it comes to the inx files?
Please post your inx file and dxf2svg, or get them into CVS. I'll try to help in any way I am able. But I think I need a little more information. ;)
Yeah, post what you have first...then ppl. will remix it.
In the spirit of being a student I have focused on the class that is most important and that is physics. My CS class has taken a back seat to classes in my major. I will turn in the import part and will completly ignore the export part for the Sept 1 deadline. I think it would be nice to try to get dxf export working on a longer timeframe.
Do you have anything to show for export? I would think bad code is better than no code. And incomplete code is much more valueable to the project than no code at all. And will completing import be sufficient for your SoC goals?
Yeah, we do evaluations on SEPT 1 to see how you met your goals. From our report Google will decide if you should get paid.
So, that leaves few days for you to crank this out if you intend to.
I would recommend prioritizing this if you want to get paid!
I think it is most important for you to get code up ASAP! Usually we require ppl. to post a patch or some initial contribution b4 we give free reign on CVS. Please do this first and quickly!
My recommendation is to do this:
1.) provide an INX file 2.) provide your dxf2svg file
2nd thing is to provide a svg2dxf file to convert to dxf.
Then you'll be done...I think you can do this if you just focus, use the community for advice and feedback...etc...
Jon
I have posted the import files for dxf2svg conversion. I have tested on a variety of processors, OS's, and versions of g++. Not everything is imported from dxf, but it is a start.
I got the .inx working under Debian, but I haven't had much luck under windows.
for now the files are at:
http://ucsu.colorado.edu/~squiresm/
I am assuming they should go under extensions somewhere, but I am not absolutely sure of that.
Anyway for the Google SOC, these file will need to be posted on some site like sourceforge, but not this morning...
Matt
# from Matt Squires # on Saturday 27 August 2005 03:15 am:
I have posted the import files for dxf2svg conversion. I have tested on a variety of processors, OS's, and versions of g++. Not everything is imported from dxf, but it is a start.
Please package all of your files under one directory (the ./README in your zip unpacks above the rest of your tree.)
What files are you using for testing? Could you please post them? I get segfaults and hangs with several of mine. Seems lwpolylines in particular are a problem. If you're using qcad dxf's they don't (last I checked) have "closed" polylines -- instead of setting the "closed" flag, they just meet at a point (or was it that they do both?...)
Bulged polylines (lwpolyline entities with rounded corners) in particular seem to be a problem (probably because bulges are inlined to the point array.)
You also have a memory-limit issue. It looks like you're slurping the entire dxf into memory and building all of your data-structures before starting to work, which causes it to run up to 1.2GB and abort on some of my larger files. To get around this, you have to use a smaller-footprint strategy such as the one (involving seek()) in my CAD::DXF module.
There are also some issues with 3D entities. I haven't found any references to "normal" or codes 210,220,230 in your code. You should probably ignore entities with non-Z normal vectors (the spec calls them "extrusion direction") in converting to 2D.
Here's a summary of some of the files that I've tested. I'll put these in the uber-converter[1] repository[2] if you want to test them. The last one is 8+MB compressed, so I won't put that in the repo. Ping me off-list if you feel up to attacking the memory-limit issue.
3d_circs.dxf incorrect arc.dxf segfault bulged_lwpoly.dxf hang chckmir.dxf segfault chckcpy.dxf segfault example.dxf segfault polylines.dxf hang segs.dxf segfault viewtext.dxf segfault
circles2k2.dxf Abort
It looks like you have a lot to do to get done in time for SOC. I don't know if the inx format supports pipes, but even if it doesn't a simple wrapper would make the following uber-converter chain into what looks like one command.
cat file.dxf | dxf2rzp | rzp2svg > file.svg
A bit of hacking on the python rzp2svg would get you just as far *very quickly* without any of the aforementioned issues and would likely yield more long-term growth if inkscape doesn't mind the dependency.
--Eric
[1] http://scratchcomputing.com/projects/uber-converter/ [2] http://scratchcomputing.com/uc/trunk/
Eric, Thanks for the help.
Jon, When could this be put in the CVS tree? After some more testing sure, but how would it best fit it? It should go under extensions, but should it be compiled with all the rest of Inkscape or only if someone wants the functionality?
Please package all of your files under one directory (the ./README in your zip unpacks above the rest of your tree.)
Done
What files are you using for testing? Could you please post them?
They are commercial but here some URL's that I have tested. Screen shots are on my webpage. http://ucsu.colorado.edu/~squiresm/
http://newfocus.com/product/techinfo_mod.cfm?productlineid=4&modelgroupi... http://newfocus.com/product/techinfo_mod.cfm?productlineid=4&modelgroupi...
get segfaults and hangs with several of mine.
I reproduced that and I think fixed it.
Seems lwpolylines in particular are a problem.
Yes they were badly broken, but I think they are better now.
You also have a memory-limit issue. It looks like you're slurping the entire dxf into memory and building all of your data-structures before starting to work, which causes it to run up to 1.2GB and abort on some of my larger files. To get around this, you have to use a smaller-footprint strategy such as the one (involving seek()) in my CAD::DXF module.
The huge file still kills my program, but it also kills Crimson Editor and CadStd Lite when I tried loading it. Not that they are garanteed software, but a little more used than dxf2svg. Do you have a big, but not huge (maybe < 30 MB) file?
There are also some issues with 3D entities. I haven't found any references to "normal" or codes 210,220,230 in your code. You should probably ignore entities with non-Z normal vectors (the spec calls them "extrusion direction") in converting to 2D.
Correct, I have completely ignored the z dimension, extrusions, and all the like because Inkscape is very 2D. I have thought that at a later date it would be cool to extract the third dimention somehow into the layers. Not this week!
Matt
Hi Matt, Good to see what you've working on this summer, sorry to hear about the issues you've had wrt funding. Have got it compiling ok on win under mingw, and have fixed the inx so it works for win32. compile with mingw just required the mingwenv.bat being put in the dir with the code, run that then do make -f makefile and it compiles no probs. The inx required a couple of tweaks, I've attached what I have working, I've currently put the dxf2svg.exe directly in the extensions dir. only tested it with one of the optical mount files you pointed to, will see if I can find some other testcases.
Cheers
Sim
btw, some documentation in the readme would be good, even if its only run with dxf2svg test.dxf > test.svg
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Aug 27, 2005, at 11:39 PM, Matt Squires wrote:
Eric, Thanks for the help.
Jon, When could this be put in the CVS tree? After some more testing sure, but how would it best fit it? It should go under extensions, but should it be compiled with all the rest of Inkscape or only if someone wants the functionality?
It should probably be conditional and opt-in, much like inkboard is hooked in now.
How is that done and where is it put?
Matt
On Aug 27, 2005, at 11:39 PM, Matt Squires wrote:
Eric, Thanks for the help.
Jon, When could this be put in the CVS tree? After some more testing sure, but how would it best fit it? It should go under extensions, but should it be compiled with all the rest of Inkscape or only if someone wants the functionality?
It should probably be conditional and opt-in, much like inkboard is hooked in now.
There seems to be a problem with compiling CVS. ps2dxf.py was added to the Makefile but never added to CVS using `cvs add`.
Aaron Spike
participants (8)
-
unknown@example.com
-
Bryce Harrington
-
Eric Wilhelm
-
John Cliff
-
John Taber
-
Jon A. Cruz
-
Jon Phillips
-
Matt Squires