CAD-Coder:Text-Guided CAD Files Code Generation

Changqi He, Shuhan Zhang, Liguo Zhang, Jiajun Miao
5/13/2025
cs.GRcs.CVcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Computer-aided design (CAD) is a way to digitally create 2D drawings and 3D models of real-world products. Traditional CAD typically relies on hand-drawing by experts or modifications of existing library files, which doesn't allow for rapid personalization. With the emergence of generative artificial intelligence, convenient and efficient personalized CAD generation has become possible. However, existing generative methods typically produce outputs that lack interactive editability and geometric annotations, limiting their practical applications in manufacturing. To enable interactive generative CAD, we propose CAD-Coder, a framework that transforms natural language instructions into CAD script codes, which can be executed in Python environments to generate human-editable CAD files (.Dxf). To facilitate the generation of editable CAD sketches with annotation information, we construct a comprehensive dataset comprising 29,130 Dxf files with their corresponding script codes, where each sketch preserves both editability and geometric annotations. We evaluate CAD-Coder on various 2D/3D CAD generation tasks against existing methods, demonstrating superior interactive capabilities while uniquely providing editable sketches with geometric annotations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2025cadcodertextguided,
  title  = {CAD-Coder:Text-Guided CAD Files Code Generation},
  author = {Changqi He and Shuhan Zhang and Liguo Zhang and Jiajun Miao},
  year   = {2025},
  eprint = {2505.08686},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.08686v1}
}

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.08686.svg)](https://codeofpaper.com/paper/2505.08686)

Discussion