[OpenSCAD] is it possible to get JSCAD code out of BlocksCAD?

William Adams will.adams at frycomm.com
Wed Jul 3 10:15:37 EDT 2019


I've been trying to use the Blocks editor at:
http://openjscad.azurewebsites.net/ and it works fine until I instantiate a
variable then I get an error such as:

Error in line 13: Expected ')'

for the generated code:

// Model from Block Coding

var BoxDiameter;
var BoxHeight;


function main() {
    return union(  BoxDiameter = 50;
    BoxHeight = 10;
    cylinder({r:(BoxDiameter / 2), h:BoxHeight}));
}

which was made by:

[image: Capture.PNG]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190703/742c5c1f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 360249 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190703/742c5c1f/attachment.PNG>


More information about the Discuss mailing list