Earlier , Nophead gave a link to git hub, where he shows a good example
of what and how he does things at the moment. Much of nicely formatted
text is better done in a word processor, as compared to editing in the
openscad, or any other, program editor, so whatever text you save from
openscad, it is probably best edited outside of openscad. It is probably
enough to send a dimension, say, and a reference, and tidy it up for
presentation somewhere else. An example of one of your openscad files,
with a method of your envisioned annotations to add in the text/values
that you want to save to a file, and the final way that the file would
be presented to the end user of the result could be useful. I posted
earlier a simple example based on 'echo("?', but even if it only saved
the final line, without the echo, etc., that would need more text
wrapped around it, so whatever openscad saves, it is most likely needing
editing, so may as well accept that, and save the echo's and edit those.
On 22/09/2021 14:56, William F. Adams via Discuss wrote:
Ray West wrote:
Earlier , Nophead gave a link to git hub, where he shows a good example
of what and how he does things at the moment. Much of nicely formatted
text is better done in a word processor, as compared to editing in the
openscad, or any other, program editor, so whatever text you save from
openscad, it is probably best edited outside of openscad.
I don't need formatting --- I just want a file which is directly useful and which doesn't require tedious post-processing/editing.
It is probably
enough to send a dimension, say, and a reference, and tidy it up for
presentation somewhere else. An example of one of your openscad files,
with a method of your envisioned annotations to add in the text/values
that you want to save to a file, and the final way that the file would
be presented to the end user of the result could be useful. I posted
earlier a simple example based on 'echo("?', but even if it only saved
the final line, without the echo, etc., that would need more text
wrapped around it, so whatever openscad saves, it is most likely needing
editing, so may as well accept that, and save the echo's and edit those.
I can do that --- I'm not interested in walking every person who ever downloads one of my files through how to do that.
All we need is:
- preference in OpenSCAD for automatically writing out only the output from echo to a file w/o preceding it w/ "ECHO: " using a file extension which can be chosen from a drop-down menu which lists approved/safe extensions
and the output from echo becomes far more usable, and in many cases, doesn't require any further post-processing, making this feature more accessible to naïve users.
William