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.


Calling JS API's from a custom Feature using FeatureScript

KlinefeltersKlinefelters Member Posts: 2
Is it possible to call publicly available JS api's from inside of a feature using feature script. I saw a post about using OpenAI's API and OnShape's in python to make a chat-gpt that can generate parts. Since it was mostly api calls I think it can be rewritten to use the JS api's in which case I was thinking of making a chrome extension to do it. Overall it would be a lot easier if it could be incorporated as a feature using featurescript however, as it would be more recognizable to users. Any ideas?


  • Options
    NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,391
    FeatureScript cannot access your hard drive or the internet so that custom features can be used by everyone without fear of malware. However, you can use the Onshape API to post FeatureScript code to a Part Studio context, which is what you have read about.
    Senior Director, Technical Services, EMEAI
Sign In or Register to comment.