This is a currently working branch of the Onshape-CAD-Parser developed by Rundi Wu. It drastically reduces API calls and avoids a critical bug in the OnShape API that caused the old version to stop functioning by loading from an offline copy of the ABC dataset.
- Reduced the number of calls to the OnShape API
get_features()is no longer called. The ofs data is instead retrieved locally- The information retrieved by
eval_curve_midpointis now included ineval_sketch_topology_by_adjacency - Unit conversion by
expr2meteris now done locally - Removed unused functions from
myclient.pyfor clarity
- Added .gitignore
Follow the regular installation instructions here.
Additionally, you need to download the ABC dataset in the ofs format by following the instructions here. Create a folder named files in the project directory and extract the dataset there. The resulting folder structure should look something like this:
{project directory}/files/00009999/{file name}.yml