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

    can not import c:/jscad/whatever.stl on windows

    Scheduled Pinned Locked Moved General Discussions
    7 Posts 3 Posters 2.3k Views 2 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.
    • DBJDBJD Offline
      DBJDBJ
      last edited by

      from the website I can not import the stl, I saved.

      I consistently get the message:

      Error: Cannot find relative path to module /jscad

      I am on WIN10

      z3devZ hrgdavorH 2 Replies Last reply Reply Quote 0
      • z3devZ Offline
        z3dev @DBJDBJ
        last edited by

        @DBJDBJ Welcome!

        From the message, it seems that you are using a 'project' which contains the STL file. Is that correct?

        DBJDBJD 1 Reply Last reply Reply Quote 0
        • DBJDBJD Offline
          DBJDBJ @z3dev
          last edited by

          @z3dev I just went to online, and struggled out some simple scene (after 3 decades of 3d pause) and dutifully saved _changes (N).stl, as I went along.

          This morning I got these errors after clicking on a "Load a JSCAD Project" and selecting the folder ...

          I have not seen JSCAD before until yesterday.

          Please advise

          DBJDBJD 1 Reply Last reply Reply Quote 0
          • DBJDBJD Offline
            DBJDBJ @DBJDBJ
            last edited by

            @z3dev just installed local (through git) (also there is no index.html but demo.html) but to no avail. Same issue.

            DBJDBJD 1 Reply Last reply Reply Quote 0
            • DBJDBJD Offline
              DBJDBJ @DBJDBJ
              last edited by DBJDBJ

              @z3dev then I used STLImport example and added my f_.stl.

              const frog = require('./frog.stl')
              const sculpture = require('./sculpture.stl')
              const f_ = require('./f_.stl')
              
              // 
              const main = () => [ frog ];
              
              module.exports = { main }
              

              And ... just f_.stl does not work. The message is either some syntax error or relative path or it says 'processing, please wait' and stays like that ...

              same f_.stl I can import it into Free CAD and see it over there.

              But, anyhow it seems I can not "just" upload stl and proceed on top of it, using JSCAD?

              1 Reply Last reply Reply Quote 0
              • hrgdavorH Offline
                hrgdavor @DBJDBJ
                last edited by

                @DBJDBJ did you try to drag and drop the folder onto the website instead ?

                I tried the example from jscad repo: packages\examples\import\STLImport
                https://github.com/jscad/OpenJSCAD.org/tree/master/packages/examples/import/STLImport

                I used the folder from the checked out code

                and it worked with the button and with drag and drop.

                Can you provide a link to zip file with the failing project?

                DBJDBJD 1 Reply Last reply Reply Quote 0
                • DBJDBJD Offline
                  DBJDBJ @hrgdavor
                  last edited by

                  @hrgdavor I have not tried project folder drag-and-drop into the web app. Will do.

                  Thanks

                  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