discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Has integrating a scripting language in OpenACAD ever been considered?

WA
William Adams
Mon, Jun 25, 2018 1:18 PM

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

http://community.carbide3d.com/t/cnc-finger-joint-box/8880

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

Currently I'm working up an interface for a 3D box design in OpenSCAD: http://community.carbide3d.com/t/cnc-finger-joint-box/8880 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
DM
doug moen
Mon, Jun 25, 2018 3:25 PM

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 will.adams@frycomm.com wrote:

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

http://community.carbide3d.com/t/cnc-finger-joint-box/8880

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <will.adams@frycomm.com> wrote: > Currently I'm working up an interface for a 3D box design in OpenSCAD: > > http://community.carbide3d.com/t/cnc-finger-joint-box/8880 > > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
WA
William Adams
Mon, Jun 25, 2018 4:21 PM

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 doug@moens.org 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 will.adams@frycomm.com wrote:

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

http://community.carbide3d.com/t/cnc-finger-joint-box/8880

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <doug@moens.org> 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 <will.adams@frycomm.com> wrote: > >> Currently I'm working up an interface for a 3D box design in OpenSCAD: >> >> http://community.carbide3d.com/t/cnc-finger-joint-box/8880 >> >> 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 >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
WA
William Adams
Mon, Jun 25, 2018 4:24 PM

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 will.adams@frycomm.com
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 doug@moens.org 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 will.adams@frycomm.com wrote:

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

http://community.carbide3d.com/t/cnc-finger-joint-box/8880

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <will.adams@frycomm.com> 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 <doug@moens.org> 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 <will.adams@frycomm.com> wrote: >> >>> Currently I'm working up an interface for a 3D box design in OpenSCAD: >>> >>> http://community.carbide3d.com/t/cnc-finger-joint-box/8880 >>> >>> 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 >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >
M
MichaelAtOz
Mon, Jun 25, 2018 10:28 PM

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/

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/