|
Download README.md from fansunqi/Workflow-CAD-Bench: direct link, hf CLI and curl.
- Browser
- Download file 14.1 kB
-
https://huggingface.co/datasets/fansunqi/Workflow-CAD-Bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/fansunqi/Workflow-CAD-Bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/fansunqi/Workflow-CAD-Bench/resolve/main/README.md
14.1 kB
| pretty_name: Workflow-CAD-Bench | |
| license: cc-by-nc-4.0 | |
| language: | |
| - en | |
| - zh | |
| task_categories: | |
| - text-to-3d | |
| - image-to-3d | |
| tags: | |
| - cad | |
| - solidworks | |
| - agents | |
| - tool-use | |
| - benchmark | |
| - engineering-drawing | |
| - assembly | |
| - mechanism | |
| - step | |
| size_categories: | |
| - n<1K | |
| configs: | |
| - config_name: text_to_part | |
| data_files: | |
| - split: test | |
| path: text_to_part/tasks.jsonl | |
| - config_name: three_view | |
| data_files: | |
| - split: test | |
| path: three_view/tasks.jsonl | |
| - config_name: assembly | |
| data_files: | |
| - split: test | |
| path: assembly/tasks.jsonl | |
| # Workflow-CAD-Bench | |
| **Workflow-CAD-Bench** is a holistic benchmark for **agentic CAD modeling**. It tests whether an LLM-driven system | |
| can turn design intent into precise, valid CAD geometry, from single parts described in text, to parts read | |
| from engineering drawings, to multi-component mechanisms that must actually move as intended. | |
| | Track | Tasks | Input | What is scored | | |
| |---|---:|---|---| | |
| | **Text-to-part** | 100 (50 easy / 30 medium / 20 hard) | natural-language design brief (English and Chinese) | deterministic geometric rubric on the delivered solid (782 explicit items) | | |
| | **Three-view-to-part** | 50 | third-angle engineering drawing (PNG) + one neutral sentence | drawing-grounded rubric (349 items) + projection image score vs. a reference solid | | |
| | **Motion-aware assembly** | 50 mechanisms, 629 component roles, 1–4 DOF | functional brief for every part and for the assembly (Chinese) | assembly-structure rubric + motion check (33 motor-driven, 17 prescribed-pose cases) | | |
| - **Code, evaluator and the agent (Workflow-CAD):** https://github.com/workflowcad/Workflow-CAD | |
| - **License:** CC BY-NC 4.0 (non-commercial) | |
| Evaluation only uses the delivered CAD model; construction history and agent logs are never scored. The two | |
| part tracks are therefore **system-agnostic**: any modeler, CAD kernel or code generator that produces a STEP | |
| file can be evaluated without SolidWorks. The assembly track scores native SolidWorks mates and motion. | |
| ## Quick start | |
| ### Browse the task lists | |
| Each track has a `tasks.jsonl` index (shown in the dataset viewer), which loads directly with `datasets`: | |
| ```python | |
| from datasets import load_dataset | |
| text = load_dataset("fansunqi/Workflow-CAD-Bench", "text_to_part", split="test") | |
| print(text[0]["case"], text[0]["split"], text[0]["prompt_en"]) | |
| three_view = load_dataset("fansunqi/Workflow-CAD-Bench", "three_view", split="test") | |
| assembly = load_dataset("fansunqi/Workflow-CAD-Bench", "assembly", split="test") | |
| ``` | |
| The rubrics, drawings and CAD files referenced by the index are regular files in the repository (see | |
| [Layout](#layout)); `load_dataset` does not download them. | |
| ### Download the files | |
| ```bash | |
| pip install -U huggingface_hub | |
| # everything (~230 MB) | |
| hf download fansunqi/Workflow-CAD-Bench --repo-type dataset --local-dir Workflow-CAD-Bench | |
| # only the part tracks (rubrics, drawings, reference STEP files; ~37 MB) | |
| hf download fansunqi/Workflow-CAD-Bench --repo-type dataset --local-dir Workflow-CAD-Bench \ | |
| --include "text_to_part/*" --include "three_view/*" | |
| ``` | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| path = snapshot_download("fansunqi/Workflow-CAD-Bench", repo_type="dataset", | |
| allow_patterns=["three_view/*"]) # omit allow_patterns for everything | |
| ``` | |
| ### Use with the evaluator | |
| The evaluator (OpenCASCADE-based, `geomcheck`) and the benchmark runners live in the | |
| [GitHub repository](https://github.com/workflowcad/Workflow-CAD). Its `benchmark/` folder already contains the | |
| rubrics, drawings and three-view references; download this dataset **into** that folder to add the reference | |
| parts and assemblies, or point the `WORKFLOW_CAD_BENCH` environment variable at a separate download: | |
| ```bash | |
| git clone https://github.com/workflowcad/Workflow-CAD.git | |
| hf download fansunqi/Workflow-CAD-Bench --repo-type dataset --local-dir Workflow-CAD/benchmark | |
| ``` | |
| The GitHub README gives the full setup on one Windows PC (SolidWorks service, Python environments, LLM | |
| configuration) and the step-by-step evaluation protocol of the paper. | |
| ## Evaluating your own system on the part tracks | |
| 1. For every task, generate one solid from `prompt_en` (text track) or from the drawing plus `prompt_zh` | |
| (three-view track, the paper's protocol). | |
| 2. Export it as STEP, in millimetres, named `<case>_r1.step`, all in one folder. Position, orientation and the | |
| construction method are free. A missing file scores 0. | |
| 3. Grade (no SolidWorks needed; from `Workflow-CAD/workflow_cad` with the evaluator environment): | |
| ```bash | |
| python -m geomcheck.rubric --track text --artifacts my_text_run --output my_text_run/scores.json | |
| python -m geomcheck.bench --track text summary my_text_run/scores.json --repeats 1 | |
| python -m geomcheck.three_view --artifacts my_tv_run --output my_tv_run/scores.json | |
| python -m geomcheck.bench --track three_view summary my_tv_run/scores.json --repeats 1 | |
| ``` | |
| Reported metrics, one run per task: | |
| | Track | pass@1 | Score | Auxiliary | | |
| |---|---|---|---| | |
| | Text-to-part | fraction of tasks whose delivered solid passes **all** explicit rubric items | mean task score (weighted % of passed items) | **Core form**: joint pass rate of "single valid solid" and "primary body" | | |
| | Three-view-to-part | as above | as above | **Image**: 100 × mean over three orthogonal directions of matched pixels / union of silhouettes (silhouette, near/far depth and material thickness must agree; best of 24 rotations) | | |
| | Assembly | fraction of cases where all parts pass their rubric **and** the motion check passes | mean assembly-structure score | **Motion**: mean motion score (gated) | | |
| Prompts in different languages are not directly comparable; report which one you used. | |
| ## Layout | |
| ``` | |
| text_to_part/ | |
| tasks.jsonl index of the 100 tasks | |
| easy/ medium/ hard/<case>.yaml prompt (zh), prompt_en, part frames & entities, rubric items with weighted checks | |
| references/<split>/<case>.step reference solids | |
| three_view/ | |
| tasks.jsonl index of the 50 tasks | |
| rubrics/<case>.yaml prompt, prompt_en, drawing annotation list, rubric items | |
| (`image` / `reference` paths are relative to three_view/) | |
| drawings/<case>.png the drawing given to the system (third-angle: top view above, right view to the right) | |
| references/<case>.step reference solid used by the image score | |
| assembly/ | |
| tasks.jsonl index of the 50 mechanisms | |
| cases/<name>.yaml parts (id, prompt, extra tools), gold roles, assembly prompt, motion spec | |
| part_rubrics/<part_id>.yaml interface rubric of every part (hole/shaft diameters, positions, tooth counts, ...) | |
| assembly_rubrics/<case_id>.yaml structure rubric: ground, mobility, rigid bodies, joints, couplings | |
| assembly_rubrics/joint_anchors*.json joint axis anchors merged into the structure rubric | |
| gold_parts/<name>/*.SLDPRT|*.step reference parts of each mechanism (462 parts) | |
| gold_parts/reference_<name>.SLDASM 27 independently built reference assemblies (+ .aliases.json: role -> component) | |
| gold_parts/<name>/oracle_assembly.SLDASM 23 assemblies built by replaying public workflow calls | |
| (+ oracle_assembly.aliases.json, oracle_trajectory.json) | |
| LICENSE CC BY-NC 4.0 | |
| ``` | |
| ### Index fields | |
| **`text_to_part/tasks.jsonl`**: `case`, `split` (easy / medium / hard), `category` (easy split: everyday | |
| objects, common machined parts, multi-feature parts, operation-specific parts), `prompt_en`, `prompt_zh`, | |
| `rubric_items` (number of explicit items), `rubric`, `reference_step`. | |
| **`three_view/tasks.jsonl`**: `case`, `title`, `category`, `prompt_zh`, `prompt_en`, `expected_bodies` | |
| (2 for `c3_gear_pair` and `d17_pipe_clamp`, otherwise 1), `rubric_items`, `drawing`, `reference_step`, `rubric`. | |
| **`assembly/tasks.jsonl`**: `case_id`, `name`, `title`, `parts` (distinct part files to build), `roles` | |
| (component occurrences), `mobility`, `motion_mode` (`motor` = the evaluator drives one rotary input and samples | |
| the motion; `poses` = three prescribed configurations), `assembly_prompt_zh`, `part_prompts_zh`, `spec`, | |
| `assembly_rubric`, `gold_parts`, `reference_assembly`. | |
| ### What a rubric looks like | |
| Every item quotes the requirement it grades (`source`) and lists deterministic checks on the B-rep, expressed | |
| in frames recovered from the part itself (so any placement is accepted). An excerpt of | |
| `text_to_part/easy/stool.yaml`: | |
| ```yaml | |
| case: stool | |
| prompt_en: >- | |
| Create a four-legged stool: seat 200×200×20mm; four cylindrical legs, each 20mm in diameter and 150mm long, | |
| with each leg center 30mm from the adjacent edges. | |
| tolerance: {length_mm: 0.1, angle_deg: 0.5, volume_rel: 0.01} | |
| entities: | |
| frame: {principal_frame: {signs: {0: larger_area_low}}} | |
| legs: {cylinder: {d: 20, side: outer}, count: 4} | |
| rubrics: | |
| - id: solid | |
| hard: true | |
| check: | |
| - single_valid_solid: {} | |
| - id: outer | |
| source: seat 200×200, legs of 150 below the 20-thick seat | |
| hard: true | |
| check: | |
| - bbox_sorted: [170, 200, 200] | |
| - id: legs | |
| check: | |
| - exists: legs | |
| - parallel_to_frame: {frame: frame, items: legs, axis: 0} | |
| - extent_along: {axis: legs, of: legs, value: 150} | |
| ... | |
| ``` | |
| Check families: topology (one valid closed solid), envelope (sorted bounding box, box in a part frame, | |
| footprint), features and relations (counts, diameters, positions, patterns, coaxiality), material | |
| distribution (wall/floor thickness, openings, sections along probe lines, symmetry) and volume. Requirements | |
| that a brief does not determine are listed as ungraded instead of being guessed; where a brief admits several | |
| readings, every reasonable reading is accepted. | |
| The assembly structure rubric (`assembly_rubrics/lead_screw_stage.yaml`) accepts any mate decomposition that | |
| realizes the required joints: | |
| ```yaml | |
| case_id: lead_screw_stage | |
| ground: frame | |
| mobility: 1 | |
| bodies: | |
| frame: [frame, guide_rod] | |
| screw: [screw, handwheel] | |
| carriage: [carriage, nut] | |
| joints: | |
| - bodies: [screw, frame] | |
| type: revolute | |
| - bodies: [carriage, frame] | |
| type: [cylindrical, slider] | |
| - bodies: [carriage, screw] | |
| type: screw | |
| ``` | |
| ## Task coverage | |
| - **Text-to-part** spans everyday objects, common machined parts, multi-feature parts and operation-specific | |
| parts (ribs, shells, sheet metal, sweeps, lofts, drafts). The medium split includes crankshafts, brake discs, | |
| gearbox housings, turbine discs and a level-2 Menger sponge; the hard split requires exact involute, airfoil, | |
| cam, scroll and helix geometry, derived quantities (compound drilling directions, bend allowance) and | |
| variable-radius fillets, drafts and shells. | |
| - **Three-view-to-part**: 13 drawings re-generated from demo parts and 37 newly designed mechanical parts | |
| (V-blocks, bearing blocks, pulleys, valve bodies, motor mounts, ...) with dimensions, hidden lines, center | |
| lines and callouts. No external drawings or models are used. | |
| - **Assembly**: rotary transmissions and planetary trains, reciprocating machines (engines, pumps, shaper, | |
| press), closed-loop linkages (Jansen leg, Peaucellier, mechanical iris), robots (SCARA, excavator, | |
| palletizing robot) and deployable / steering / lifting systems. Briefs give part geometry and functional | |
| relations, never final poses or assembly steps. | |
| ## Construction and validation | |
| About 50 cases were authored by mechanical-domain experts directly in SolidWorks; the remaining cases imitate | |
| these examples (an LLM calling the SolidWorks API under continuous expert guidance), and every case received at | |
| least one expert review. Text prompts were then written by an LLM from the finished models; the three-view | |
| drawings are projected from the reference solids. | |
| The evaluators are validated with positive and negative controls (reproducible with the test suite in the | |
| GitHub repository): | |
| - Text-to-part: all 100 references score 100; 206 targeted geometric mutants fail exactly their intended items. | |
| - Three-view: all 50 references score 100 on rubric and image score; 133 mutants, rotated references and | |
| mirrored asymmetric parts verify defect sensitivity and pose invariance. | |
| - Assembly: all 50 reference / oracle assemblies score 100 on structure and motion with zero sampled | |
| interference; injected mating and motion faults are detected. The 23 oracle trajectories show that every | |
| second-batch case is reachable with the public workflows. | |
| ## Known limitations | |
| - Rubrics are hand-written: requirements they do not cover are not checked. | |
| - `text_to_part/references/medium/hydraulic_manifold.step`: the in-memory reference scores 100, but after a STEP | |
| write / read round trip OpenCASCADE flags the solid as invalid, so grading this file directly fails the | |
| `solid` item. The other 99 exported references score 100. | |
| - SolidWorks occasionally exports degenerate surfaces that OpenCASCADE reads as invalid; the Workflow-CAD runner | |
| stores SolidWorks' own body count and volume next to each STEP (`.swmass.json`) and the grader falls back to it. | |
| - The `.SLDPRT` / `.SLDASM` files were saved with SolidWorks 2025 and cannot be opened by older versions. | |
| Assemblies store the absolute part paths they were built with; SolidWorks resolves moved parts through its | |
| search rules (keep the folder structure). | |
| - Assembly prompts are Chinese only. For the part tracks the Chinese prompts are the originals and `prompt_en` | |
| is a sentence-by-sentence translation. | |
| - Motion checks are evaluated inside SolidWorks (Animation motor or prescribed poses), so the assembly track | |
| requires SolidWorks. | |
| ## License | |
| [CC BY-NC 4.0](LICENSE): free for non-commercial use with attribution. The evaluator and agent code in the | |
| GitHub repository are licensed separately under the PolyForm Noncommercial License 1.0.0. SOLIDWORKS is | |
| commercial software and is not included. | |
| ## Citation | |
| ```bibtex | |
| @inproceedings{workflowcad2026, | |
| title = {Workflow-CAD: Engineer-Level Workflows for Agentic CAD Modeling}, | |
| author = {TBD}, | |
| booktitle = {TBD}, | |
| year = {2026} | |
| } | |
| ``` | |