[OpenSCAD] BOM generation; SolidPython available

nop head nop.head at gmail.com
Wed Mar 9 14:49:01 CET 2011


On 9 March 2011 13:33, Andrew Plumb <andrew at plumb.org> wrote:

> On 2011-03-09, at 8:25 AM, nop head wrote:
> [deletia]
>
> 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));
>
> ...returns:
>
> ECHO: "Hello 1 2"
>
> Then you only have one pair of '"' to parse.
>

Yes that is a lot cleaner, thanks.

>
>
> Andrew.
>
> --
>
> "The future is already here.  It's just not very evenly distributed" --
> William Gibson
>
> Me: http://clothbot.com/wiki/
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
> http://rocklinux.net/mailman/listinfo/openscad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rocklinux.net/pipermail/openscad/attachments/20110309/be7698f6/attachment.html


More information about the OpenSCAD mailing list