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.
Generate Featurescript from viewer
arpit_agarwal087 Member Posts: 9 ✭
Is it possible to generate feature script after creating model using onshape viewer?
Let me know this explanation is better.
You need to have an OS account, a server, and api keys. Then you make a call to OS (API) and extract the gltf data. Most people use three.js which now has a gtlf importer and you spin a OS model on your web-site.
At this point, you've never used featurescript.
Here's a really simple part studio with one sketch and one extrude.
Here's the code: