is it possible to get JSCAD code out of BlocksCAD?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

is it possible to get JSCAD code out of BlocksCAD?

William Adams-2
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:

Capture.PNG

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