CAD-Coder: An Open-Source Vision-Language Model for Computer-Aided Design Code Generation

Abstract Efficient creation of accurate and editable 3D CAD models is critical in engineering design, significantly impacting cost and time to market in product innovation. Current manual workflows remain highly time consuming and demand extensive user expertise. While recent developments in AI-driven CAD generation show promise, existing approaches are often constrained by limited CAD representations, inability to generalize to real-world images, or low output accuracy due to a lack of domain-specific knowledge. To address these challenges, this article introduces CAD-Coder, an open-source vision-language model (VLM) explicitly fine-tuned to generate editable CAD code (CadQuery Python) directly from visual input. Leveraging a large-scale dataset that we constructed—GenCAD-Code, consisting of over 163k CAD model image and code pairs—CAD-Coder outperforms VLM baselines such as GPT-4.5 and Qwen2.5-VL-72B on image-conditioned CAD code generation, achieving a 100% valid syntax rate and the highest accuracy in 3D solid similarity. Notably, our VLM exhibits initial signs of generalizability, generating CAD code from real-world images and utilizing a CAD operation not explicitly seen during fine-tuning. The performance and adaptability of CAD-Coder highlight the potential of VLMs fine-tuned on code to streamline CAD workflows for engineers and designers. CAD-Coder is publicly available.

Authors

Institutions

Publication Details

Journal
Journal of Mechanical Design
Published
2026-03-05
DOI
https://doi.org/10.1115/1.4071305
Primary Topic
Manufacturing Process and Optimization
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CAD-Coder: An Open-Source Vision-Language Model for Computer-Aided Design Code Generation

Amin Heyrani Nobari, Md Ferdous Alam, Anna C. Doris, Faez Ahmed
Journal of Mechanical Design
Manufacturing Process and Optimization
article

CAD-Coder: An Open-Source Vision-Language Model for Computer-Aided Design Code Generation

Amin Heyrani Nobari, Md Ferdous Alam, Anna C. Doris, Faez Ahmed
article en

Abstract

Abstract Efficient creation of accurate and editable 3D CAD models is critical in engineering design, significantly impacting cost and time to market in product innovation. Current manual workflows remain highly time consuming and demand extensive user expertise. While recent developments in AI-driven CAD generation show promise, existing approaches are often constrained by limited CAD representations, inability to generalize to real-world images, or low output accuracy due to a lack of domain-specific knowledge. To address these challenges, this article introduces CAD-Coder, an open-source vision-language model (VLM) explicitly fine-tuned to generate editable CAD code (CadQuery Python) directly from visual input. Leveraging a large-scale dataset that we constructed—GenCAD-Code, consisting of over 163k CAD model image and code pairs—CAD-Coder outperforms VLM baselines such as GPT-4.5 and Qwen2.5-VL-72B on image-conditioned CAD code generation, achieving a 100% valid syntax rate and the highest accuracy in 3D solid similarity. Notably, our VLM exhibits initial signs of generalizability, generating CAD code from real-world images and utilizing a CAD operation not explicitly seen during fine-tuning. The performance and adaptability of CAD-Coder highlight the potential of VLMs fine-tuned on code to streamline CAD workflows for engineers and designers. CAD-Coder is publicly available.

Journal of Mechanical DesignVol. 148(7)
Massachusetts Institute of Technology (US)
National Science Foundation
Industry, innovation and infrastructure
Openalex Percentile: Top 38%
Manufacturing Process and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.