Open JHPHELAN opened 1 year ago
Hello,
Maybe we can consider something like:
if 'suppressed' not in occurrence['instance'] or not occurrence['instance']['suppressed']:
About the access problem, unfortunately there is little I can do about that, permissions in onshape are sometime hard to understand. Did you make a copy of the document you are importing to be sure you have all the permissions?
@Gregwar It seems from what I gather it's not that we're not testing correctly for ['suppressed'], but rather that 'suppressed' needs to be added to some dictionary.
I did make a cc of the document. I suspect it's more that the part isn't there than I'm lacking permission. I can find a reference to it, but it lacks detail. Seems to be a solder pad on an Arduino.
Recently installed OnShape-to-robot plus accessories on a Dell laptop / Ubuntu 22.04 successfully. my config.json points with appropriate access and secret keys to MY COPY the JPL Open Source Rover: https://cad.onshape.com/documents/5c358484057fc4c01d5e5803/w/bdf583acdf29d75695be5fbc/e/e3eb7193ecdec5b0a710978b
ubuntu@LinuxBox:~$ onshape-to-robot OnShape-OSR
The 'KeyError: 'suppressed' error apparently refers to 'suppressed' not being in the 'defaultdict' referred to in 'load_robot.py'. I can't find the actual dictionary despite considerable digging. I'll see what happens if I 'comment out' that block of code....
When I do, it gets farther until it complains about a screw with no mass, then a missing resource: