Announcement: dxf2svg extension

Hi all,
I want to announce a dxf2svg extension as part of the Kabeja (http://sf.net/projects/kabeja) project. The project itself is target as standalone Java application/ library for parsing, processing and converting DXF. But it could be also used as dxf2svg tool. The Inkscape extension can be build as pure Java extension (needs a running Java runtime environment), native compiled extension (using gcj) or as .NET extension (needs .NET runtime environment on Windows or Mono on Linux/Unix and IKVM).
Kabeja supports most of the 2D part of DXF now, but ignores at the moment the 3D part.
The out-of-box running .NET extension is available as separate extension package (includes all necessary libraries):
http://downloads.sourceforge.net/kabeja/kabeja-inkscape-extension-0.4.zip
* copy all files from the zip archive into the extension folder
The Java extension is include in default binary distribution:
http://downloads.sourceforge.net/kabeja/kabeja-0.4.zip
* copy all files from the inkscape-extension folder into your extension folder
For building native extensions you will find some hints here:
http://kabeja.sourceforge.net/docs/projects/inkscape.html
The extensions works fine with Inkscape 0.45.1, but is broken on the Windows-Inkscape 0.46 builds: With the binary distribution you can convert DXF to SVG outside of Inkscape and just open the SVG then.
At least I want to say thanks for your fine application Inkscape.
Best Regards,
Simon

Very, very nice! Thank-you, Simon. I have been using Adobe Illustrator to convert dxf to svg so that I can bring it into Inkscape. Maybe now I won't have to do that anymore. I brought in a couple dxf's into Inkscape with your extension and it works great. :)
heathenx
Simon Mieth wrote the following on 3/13/2008 9:57 AM:
Hi all,
I want to announce a dxf2svg extension as part of the Kabeja (http://sf.net/projects/kabeja) project. The project itself is target as standalone Java application/ library for parsing, processing and converting DXF. But it could be also used as dxf2svg tool. The Inkscape extension can be build as pure Java extension (needs a running Java runtime environment), native compiled extension (using gcj) or as .NET extension (needs .NET runtime environment on Windows or Mono on Linux/Unix and IKVM).
Kabeja supports most of the 2D part of DXF now, but ignores at the moment the 3D part.
The out-of-box running .NET extension is available as separate extension package (includes all necessary libraries):
http://downloads.sourceforge.net/kabeja/kabeja-inkscape-extension-0.4.zip
- copy all files from the zip archive into the extension folder
The Java extension is include in default binary distribution:
http://downloads.sourceforge.net/kabeja/kabeja-0.4.zip
- copy all files from the inkscape-extension folder into your extension folder
For building native extensions you will find some hints here:
http://kabeja.sourceforge.net/docs/projects/inkscape.html
The extensions works fine with Inkscape 0.45.1, but is broken on the Windows-Inkscape 0.46 builds: With the binary distribution you can convert DXF to SVG outside of Inkscape and just open the SVG then.
At least I want to say thanks for your fine application Inkscape.
Best Regards,
Simon
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user

On Thu, 13 Mar 2008 09:43:27 -0500 Aaron Spike <aaron@...476...> wrote:
Simon Mieth wrote:
The extensions works fine with Inkscape 0.45.1, but is broken on the Windows-Inkscape 0.46 builds
How can we help you fix this? Can you describe the problems?
Aaron Spike
Hi Aaron,
I have created a bug report for this:
https://bugs.launchpad.net/bugs/197295
I'm not sure what happens, but I get the error with all types of my extension Java/.NET. So it should not be a path settings problem, all works fine from the Windows Shell. Maybe the calling of the external program/shell or pipes fails (Environment settings of the shell?). If I use Inkscape 0.46 I get an error without getting the parameter UI to show, but if I start inkscape in gdb, I get the the parameter UI showing up and then comes the error message and nothing happens.
Regards,
Simon

Hello Simon, Just tried out the kabeja dxf2svg extension, and it looks very interesting, I hope it can be incorporated into Inkscape. Currently, I am running it offline in Windows XP, from a DOS prompt, because of various Inkscape problems. However, apart from that, I have a question concerning format of the output. http://www.nabble.com/file/p16227108/testin.svg testin.svg I begin with a file testin.svg, which contains an svg path element called "curveto". Then I convert this to a dxf file http://www.nabble.com/file/p16227108/testin.dxf testin.dxf using the Inkscape export routine "Desktop Cutting Plotter" output, which contains a dxf entity called SPLINE, then I convert this back to the svg file http://www.nabble.com/file/p16227108/testout.svg testout.svg using the kabeja program. I anticipate getting back the original path element called "curveto", but instead I get back a multi-segmented line which uses many instances of the svg path element "lineto", not "curveto". Is it possible to modify the usage of kabeja so that the original "curveto" usage will be retained?

Alvin Penner schrieb:
Hello Simon, Just tried out the kabeja dxf2svg extension, and it looks very interesting, I hope it can be incorporated into Inkscape. Currently, I am running it offline in Windows XP, from a DOS prompt, because of various Inkscape problems. However, apart from that, I have a question concerning format of the output. http://www.nabble.com/file/p16227108/testin.svg testin.svg I begin with a file testin.svg, which contains an svg path element called "curveto". Then I convert this to a dxf file http://www.nabble.com/file/p16227108/testin.dxf testin.dxf using the Inkscape export routine "Desktop Cutting Plotter" output, which contains a dxf entity called SPLINE, then I convert this back to the svg file http://www.nabble.com/file/p16227108/testout.svg testout.svg using the kabeja program. I anticipate getting back the original path element called "curveto", but instead I get back a multi-segmented line which uses many instances of the svg path element "lineto", not "curveto". Is it possible to modify the usage of kabeja so that the original "curveto" usage will be retained?
Hi Alvin,
thanks for trying kabeja. For your testcase a converting back to curveto should be possible and will come with a later release. At the moment all spline and nurbs are converted to polylines. DXF supports 3D splines and NURBS for curves, where SVG supports 2D Bezier curves. So it is not the same and Bezier curves can be converted to Splines, but not all possible NURBS can be converted to Bezier curves. So the current implementation will output all to polylines and a later one splines which can be converted to Bezier curves will be genereated as SVG Bezier curves.
Regards,
Simon

That sounds good to me, I look forward to seeing it, am a big fan of Bezier curves. Thanks for all the work you have put into this!
Alvin Penner
participants (4)
-
Aaron Spike
-
Alvin Penner
-
heathenx
-
Simon Mieth