discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Problem passing in strings to openscad from dos prompt

R
runsun
Tue, Mar 29, 2016 10:15 PM

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.

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.
M
mmaggio
Tue, Mar 29, 2016 10:29 PM

Just tried it

openscad -o Out.stl -D 'p="string";' test.scad

result =

ERROR: Parser error in line 10: syntax error

Can't parse file 'test.scad'!

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.

Just tried it >>openscad -o Out.stl -D 'p="string";' test.scad result = ERROR: Parser error in line 10: syntax error Can't parse file 'test.scad'! -- 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.
ST
Shaporev, Timur
Wed, Mar 30, 2016 7:09 AM

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

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