Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

An easy way to display a 3d model (.STL) in (2021)

FdaFda Member Posts: 40 ✭✭
Hello everyone, I've been looking for a way to show 3d models created in "ONSHAPE" for a long time.

The furthest I get is thanks to the tutorial shared by the user @alan_baljeu
 

  • I made a few changes like:
              - That the .ENV file is on the project site.

              - server.js now takes variables from .ENV:
              ONSHAPE_DOCUMENT_ID
              ONSHAPE_WORKSPACE_W_ID
              ONSHAPE_WORKSPACE_E_1_ID

              - Gather in the root of the project the folder server and client.

             - Save the .stl file in the folder "storage-file-stl" in the root of the project.

             - I tried to mix code without success from the repositories of

              billschnoebelen/onshape_getting-started_client

              SirMoustache/react-three-viewer


  • All these changes will be gathered in:

              Feel free to make changes.





The question is to show the file that is in the path ./storage-file-stl in http: // localhost: 3000 /
Test Image 1



I think the solution has to be something very simple. If someone controls React library (Javascrip)

Sign In or Register to comment.