if you want to slice your stl and use openscad to export them to a dxf format
then try this workflow
projection(cut=true)
translate([0,0,-z)
import("yourstl.stl");
Your z will be dependent on your stl file. To the best of my knowledge,
there is no module that will give you the origin of the stl file or place it
at the origin. I just experimented with different values. I believe aligning
the stl in Meshmixer will place the bottom of your stl at [0,0,0]
The tricky part is that you can't iterate the process with a for loop.
Others have suggested running shell commands but my stl was small enough
where I could just do it manually.
There might be a better way to do this but this worked for me. Cheers
--
View this message in context: http://forum.openscad.org/Solved-kinda-using-openscad-to-export-dxf-files-tp11188.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
To the best of my knowledge, there is no module that will give you the
origin of the stl file or place it at the origin.
I'm not into dxf, but had you seen
https://en.wikibooks.org/w/index.php?title=OpenSCAD_User_Manual/General§ion=16#Getting_input
Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/Solved-kinda-using-openscad-to-export-dxf-files-tp11188p11190.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
oops... STL not dxf.. Slaps back of head...
Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/Solved-kinda-using-openscad-to-export-dxf-files-tp11188p11191.html
Sent from the OpenSCAD mailing list archive at Nabble.com.