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.

ACCESSING/CONTROLLING ONSHAPE FROM AN EXTERNAL PROGRAM (Python script for instance)

Hello,

Is it possible to access Onshape through an external program, perhaps something written in python?
I am working on a FeatureScript that generates a solid from a .csv file with vertex data.
My goal would be to automate the whole process by having a python script;
1 - generate/update the .csv file (independent from Onshape)
2 - access Onshape
3 - execute custom FeatureScript
4 - export solid model (in a given format, .STL or .STEP for instance)

Thank you!

Comments

  • awkawk Member, Onshape Employees, Developers Posts: 75
    Yes - this is possible using our REST APIs and an authentication mechanism known as an 'API Key'.

    Sign in to our Developer portal at https://dev-portal.onshape.com - you'll be asked to agree to our API usage terms & agreement the first time.

    In the Developer portal you'll find links to documentation on the API and API Keys, and links to sample code on github - https://github.com/onshape-public/apikey in particular has some python library code for making requests using an API Key.
    Director of API, Appstore, and App Partner Technical Support
  • fluvio_lobo_fenogliettofluvio_lobo_fenoglietto Member Posts: 28 EDU
    @andrew_kimpton

    Thank you!
Sign In or Register to comment.