Hostname: page-component-76d6cb85b7-s74w7 Total loading time: 0 Render date: 2026-07-12T02:04:34.544Z Has data issue: false hasContentIssue false

From text to design: a framework to leverage LLM agents for automated CAD generation

Published online by Cambridge University Press:  27 August 2025

Aurel Schüpbach
Affiliation:
Inspire AG, Switzerland
Raul San Miguel*
Affiliation:
Inspire AG, Switzerland
Julian Ferchow
Affiliation:
Inspire AG, Switzerland
Mirko Meboldt
Affiliation:
ETH Zürich, Switzerland

Abstract:

Design generation using traditional Computer-Aided Design (CAD) tools remains a labor-intensive and manual task. This paper introduces a framework for automating CAD geometry generation using Large Language Models (LLMs) with function calling and agent workflows. The framework enables both expert and novice designers to use textual prompts to automatically generate CAD code. We evaluate it with five LLMs and four agent workflows. The agent workflow incorporating automated visual feedback outperforms the others, especially with multimodal LLMs like ChatGPT-4o. A case study shows its use in topology optimization and additive manufacturing with minimal human input. Remaining challenges include limitations in spatial reasoning, prompt dependency, and workflow adaptability. Future work should focus on improving design-for-manufacturing capabilities, visual tools, and evaluation benchmarking.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (http://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original work is unaltered and is properly cited. The written permission of Cambridge University Press must be obtained for commercial re-use or in order to create a derivative work.
Copyright
© The Author(s) 2025
Figure 0

Figure 1. Framework flowchart. The prompts, predefined context and function call file are preliminarily stored as text or JSON files locally, the agent workflows are implemented in Python and run locally, and the LLM is accessed vi an API. In this manner, the LLM is a tool within the larger framework and is employed only when required by each agent workflow's strategy

Figure 1

Figure 2. Test prompt grounds truth CAD models and example of corner plate geometry generation

Figure 2

Table 1. Success rate of agent workflows using chatGPT-4 Turbo

Figure 3

Table 2. Success rates of LLMs across test geometries using the stepPlanning agent workflow

Figure 4

Figure 3. FCRC bracket Benchmark Properties

Figure 5

Figure 4. Complete FCRC process from text prompt to final additively manufactured geometry

Figure 6

Table 3. Success rate of agent workflows using ChatGPT-4 Turbo for the FCRC bracket

Figure 7

Table 4. Success rates of LLMs using the stepPlanning agent workflow for the FCRC bracket