CRAFT: Corrective and Robust Multi-Agent Framework for Text-to-Parametric CAD

Mohammed Musthafa Rafi1 Anushrut Jignasu1 Mahdi Saraeian1 Chinmay Hegde2 Aditya Balu1 Adarsh Krishnamurthy1

1Iowa State University    2New York University

IEEE International Conference on LLM-Aided Design (LAD), 2026

Examples of CRAFT-generated parametric CAD models

Natural language in, executable and editable parametric OpenSCAD programs out. No task-specific training.

Abstract

Text-to-CAD generation has the potential to make mechanical CAD more accessible, but existing approaches face a trade-off between data dependence and output fidelity. Supervised methods rely on large paired text–model datasets, while zero-shot prompting strategies are often brittle and tend to lose the parametric structure needed for downstream editing and customization. We present CRAFT, a corrective and robust multi-agent framework that produces parametric OpenSCAD programs from natural language without task-specific training. At its core is a JSON intermediate representation that preserves symbolic parametric expressions throughout the generation process, enabling models to remain editable rather than collapsing into hard-coded geometry. CRAFT combines semantic understanding, parametric planning, compilation, rendering, self-correction, and component-level verification within a layered recovery process, using multi-view visual feedback to detect and repair geometric errors. Across NopSCADlib, ABC, and Slice-100K, CRAFT is competitive with direct zero-shot baselines in perceptual and geometric quality while exposing substantially more editable parametric structure.

Interactive Results

Six CRAFT-generated models, live in your browser. Drag to rotate, scroll to zoom. Amber surfaces are model interiors.

Prompt: “40mm axial cooling fan”
Prompt: “Rectangular table with a flat top and four straight legs”
Prompt: “3D model of a DC motor with essential structural and functional components”
Prompt: “Standard RC servo motor body with housing, top cap, output shaft boss, and mounting ears”
Prompt: “Simple spur gear”
Prompt: “Simple chair with seat, four legs, and a backrest”

Method

The CRAFT pipeline

Parametric Editability

CRAFT preserves symbolic parametric structure, so individual parameters can be edited after generation while the program remains valid and re-renderable. Below: the same CRAFT-generated spur gear program, re-compiled with edited customizer parameters. Every panel is live.

Generated default (8 teeth)
Tooth count +12
Tooth height +4 mm, tip width +3 mm
Bore diameter +8 mm
Gear thickness −4 mm, hub height +6 mm
Gear diameter +20 mm
Hub and set-screw bore highlighted

CRAFT vs. Direct Generation

Out-of-library ABC parts, all live: ground truth alongside CRAFT, GPT-4o, and GPT-5.2 outputs for the same input. CD = per-part aligned Chamfer distance (lower is better; green = best).

ABC: cover plate (0012749)

Ground truth
CRAFTCD 0.014
GPT-4oCD 0.144
GPT-5.2CD 0.102

ABC: clamp block (0070304)

Ground truth
CRAFTCD 0.053
GPT-4oCD 0.086
GPT-5.2CD 0.121

ABC: cylindrical hub (0069012)

Ground truth
CRAFTCD 0.059
GPT-4oCD 0.085
GPT-5.2CD 0.097

Per-part CD from the benchmark's aligned scorer (PCA + 24-rotation + ICP alignment); aggregate results across all parts are in the tables below and in the paper.

Results

13.1
editable parameters / model (vs. 0.1 for GPT-4o)
66.8%
symbolic-expression preservation
0.2226
CLIP score (best; GT = 0.2342)
95.11
FID (lowest = best)

Perceptual alignment on NopSCADlib

MetricSplitCRAFTGPT-4oGPT-5.2GT
CLIP ↑Overall0.22260.20330.21450.2342
Simple0.22720.20980.21740.2279
Medium0.21320.20140.21440.2342
Complex0.22790.19830.21160.2409
FID ↓Overall95.11119.42106.22
Simple152.37144.38136.22
Medium126.88159.56147.95
Complex144.85184.39160.51

Geometric accuracy

DatasetMethodChamfer ↓F1@1% ↑Voxel IoU ↑
NopSCADlibCRAFT0.06540.25300.2356
GPT-4o0.07330.24670.2135
GPT-5.20.06620.25870.1890
ABCCRAFT0.08410.12330.0433
GPT-4o0.10080.08570.0212
GPT-5.20.09690.08750.0192
Slice-100KCRAFT0.06120.29240.0616
GPT-4o0.07510.21220.0711
GPT-5.20.06220.27680.0636

Editability results, full per-tier tables, the ablation, and recovery statistics are in the paper.

BibTeX

@inproceedings{rafi2026craft,
  title     = {CRAFT: Corrective and Robust Multi-Agent Framework for Text-to-Parametric CAD},
  author    = {Rafi, Mohammed Musthafa and Jignasu, Anushrut and Saraeian, Mahdi
               and Hegde, Chinmay and Balu, Aditya and Krishnamurthy, Adarsh},
  booktitle = {IEEE International Conference on LLM-Aided Design (LAD)},
  year      = {2026}
}