DarwinNE / FidoCadJ

FidoCadJ is a free user-friendly vector graphic editor for MacOSX, Linux, Windows and Android with a library of electronic symbols.
http://darwinne.github.io/FidoCadJ/
GNU General Public License v3.0
111 stars 40 forks source link

Export splitting layers on multiple files (useful for SVG and OpenSCAD) #154

Closed paserra closed 5 years ago

paserra commented 5 years ago

I propose to export selected layers as sequential SVGs (one SVG-per-Layer) and add to FidoCAD a dialog window for helping the user in the creation of an OpenSCAD script for 3D extrusion of vectors. In this manner you can use the power of FidoCADJ in the creation of stacked layers of 2D vectors and the powerful functions of OpenSCAD in the reconstructions of 3D objects. 3D objects can be obtained by importSVG-extrusion-offset of vector layers but also by using OpenSCAD boolean operators for subtracting extruded layers (at the same offset level). The obtained 3D objects can be exported as STL and eventually printed.

DarwinNE commented 5 years ago

This issue is related to a discussion (in italian) here:

https://sourceforge.net/p/fidocadj/discussion/997486/thread/a2c3e11ab5/?limit=25#3800

Exporting layers as sequential SVGs should be easy to do. I may allow to create a simple OpenSCAD script, too.

DarwinNE commented 5 years ago

I decided that it would be interesting to allow to separate layers into different files for all vector formats.

DarwinNE commented 5 years ago

I think I will implement an export option for that in the command line. For example:

-m       if a file export is done towards a vector graphic file format,
         split the layers and write one file for each layer. The file name
         will be obtained by appending _ followed by the layer number
         to the specified file name. For example, the following command
         will create files test_0.svg, test_1.svg ... from the drawing 
         contained in test.fcd:

         java -jar fidocadj.jar -n -m -c r2 svg test.svg test.fcd
paserra commented 5 years ago

Hi Davide, this is amazing! I wait for your next jar!

DarwinNE commented 5 years ago

Implementation of this feature request should now be complete. I close it, please reopen if problems are found in versions >= 0.24.8 beta