Open oliver-leung opened 5 years ago
I've run into a strange error which I've detailed here, preventing me from creating a Python object from an Onshape Part Studio. Aside from that, I think that I have the process complete for authorizing Onshape in Python.
The docutils
version error has been resolved, so we can likely unpin it from Pipfile
.
The error that I mentioned above (preventing me from creating a Python object) has been resolved due to an incorrect .onshape_client_config.yaml - tag me if you need to see what the corrected one is.
A discussion with @ethan92429 has revealed the following divine truths:
urllib3
. We can then append the string to the element URL, creating a custom configuration URL that is publicly-accessible.onshape_client
requires Onshape credentials to instantiate the client, in order to access the API.urllib3
.For our purposes of creating custom configurations, it then becomes clear that we actually don't need onshape_client
for our Onshape use case. Instead, we should be using the following strategy:
urllib3
We need to integrate Ethan's
onshape_client
package to reach the following goals:Component
objects into Onshape Part Studio/Assembly configurations.onshape_client
for authorization. Our two potential methods of achieving this are:.onshape_client_config.yaml
in their home directory (local) or in GDrive (Colab)aguaclara
package and are used whenever the package is imported.Component.write_properties_to_file(filename)
should overwrite the file iffilename
already exists.