arXiv:2507.19771cs.LGcs.AI2025-07被引 1

用大模型+检索增强生成,把自然语言描述直接变AutoCAD结构图。

Large Language Model Agent for Structural Drawing Generation Using ReAct Prompt Engineering and Retrieval Augmented Generation

  • 基于LLM Agent与RAG技术理解自然语言指令
  • 可准确生成包含标题栏、比例、视图等要素的结构图
  • 适合需要快速迭代设计的土木工程师

结构图在机械、土木工程等领域广泛应用,是建筑师、工程师和施工方之间沟通的关键工具,用于避免冲突、作为法律文件,并为后期维护提供依据。其通常包含标题/副标题框、比例尺、平面图、立面图、剖面图及详图等关键元素,通过标准化符号与线型便于工程师和承包商解读。尽管软件能力不断提升,结构图绘制仍耗时费力。本文提出一种基于生成式AI的大语言模型(LLM)代理方法,结合外部知识检索增强生成(RAG)技术,提升模型准确性与可靠性。该方法能理解多样化的自然语言描述,提取必要信息并生成AutoCAD代码,实现从自然语言描述到AutoCAD结构图的高效直接转换,显著降低传统人工绘图的工作量,支持工程师简化设计表达的典型迭代流程。

原文摘要 · Abstract (English)

Structural drawings are widely used in many fields, e.g., mechanical engineering, civil engineering, etc. In civil engineering, structural drawings serve as the main communication tool between architects, engineers, and builders to avoid conflicts, act as legal documentation, and provide a reference for future maintenance or evaluation needs. They are often organized using key elements such as title/subtitle blocks, scales, plan views, elevation view, sections, and detailed sections, which are annotated with standardized symbols and line types for interpretation by engineers and contractors. Despite advances in software capabilities, the task of generating a structural drawing remains labor-intensive and time-consuming for structural engineers. Here we introduce a novel generative AI-based method for generating structural drawings employing a large language model (LLM) agent. The method incorporates a retrieval-augmented generation (RAG) technique using externally-sourced facts to enhance the accuracy and reliability of the language model. This method is capable of understanding varied natural language descriptions, processing these to extract necessary information, and generating code to produce the desired structural drawing in AutoCAD. The approach developed, demonstrated and evaluated herein enables the efficient and direct conversion of a structural drawing's natural language description into an AutoCAD drawing, significantly reducing the workload compared to current working process associated with manual drawing production, facilitating the typical iterative process of engineers for expressing design ideas in a simplified way.

结构图生成大模型应用RAGAutoCAD

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。