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

Anna C. Doris, Md Ferdous Alam, Amin Heyrani Nobari, Faez Ahmed
5/20/2025
67 citations
cs.CVcs.AI

Official code: anniedoris/CAD-Coder (217 stars, Python, Apache-2.0, last commit 2025-07-17).

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.

Show full abstract

While recent developments in AI-driven CAD generation show promise, existing models are limited by incomplete representations of CAD operations, inability to generalize to real-world images, and low output accuracy. This paper 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 novel dataset that we created--GenCAD-Code, consisting of over 163k CAD-model image and code pairs--CAD-Coder outperforms state-of-the-art VLM baselines such as GPT-4.5 and Qwen2.5-VL-72B, achieving a 100% valid syntax rate and the highest accuracy in 3D solid similarity. Notably, our VLM demonstrates some signs of generalizability, successfully generating CAD code from real-world images and executing CAD operations unseen during fine-tuning. The performance and adaptability of CAD-Coder highlights the potential of VLMs fine-tuned on code to streamline CAD workflows for engineers and designers. CAD-Coder is publicly available at: https://github.com/anniedoris/CAD-Coder.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
21725Python, ShellMar 24, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{doris2025cadcoder,
  title  = {CAD-Coder: An Open-Source Vision-Language Model for Computer-Aided Design Code Generation},
  author = {Anna C. Doris and Md Ferdous Alam and Amin Heyrani Nobari and Faez Ahmed},
  year   = {2025},
  eprint = {2505.14646},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.14646v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.14646.svg)](https://codeofpaper.com/paper/2505.14646)

Discussion