[OpenSCAD] BOM generation; SolidPython available

Andrew Plumb andrew at plumb.org
Wed Mar 9 14:33:33 CET 2011

On 2011-03-09, at 8:25 AM, nop head wrote:
> The only issue is the openscad echo function is odd in that it outputs the comma and quotes. E.g. echo("Hello", a,b); where a is 1 and b is 2 will produce ECHO: "Hello",1,2 whereas I would expect ECHO: Hello 1 2. It would be nice if it worked just like Python's print including redirection to a file.

Try using str() to merge echo() contents:

echo(str("Hello ",a," ",b));


ECHO: "Hello 1 2"

Then you only have one pair of '"' to parse.



"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rocklinux.net/pipermail/openscad/attachments/20110309/51db1944/attachment.html

More information about the OpenSCAD mailing list