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.

Options

Feature Script to extract information from Onshape document

bryan_lagrangebryan_lagrange Member, User Group Leader Posts: 793 ✭✭✭✭✭

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.

Bryan Lagrange
Twitter: @BryanLAGdesign

Comments

  • Options
    3dcad3dcad Member, OS Professional, Mentor Posts: 2,470 PRO
    edited December 2016
    I would very much like extracting all sort of data into external database that could be read with any external software. With same intensions as @bryan_lagrange - cost calculation, material info, cnc output, etc..

    I suppose this is more API than FS..
    //rami
  • Options
    awkawk Member, Onshape Employees, Developers Posts: 78
    You should be able to use the REST API to extract most of this information using the Part metadata APIs.

    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.

    Director of API, Appstore, and App Partner Technical Support
  • Options
    bryan_lagrangebryan_lagrange Member, User Group Leader Posts: 793 ✭✭✭✭✭
    Thank  you for the information Andrew.
    Bryan Lagrange
    Twitter: @BryanLAGdesign

Sign In or Register to comment.