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.
Feature Script to extract information from Onshape document
I
was checking to see if anyone has created a feature script to extract
information from and Onshape document and place it into a
manufacturing software such as E2?
It
would be nice to have the ability to extract information such as part
size,material type, material thickness and load into E2 automatically
instead of having to type in this data twice and that data be able to
be dynamically updated as changes are made to the document in
Onshape.
It
would also be great to be able to extract information like this along
with geometry to a CAM software for lasers, waterjets, plasmas,
punches, etc. and have it dynamically linked to the Onshape document
so as changes are made in Onshape it is updated in the CAM
software.
One
more idea, how about a cost feature script so as you create the part
you can get information on what the cost would be to produce this
part.
Thank
you for your time.
Comments
I suppose this is more API than FS..
You can sign in to the Developer Portal at https://dev-portal.onshape.com, agree to our developer agreement and then use the App Store to add the API explorer to any document and begin experimenting with the Part APIs.
If you're looking to bridge between your documents and external systems then using the API Key authentication mechanism (there are libraries to assist in this at https://github.com/onshape-public/apikey) is probably the most effective approach (OAuth is the approach to use for apps that will be listed in the app store)
There may be some situations where you're looking for more specific geometric details in which case using FeatureScript to obtain/generate the details and then sharing them with an external application via the FeatureList API may be useful too.
If you're looking to share the document with manufacturing processes for cutting etc you may want to look at obtaining the part tessellation details or export it in a different format - both of which can be done via the REST API. The developer portal help documentation also has a section on how associativity is handled by Onshape and using the APIs with associative data.
Twitter: @BryanLAGdesign