From Idea to CAD: A Language Model-Driven Multi-Agent System for Collaborative Design

Felix Ocker, Stefan Menzel, Ahmed Sadik, Thiago RiosarXiv 2025

TL;DR

This paper introduces a Vision Language Model (VLM)-based Multi-Agent System (MAS) that automatically generates editable, parametric CAD models from rough sketches and textual descriptions. By mimicking a human engineering team—complete with dedicated requirements, design, and quality assurance roles—the system uses iterative visual self-feedback and human validation to overcome the spatial reasoning limitations of standard AI. This approach significantly outperforms single-shot language models, paving the way for more accessible and collaborative digital design.

What Problem Does This Paper Address?

Computer-Aided Design (CAD) is essential for modern manufacturing and 3D printing, but mastering CAD software requires deep technical expertise. While recent generative AI models can create 3D shapes from text prompts (text-to-3D), they typically output non-editable formats like point clouds or static surface meshes.

To create functional, production-ready objects, engineers need parametric CAD models (code- or constraint-based geometries that can be easily modified). However, using Large Language Models (LLMs) to write parametric CAD code directly is notoriously difficult. Current VLMs struggle with 3D spatial reasoning, often misorienting surfaces or misplacing features because they cannot "see" or verify the code they execute.

Methods

The authors address this challenge by designing a Multi-Agent System that mirrors the classic engineering "V-model" development process.

Figure 1: The development phases our approach focuses on highlighted at the example of the V-model: 1 requirement elicitation, 2 model creation, 3 verification, and 4 validation.

Instead of relying on a single prompt, the framework distributes responsibilities across three specialized VLM agents (powered by OpenAI's gpt-4o):

  1. RequirementsEngineer: Acts as the user interface. It analyzes the initial sketch or text, identifies ambiguities or missing dimensions, and chats with the user to clarify the design intent before any code is written.
  2. CadEngineer: Takes the finalized specifications, creates a step-by-step modeling plan, and writes Python code using the open-source CadQuery library. It also reads library documentation to fix syntax errors dynamically.
  3. QualityAssuranceEngineer: Acts as the "eyes" of the system. Once the CAD code executes, this agent uses the pyvista library to render the 3D model into seven distinct 2D images (top, bottom, front, back, left, right, and isometric views). It visually inspects these views against the original requirements and sends concrete, textual critique back to the CAD Engineer if something is wrong.

An outer Human Validation Loop allows the user to review the final output and provide natural language feedback to trigger further refinements.

Figure 2: Engineering team architecture.

Datasets

The paper evaluates the framework using a custom set of five visual and textual specifications designed to test varying levels of geometric complexity:

  • A hand-drawn sketch of a simple rectangular block.
  • A hand-drawn sketch of a block with two holes (requiring precise positioning).
  • A simplified sketch of a toy car (testing multi-part assembly and orientation).
  • A photograph of a physical plastic cap.
  • A photograph of a physical metal angle bracket.

Key Insights and Ideas

  • Teamwork Beats Solo Prompting: A single VLM prompted to generate CAD code directly (0-shot) fails completely on complex tasks. Dividing the problem into specialized roles prevents the model from being overwhelmed and allows for targeted error correction.
  • Visual Feedback Bridges the Spatial Gap: Because VLMs cannot natively conceptualize 3D spaces purely through code text, rendering the model into multi-angle 2D images allows the QA agent to identify physical mistakes (e.g., wheels floating in the air or holes on the wrong face) just like a human inspector would.
  • The "Context Window" Trap: Simply increasing the number of iterations isn't always helpful. If an agent repeatedly generates bad code, it can pollute its own context window with faulty examples, making it harder for the AI to converge on the correct solution.
  • Tool Constraints Bound AI Capability: The AI is strictly limited by the software libraries it uses. For example, the VLM intuitively tried to use a .bend() command to create the angle bracket. Because CadQuery lacks native shape-morphing/bending operations, the agent hallucinated code and failed, highlighting that AI needs the right parametric tools to succeed.

Key Results

The multi-agent system demonstrated a massive improvement over the baseline "0-shot" VLM approach:

  • Baseline Failure: The 0-shot VLM failed to produce an acceptable model for any of the five test cases, often outputting completely wrong aspect ratios or missing critical features entirely.
  • MAS Success: The collaborative multi-agent system successfully generated acceptable, fully editable CAD models for 4 out of the 5 tasks (the block, block with holes, toy car, and cap) within 1 to 3 iterations.

For the toy car, the system successfully adjusted wheel orientation and symmetry iteratively based on visual checks and minor user feedback.

Figure 3: Examples of the iterative design process from the user specification to the resulting model. The first column “Inputs” shows the visual inputs, the second column “0-shot VLM” shows the baseline results without requirement clarification, verification and validation, and the right part shows the iterations with our MAS. The dashed lines indicate validation steps. Red borders indicate wrong CAD models, green borders indicate acceptable designs.

Limitations and Future Work

Despite the promising results, the authors note several limitations:

  • Orientation Struggles: VLMs still occasionally struggle to select the correct workplanes for complex sketches.
  • Complexity Limits: The system failed on the angle bracket due to a combination of spatial reasoning difficulties and CadQuery library limitations.
  • Future Directions: The authors propose a more granular, feature-by-feature code generation process (building the model step-by-step with visual confirmation for each feature). They also suggest adding explicit spatial context to the renderings (like coordinate axes and dimensions) and fine-tuning VLMs on dedicated engineering datasets rather than relying solely on commercial off-the-shelf models.

Summary updated

BibTeX
@misc{ocker2025from,
  author = {Felix Ocker and Stefan Menzel and Ahmed Sadik and Thiago Rios},
  title = {{From Idea to CAD: A Language Model-Driven Multi-Agent System for Collaborative Design}},
  year = {2025},
  eprint = {2503.04417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04417},
}
Figure