Export via command line

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Export via command line

blipp41
I am trying to write python code that will export a .scad file as a .stl file. What is the syntax for doing this through command line? Thank you.

Brenden Lipp

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Export via command line

nophead
openscad - o fred.stl fred.scad

On Mon, 1 Jul 2019 at 19:15, Brenden Lipp <[hidden email]> wrote:
I am trying to write python code that will export a .scad file as a .stl file. What is the syntax for doing this through command line? Thank you.

Brenden Lipp
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Export via command line

ROMIT KUMAR
In reply to this post by blipp41
Either of the following can be used:

1. openscad -o foo.stl bar.scad
This will export scad file(bar.scad) to stl file(foo.stl)

2. openscad --export-format stl bar.scad
This will export scad file(bar.scad) to stl file(bar.stl)

On Mon, Jul 1, 2019 at 11:45 PM Brenden Lipp <[hidden email]> wrote:
I am trying to write python code that will export a .scad file as a .stl file. What is the syntax for doing this through command line? Thank you.

Brenden Lipp
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org