#3400 says "open and write out text files".
That's very different from "give me better control over the output in
the echo stream".
You can already get the echo stream in a file with an arbitrary name
with a small amount of noise:
$ openscad -o echo.out --export-format echo echo.scad
$ cat echo.out
ECHO: "hello world"
or with a simpler command and a fixed extension:
$ openscad -o hello.echo echo.scad
$ cat hello.echo
ECHO: "hello world"
or on standard error, with more noise (but still clearly marked):
$ openscad -o junk.stl echo.scad
ECHO: "hello world"
Geometries in cache: 1
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0:00:00.000
Current top level object is empty.
Getting rid of the noise, so that there's a way to emit only the "hello
world", is very different from "let me write to a file that the program
specifies", which is what #3400 asks for.
Based on Jordon's post from a few days ago, and my not being too
interested in command line construction/entry, I've written a gui
interface for handling this
openscad -o echo.out --export-format echo echo.scad
If type 'echo' is selected, then an iterative select and replace
function is used, if needed. This can quickly, without much bother,
produce reasonably formatted text for documentation/other purposes,
without needing to use any other mark up/mark down characters within the
echo statements, unless verbose/more formatted echo's are wanted. Of
course, once the echo file has been obtained, then any basic text editor
can easily pretty it up, using search and replace, say. I could also
automatically include random 'and also', 'whereas', 'must be', etc. to
make it appear as more natural English 😁
On 22/09/2021 17:52, Jordan Brown wrote:
#3400 says "open and write out text files".
That's very different from "give me better control over the output in
the echo stream".
You can already get the echo stream in a file with an arbitrary name
with a small amount of noise:
$ openscad -o echo.out --export-format echo echo.scad
$ cat echo.out
ECHO: "hello world"
or with a simpler command and a fixed extension:
$ openscad -o hello.echo echo.scad
$ cat hello.echo
ECHO: "hello world"
or on standard error, with more noise (but still clearly marked):
$ openscad -o junk.stl echo.scad
ECHO: "hello world"
Geometries in cache: 1
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0:00:00.000
Current top level object is empty.
Getting rid of the noise, so that there's a way to emit only the
"hello world", is very different from "let me write to a file that the
program specifies", which is what #3400 asks for.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org