Skip to content
#computer vision Preprint

IterCAD: Iterative Program Repair for CAD Code Generation from Orthographic Views

Aug 2026 · 0 citations · 35 references
Computer Science

TL;DR

This paper proposes IterCAD, an iterative framework that reformulates orthographic-view-to-CAD generation as a progressive program repair process that consistently improves code executability and geometric fidelity over strong one-shot baselines.

Abstract

Generating executable parametric CAD code from dimension-annotated orthographic drawings is a challenging task requiring geometric understanding, procedural reasoning, and precise numerical prediction. Existing vision-language approaches typically formulate this problem as one-shot generation, preventing the model from inspecting intermediate CAD results and correcting early mistakes, often leading to non-executable code or geometrically inconsistent outputs. In this paper, we propose IterCAD, an iterative framework that reformulates orthographic-view-to-CAD generation as a progressive program repair process. Instead of predicting the final CAD code in a single pass, IterCAD repeatedly analyzes the current CAD result, reasons about its discrepancy with the target views, and explicitly decides whether to REVISE the code or STOP the refinement process. To make iterative repair learnable, we further construct IterCAD-RS, a structured revise-or-stop supervision set containing both repairable intermediate CAD states and already-correct states, and develop a three-stage training strategy for initial generation, revision learning, and multi-turn RL optimization. By closing the loop between visual understanding, geometric verification, and code refinement, IterCAD progressively corrects structural and parametric errors. Experiments on CADExpert show that IterCAD consistently improves code executability and geometric fidelity over strong one-shot baselines.

View source

Similar papers

Preprint Aug 2026

MIRAGE-CAD: Construction-Mediated Multimodal Generation of Executable CAD Programs

MIRAGE-CAD maps each input to a shared construction representation and mediates program generation through an explicit construction-plan interface and shows that executable validity, geometric fidelity, and parametric responsiveness can diverge substantially and should therefore be evaluated separately.

Jizong Zhan · 0 citations
Preprint Aug 2026

RA-CAD: Learning Post-Execution Critique for State-Aware Text-to-CAD Generation

RA-CAD (ReAct Agent for CAD), a state-aware agent that interacts with the CAD environment through a Generate--Execute--Critique--Rewrite loop achieves state-of-the-art execution validity and geometric quality compared with existing methods and strong proprietary language models, demonstrating the effectiveness of the p...

Shu-Hao Yan, Changhao He, Peng Hu et al. · 0 citations
Preprint Aug 2026

CADIR: A Cross-Backend Editable Intermediate Representation for Agentic CAD Generation

CADIR, an agent-friendly executable intermediate representation for CAD generation and cross-backend editing, and a construction-graph retrieval method for text and image queries that supports both full-graph and subgraph retrieval, enabling agents to leverage complete models and modeling substructures.

Yu Liu, Jingzhe Ni, Yi-Ming Chen et al. · 2 citations
Jul 2026

Nova3D: Code-Native Generation of Programmable 3D Assets

Current 3D generative models mostly produce a final surface: a visually strong but largely opaque mesh. Interactive 3D worlds need more than a surface. They need named parts, an assembly hierarchy, measurable constraints, local edit handles, and joints for articulation. We present Nova3D, a system that generates 3D ass...

Nimra Noor, Muhammad Bilal, A. Hussain et al. · 1 citation
#artificial intelligence Preprint Sep 2026

Figures as Programs: Recursive Generation of Editable Scientific Figures

Examination of the proposed FigTree system produces high-quality figures, while also enabling more effective editing than existing raster-based methods, and proposes a multi-agent system that automatically transforms a scientific paper into a structured vector figure.

Yepeng Liu, Da-Sen Dai, Cheng-Zhi Liu et al. · 2 citations

Related blog posts

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.