Has integrating a scripting language in OpenACAD ever been considered?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Has integrating a scripting language in OpenACAD ever been considered?

William Adams-2
Currently I'm working up an interface for a 3D box design in OpenSCAD:


and then accessing the JSON file to have lualatex/metapost generate a PDF (eventually I'll work out getting an SVG) --- having to install a TeX distribution is a big hurdle for folks to jump over --- it'd be great if I could just write out a file from OpenSCAD directly from OpenSCAD --- would adding Lua or something similar be an option?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Has integrating a scripting language in OpenACAD ever been considered?

doug.moen
Your actual requirement is to export your model in the form of an SVG file, using parameters specified using the customizer as input.

We already have SVG export. It seems like there should be a better way to do this from within OpenSCAD than by writing a Lua script that invokes external executables like latex and metapost.

On 25 June 2018 at 09:18, William Adams <[hidden email]> wrote:
Currently I'm working up an interface for a 3D box design in OpenSCAD:


and then accessing the JSON file to have lualatex/metapost generate a PDF (eventually I'll work out getting an SVG) --- having to install a TeX distribution is a big hurdle for folks to jump over --- it'd be great if I could just write out a file from OpenSCAD directly from OpenSCAD --- would adding Lua or something similar be an option?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Has integrating a scripting language in OpenACAD ever been considered?

William Adams-2
Yeah, the problem was I wasn't finding the control in OpenSCAD to get things arranged how I'd like --- are there any good example files for this sort of thing? I should definitely experiment with that further.

Thanks!

William


On Mon, Jun 25, 2018 at 11:25 AM, doug moen <[hidden email]> wrote:
Your actual requirement is to export your model in the form of an SVG file, using parameters specified using the customizer as input.

We already have SVG export. It seems like there should be a better way to do this from within OpenSCAD than by writing a Lua script that invokes external executables like latex and metapost.

On 25 June 2018 at 09:18, William Adams <[hidden email]> wrote:
Currently I'm working up an interface for a 3D box design in OpenSCAD:


and then accessing the JSON file to have lualatex/metapost generate a PDF (eventually I'll work out getting an SVG) --- having to install a TeX distribution is a big hurdle for folks to jump over --- it'd be great if I could just write out a file from OpenSCAD directly from OpenSCAD --- would adding Lua or something similar be an option?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Has integrating a scripting language in OpenACAD ever been considered?

William Adams-2
Another consideration is that I want to do a cut list and provide some notes / printable instructions --- I'd also like to look into outputting a proprietary format (.c2d --- a JSON representation specific to Carbide Create), or extend the SVG using the MakerCAM toolpath settings (LibreCAD supports them apparently).

On Mon, Jun 25, 2018 at 12:21 PM, William Adams <[hidden email]> wrote:
Yeah, the problem was I wasn't finding the control in OpenSCAD to get things arranged how I'd like --- are there any good example files for this sort of thing? I should definitely experiment with that further.

Thanks!

William


On Mon, Jun 25, 2018 at 11:25 AM, doug moen <[hidden email]> wrote:
Your actual requirement is to export your model in the form of an SVG file, using parameters specified using the customizer as input.

We already have SVG export. It seems like there should be a better way to do this from within OpenSCAD than by writing a Lua script that invokes external executables like latex and metapost.

On 25 June 2018 at 09:18, William Adams <[hidden email]> wrote:
Currently I'm working up an interface for a 3D box design in OpenSCAD:


and then accessing the JSON file to have lualatex/metapost generate a PDF (eventually I'll work out getting an SVG) --- having to install a TeX distribution is a big hurdle for folks to jump over --- it'd be great if I could just write out a file from OpenSCAD directly from OpenSCAD --- would adding Lua or something similar be an option?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Has integrating a scripting language in OpenACAD ever been considered?

MichaelAtOz
Administrator
William Adams-2 wrote
> Another consideration is that I want to do a cut list and provide some
> notes / printable instructions ---

Have you noticed in  command line options
<https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment#Export_options>
,
"For at least 2015.03-2+, specifying the extension .echo causes openscad to
produce a text file containing error messages and the output of all echo()
calls in filename as they would appear in the console window visible in the
GUI. Multiple output files are not supported, so using this option you
cannot also obtain the model that would have normally been generated."



-----
Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - PM me if you need anything,
or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!