JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. WillAdams
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by WillAdams

    • Having trouble with variables in the Block design option

      Trying to use the Blocks option in the Microsoft Store app OpenJSCAD --- it seems to be the same as: http://openjscad.azurewebsites.net/

      Unfortunately, it seems to not like/support variables --- one can't rename the basic "item" to anything else (in the app, it works fine on the web site), and setting up: model | union | set item to 50 | cylinder: radius item,height 10 results in the error: Error in line 12: Expected ')'

      The generated code is:

      // Model from Block Coding

      var item;

      function main() {
      return union( item = 50;
      cylinder({r:item, h:10}));
      }

      Any idea why this doesn't work?

      is there any way to get JSCAD code out of https://www.blockscad3d.com/editor/ instead?

      William

      posted in Comments & Feedback
      WillAdams
      WillAdams