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.
Somehow get access to the url representing the thumbnail of a released item
shawn_crocker
Member, OS Professional Posts: 865 PRO
I hoping there is a way to do this. I hoping the thumbnail of a released item can be displayed in another cloud system automatically without have to manually create an image file. Is it possible to get the thumbnail url?
Tagged:
0
Best Answers
-
chadstoltzfus Member, Developers, csevp Posts: 142 PROI'm not super familiar with Appsheet but taking a glance at it I'm guessing the only way to link the two is creating or finding an application that uses Appsheet's API and Onshape's API and joins the two together. It looks like you can use Appsheet API calls to populate records, so the workflow would look like this:
Open the application
Click on an update button
Use Appsheet API to pull all of the records
Implement some way to match up Appsheet with Onshape documents (probably a document URL in a record)
Use Onshape's API to get the thumbnails from the URLs and insert the thumbnails into the Appsheet records.
Not really a great solution, ideally you would want something that automates this process so you don't have to click an update button. I'm unsure if Appsheet has this capability.Applications Developer at Premier Custom Built
chadstoltzfus@premiercb.com2 -
bill_schnoebelen OS Professional, Developers, User Group Leader, csevp Posts: 120 PROTo get the cid you need to run Elements:Get Configuration and find this guy in the json. Then the above works.
0
Answers
Do you know if this is possible? I'm sort of assuming no but this system has made a habit out of surprising me with what is possible.
chadstoltzfus@premiercb.com
Open the application
Click on an update button
Use Appsheet API to pull all of the records
Implement some way to match up Appsheet with Onshape documents (probably a document URL in a record)
Use Onshape's API to get the thumbnails from the URLs and insert the thumbnails into the Appsheet records.
Not really a great solution, ideally you would want something that automates this process so you don't have to click an update button. I'm unsure if Appsheet has this capability.
chadstoltzfus@premiercb.com
I just need somethng which kicks out the thumbnails for use in a google sheets qoute. Pictures make life so much easier.
I tried:
I have not got this working. I haven't had time to get into the "learning API headspace" just yet. It would be really awesome to be able to generate a link similar to a barcode generator that just spits back an image. What I am noticing though, is the thumbnail in Onshape, when doing a search for a configured part number, does not always represent the configuration of the part number that was searched. This might through a wrench in what I wish to accomplish.
Thanks! I will looking into making use of this info.
Although they should, configurations don't work on the parts. I could not find a documented way to do configurations on assemblies. The actaul thumbnails may work here. I am using shaded views.
I am not sure if this is proper with the API Keys. There is not a good way to hide it. So be careful! I am the only one using my spreadsheet.
The API works in google script because I used generic-endpoints. Onshape is the server. I am not sure if this is meant for a production enviroment. But it works for now!
https://docs.google.com/spreadsheets/d/1pAPrkvImQmAe-Eb6m1cQWw4pFx-2CABSnJ-Bbiqps2U/edit#gid=0