discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

is it possible to get JSCAD code out of BlocksCAD?

WA
William Adams
Wed, Jul 3, 2019 2:15 PM

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]

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]