JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Having trouble with variables in the Block design option

    Scheduled Pinned Locked Moved Comments & Feedback
    3 Posts 2 Posters 2.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WillAdamsW Offline
      WillAdams
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • z3devZ Offline
        z3dev
        last edited by

        Unfortunately, the JSCAD organization doesn’t support the Azure application, as that was ported and enhanced by someone else. The JSCAD version is from 2015 as well, so there are probably lots of issues.

        1 Reply Last reply Reply Quote 0
        • z3devZ Offline
          z3dev
          last edited by

          It seems to me that the ‘Code’ tab in the upper right exposes the code in BlocksCAD. I was able to select and copy the code.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Powered by NodeBB | Contributors