mmaggio wrote
openscad -o Out.stl -D 'p="string"' test.scad
have u tried:
mmaggio wrote
openscad -o Out.stl -D 'p="string";' test.scad
$ Runsun Pan, PhD $ libs: doctest , faces ( git ), offline doc ( git ), runscad.py( 1 , 2 , git ), synwrite( 1 , 2 ); $ tips: hash( 1 , 2 ), matrix( 1 , 2 ),sweep( 1 , 2 ), var( 1 , 2 ), lerp , animation ( gif , prodVid ), precision( 1 , 2 ), xl-control , type , rounded polygon , chfont
--
View this message in context: http://forum.openscad.org/Problem-passing-in-strings-to-openscad-from-dos-prompt-tp16799p16800.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Just tried it
openscad -o Out.stl -D 'p="string";' test.scad
result =
ERROR: Parser error in line 10: syntax error
It parses fine without the -D command
--
View this message in context: http://forum.openscad.org/Problem-passing-in-strings-to-openscad-from-dos-prompt-tp16799p16802.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
DOS/Windows knows nothing about single quotes.
Try either "p=string" or "p=""string""" if you want to include quotes.
From: Discuss [discuss-bounces@lists.openscad.org] on behalf of runsun [runsun@gmail.com]
Sent: 30 March 2016 01:15
To: discuss@lists.openscad.org
Subject: Re: [OpenSCAD] Problem passing in strings to openscad from dos prompt
mmaggio wrote
openscad -o Out.stl -D 'p="string"' test.scad
have u tried:
mmaggio wrote
openscad -o Out.stl -D 'p="string";' test.scad
$ Runsun Pan, PhD $ libs: doctest , faces ( git ), offline doc ( git ), runscad.py( 1 , 2 , git ), synwrite( 1 , 2 ); $ tips: hash( 1 , 2 ), matrix( 1 , 2 ),sweep( 1 , 2 ), var( 1 , 2 ), lerp , animation ( gif , prodVid ), precision( 1 , 2 ), xl-control , type , rounded polygon , chfont
--
View this message in context: http://forum.openscad.org/Problem-passing-in-strings-to-openscad-from-dos-prompt-tp16799p16800.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org