[OpenSCAD] Abbreviations

buttim maurizio.butti at gmail.com
Thu Jun 16 03:16:50 EDT 2016


That's ok form me. I did not include abbreviations for minkowski and hull
because they're used less often than say cube or translate.
But that's why the abbrevs are customizable!

May I suggest something more intuitive for scale like '+'? Indeed you're
not constrained to using alphabetic characters.
Whatever you use it's better to leave off the trailing ';' since you want
to scale something actually.

Revised version would go like this:

{
"c" : { "l": "cube([", "r":"]);"},
"d" : { "l": "difference() {\n\t", "r":"\n}"},
"f" : { "l": "for (i=[", "r":"]) {\n\t\n}"},
"i" : { "l": "intersection() {\n\t", "r":"\n}"},
"m" : { "l": "module ", "r":"() {\n\t\n}"},
"r" : { "l": "rotate([", "r":"]);"},
"s" : { "l": "sphere(r=", "r":");"},
"t" : { "l": "translate([", "r":"])"},
"u" : { "l": "union() {\n\t", "r":"\n}"},
"x" : { "l": ",center=true", "r":""},
"y" : { "l": "cylinder(r=", "r":",h=);"},
"+" : { "l": "scale([", "r":"])"},
        "k" : { "l": "minkowski() {\n\t", "r":"\n\t}"},
        "h" : { "l": "hull() {\n\t", "r":"\n\t}"}
}

On Thu, Jun 16, 2016 at 1:00 AM, jpmendes [via OpenSCAD] <
ml-node+s1091067n17700h75 at n5.nabble.com> wrote:

> Hi
>
> In addition I would suggest "k" for minkowski, "h" for hull, and "z" for
> scale.
> The abbrev.json file would be then:
> {
>         "c" : { "l": "cube([", "r":"]);"},
>         "d" : { "l": "difference() {\n\t", "r":"\n}"},
>         "f" : { "l": "for (i=[", "r":"]) {\n\t\n}"},
>         "i" : { "l": "intersection() {\n\t", "r":"\n}"},
>         "m" : { "l": "module ", "r":"() {\n\t\n}"},
>         "r" : { "l": "rotate([", "r":"]);"},
>         "s" : { "l": "sphere(r=", "r":");"},
>         "t" : { "l": "translate([", "r":"])"},
>         "u" : { "l": "union() {\n\t", "r":"\n}"},
>         "x" : { "l": ",center=true", "r":""},
>         "y" : { "l": "cylinder(r=", "r":",h=);"},
>         "z" : { "l": "scale([", "r":"]);"},
>         "k" : { "l": "minkowski() {\n\t", "r":"\n\t}"},
>         "h" : { "l": "hull() {\n\t", "r":"\n\t}"}
> }
>
> jpmendes
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.openscad.org/Abbreviations-tp17583p17700.html
> To unsubscribe from Abbreviations, click here
> <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=>
> .
> NAML
> <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17710.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20160616/69ea67d0/attachment-0002.html>


More information about the Discuss mailing list