Quantcast

running OpenSCAD from Windows 10 batch file

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

running OpenSCAD from Windows 10 batch file

jon_bondy
I am trying to create a series of STL files from one SCAD file under
Windows.  When I open the SCAD files and press F5, all is well.  If I
try the same thing using a batch file, I get "Parser error in line 197:
syntax error" (the last line in the file), which is not helpful.

Any thoughts about how to approach this?

Thanks!

Jon

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

Re: running OpenSCAD from Windows 10 batch file

nophead
Are you passing any -D parameters? They get added to the end of the main file and parsed, so if they are not in the right format you get a syntax error IIRC one line after the last line.

On 17 May 2017 at 15:56, jon <[hidden email]> wrote:
I am trying to create a series of STL files from one SCAD file under Windows.  When I open the SCAD files and press F5, all is well.  If I try the same thing using a batch file, I get "Parser error in line 197: syntax error" (the last line in the file), which is not helpful.

Any thoughts about how to approach this?

Thanks!

Jon

_______________________________________________
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
|  
Report Content as Inappropriate

Re: running OpenSCAD from Windows 10 batch file

Gadgetmind
In reply to this post by jon_bondy
On 2017-05-17 15:56, jon wrote:
> I am trying to create a series of STL files from one SCAD file under
> Windows.

As nop says, probably your -D syntax and most likely escaping of quotes.

BTW, I've installed gnu make for Windows and am using a makefile to
create about 20 stls from around 10 scad files and it works well. I'm
happy to share my makefile syntax but it's nothing complex.

BTW, I find builds are faster on Linux and don't bring the machine to
its knees in the same way. I have no idea why.


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