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.

Can we create Onshape 3D model using Javascript file

akhil_akkapelli463akhil_akkapelli463 Member Posts: 4
Hii, I want to create Onshape models only using program and not with interactive browser. Is it possible?

Answers

  • S1monS1mon Member Posts: 2,986 PRO
    You want FeatureScript:

    https://cad.onshape.com/FsDoc/
  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    … create Onshape models only using program
    If you have an iPad or if you have an iPhone or an android phone, well there are apps (programs) for these devices, that allow you to use Onshape online.

    and one of the key words is ONLINE.

    these apps are not browsers for surfing the Internet. These Onshape apps or programs are made specifically to tie into Onshape’s servers

    so in the case of the iPad and the iPhone and android, instead of using a browser, you use an app or a program to go online and tie into Onshape’s servers


  • chadstoltzfuschadstoltzfus Member, Developers, csevp Posts: 142 PRO
    It you're talking about something like a command line/Windows Powershell, there isn't a native way of doing that. However, you could probably create something with Onshape's API to do something like this. What exactly are you trying to accomplish? If it's automation, FeatureScript and/or Onshape's API are going to be the avenues you'll want to explore.
    Applications Developer at Premier Custom Built
    chadstoltzfus@premiercb.com
  • akhil_akkapelli463akhil_akkapelli463 Member Posts: 4
    Are there any limitations on CAD models by using featurescript? Also, can we make 3d models offline without connecting to Onshape's server? 
  • S1monS1mon Member Posts: 2,986 PRO
    Are there any limitations on CAD models by using featurescript? Also, can we make 3d models offline without connecting to Onshape's server? 
    No. No.

    Everything is modeled "under the hood" using FeatureScript. Onshape is exclusively online. 
  • GregBrownGregBrown Member, Onshape Employees, csevp Posts: 197
    If you want to programmatically interact with Onshape, then the APIs are designed for this purpose. There are many clients you can choose, but Python is a pretty good place to start. Check out the onshape-clients/python at master · onshape-public/onshape-clients (github.com) repository for some pointers. Also, the PTC Education team have put together some great info here PTC-Education/PTC-API-Playground (github.com) which shows you how to use Google Colab (python notebooks) to connect to Onshape, amongst many other cool things in their repo.   
Sign In or Register to comment.