-
Select assembly configuration in API?
Started playing around a bit with the API. I'm looking at what it would take to generate some images of different configurations of an assembly to use on our website. Looking through the "Gif generator" example, I'm seeing a lot of the pieces I would need to make that happen, but one thing I'm not clear on is how to switch…
-
Translating drawing through API
I am wondering if there is a way to have a translation post request for a drawing only return results when the translation status is "DONE"? For now, it seems I need to call the translation, and then I call the status of the translation and keep calling it in a loop until the status is "DONE". Then I use the id from that…
-
Translating a drawing using the API
I have been looking through the glassworks resource and am surprised that I can't find a way to create a translation of a drawing. Is this really not possible? My intent is to pull out a drawing into an image format or a pdf.
-
THUMBNAIL CONFIGURATION STRING CONVERSION
I am noticing the configuration string used to pull an items metadata with an API endpoint looks something like this "HEIGHT=0.5334000000000001+meter;WIDTH=0.9144000000000001+meter". I am also noticing the configuration string used to pull the same items base64 thumbnail image looks like this…
-
Centroid of child components in Assembly
Is there anyway to Extract centroid of child components in Assembly using API?
-
How would you design an SVG export app/script/tool?
Step 1: The user selects a number of parallel faces in the Onshape UI Step 2: ??? Step 3: Profit! (Get an SVG you can take to your CNC workflow of choice) The standard workflow recommendation for small CNCs is "Export DXF, import into Inkscape, merge the paths, re-export to SVG" but frankly that's a pain in my ass. There…
-
API - Trying to find a more efficient way to pull thumbnails for each BOM item.
ATM, I pull a BOM through the API. Probably due to lack of knowledge, I create a string using data contained in the JSON file for each item in the BOM that represents an end point to get the metadata for that item. I include thumbnail in that GET request. Now, the thumbnails included in the request are URLS and they work…
-
Working example on how to change custom property value in standard content and assembly item via API
My goal is to build very simple script based inventory management on top of Onshape Custom Properties. Hence, I need to change stock size and some other custom properties via API in all 3 types of items: normal parts, assembly items and standard content items. I have created a test custom property named "unitprice", and a…
-
Is there any API/automation to get screenshot of a geometry inside partstudio?
I am looking for a way to get the screenshot of the geometry(Solid, Surface, etc. ) inside part studio without opening it.
-
Python assembly API -- Creating a mate connector on existing geometry
I am using the python client API to create a mate connector on an existing assembly. The idea is to create a mate connector on an existing geometry. Using the API explorer I could find the body content for a message for the "add feature" function (adding a mate connector on the centroid of the geometry "JKW" belonging to…
-
Looking to hire API Developer for automated export tool
Who we are: Carlsmed - a med device startup, building patient-specific spinal solutions. Our goal is to bring data to spine surgery and provide personalized care at scale. The project: I need help developing a custom tool which can automate batch export of solid models from Onshape to a folder of choice. Batch export…
-
How to update Feature Studio contents using python client?
Hi! I can successfully access feature studio content using python client API by: element = OnshapeElement("https://cad.onshape.com/documents/ca8f441b906a5949eb4e8196/w/3ffa603f8af8def1150f37d7/e/f85267336902055c5cbf495d") result = osh.client.feature_studios_api.get_feature_studio_contents( **element._get_DWMVE(),…
-
Restructuring imported assemblies via API
I'm importing an assembly that with has multiple instances of the same part number, as shown here (3x PN3): PN1- PN2- PN3- PN3- PN3 OnShape creates 3x Documents that are all identical copies of PN3, and an assembly structure that references each of them individually. I would like to do a few different things:-…
-
Getting starting in C#
Since I last was here, I figured out how to get the API keys. Now I have downloaded from git OnshapeWindowsSample. I set the environment variables as instructed here: https://github.com/onshape-public/app-windows-sample (Open question: the image says partner.dev.onshape.com, but the text says cad.onshape.com. Which is…