Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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 I call the OnShape CAD engine from a web application?
nvstartrek
Member Posts: 1 ✭
Hello,
Does anyone know whether I can call OnShape from another web application to perform 3D transformations?
Thanks,
NV
Does anyone know whether I can call OnShape from another web application to perform 3D transformations?
Thanks,
NV
1
Answers
I don't have much experience with Onshapes API, and I've only seen the connection between a Windows Application and Onshape, but I'd recommend you have a look at the API documentation and sample applications in the Developer Portal.
https://dev-portal.onshape.com/
The API works using rest calls so its: a console, web site or other cloud curl call. To talk to OS servers, you'll have to use oauth2 and verify you're not evil.
The API can also fire off featurescripts, which in turn can perform your transformations.
After the transformation, then you can ask the API for something like give me some updated data.
So to answer your question, yes the API can perform transformations from a website.
It's a little bit of work to get a matrix transformation using OS, seems like there should be a javascript math library with some linear algebra extension that's not so round-about.
Not knowing what you're trying to do,