Standard part three-dimensional model rapid automatic modeling method based on agent skill chain
By using the intelligent agent skill chain approach, end-to-end automated modeling from standard part electronic documents to 3D models is achieved, solving the problems of low efficiency and fragmented toolchain in traditional modeling, improving modeling efficiency and robustness, and is applicable to a variety of CAD software and intelligent agent frameworks.
Patent Information
- Application Number
- CN202611291685.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional standard parts 3D modeling is inefficient, has a high barrier to entry, and has a fragmented toolchain, resulting in time-consuming modeling work that is difficult for non-professional engineers to participate in.
The intelligent agent skill chain approach is adopted. Structured parameters are extracted through the document parsing module, and a 3D modeling instruction script is generated using the intelligent agent inference engine. The script is then executed in the target CAD software. Combined with an anomaly self-correction mechanism, end-to-end automated modeling is achieved.
It significantly improves modeling efficiency, lowers the programming threshold, enables non-professional engineers to drive modeling through natural language, and enhances the robustness and cross-platform adaptability of the modeling process.
Smart Images

Figure CN123160765A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design (CAD) automation technology, specifically to a method for rapid automatic modeling of standard parts 3D models based on an agent skill chain. Background Technology
[0002] In fields such as machinery manufacturing, aerospace, and weaponry, 3D standard parts model libraries are a crucial foundation for digital design and manufacturing. Traditionally, the creation of 3D models for standard parts relies on professional CAD engineers, which presents the following prominent problems:
[0003] (a) Low modeling efficiency. Traditional CAD modeling requires engineers to draw each part manually. When there are many parts and complex specifications, the modeling work is highly repetitive and time-consuming.
[0004] (ii) High talent threshold. CAD secondary development requires mastery of C++, ObjectARX, .NET API or similar interfaces, with a steep learning curve that limits the participation of non-computer science engineers.
[0005] (iii) Fragmented toolchain. PDF document parsing, parameter extraction, modeling script generation, CAD software driving, and other steps need to be completed by different tools, lacking a unified automated calling mechanism. Summary of the Invention
[0006] The purpose of this invention is to provide a rapid and automatic modeling method for standard parts 3D models based on the intelligent agent skill chain, so as to solve the problems of low efficiency, high threshold and fragmented toolchain in the existing technology for standard parts modeling.
[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0008] A rapid automatic modeling method for standard parts 3D models based on an agent's skill chain includes the following steps:
[0009] S1. Obtain the electronic document of the standard part to be modeled, wherein the electronic document contains the specification parameters of the standard part;
[0010] S2. Input the electronic document into the document parsing module, and have the document parsing module extract the structured parameters of the standard part;
[0011] S3. The structured parameters are input into the agent inference engine, which generates a corresponding 3D modeling instruction script based on a preset skill document set; the skill document set includes at least one CAD tool skill document, which defines the interface call specifications of the corresponding CAD software.
[0012] S4. Send the 3D modeling instruction script to the target CAD software for execution to generate the 3D model file of the standard part.
[0013] The solution further includes: In step S3, the intelligent agent reasoning engine first performs semantic understanding on the natural language requirements input by the user, maps the natural language requirements into reference relationships to the structured parameters, and then generates corresponding modeling instruction scripts based on the CAD tool skill document.
[0014] The solution further includes: the skill document set is a centralized storage of skill documents, and each skill document is stored in a structured text format. The intelligent agent reasoning engine loads the skill document set into the reasoning context through a context injection mechanism, and automatically retrieves and calls the skill document that matches the current task during each reasoning.
[0015] The solution further includes: the skill document set also contains skill execution error handling instructions. In step 4, if an execution exception occurs during the execution of the target CAD software, an exception message is issued, and the existence of an execution error is determined based on the exception message. If an execution error exists, the corresponding skill execution error handling instructions in the skill document set are queried based on the exception message. The intelligent agent inference engine corrects the parameters or calling method of the 3D modeling instruction script and resends it to the CAD software for execution until the execution is successful or the preset number of retries is reached.
[0016] The solution further includes the following: the intelligent agent inference engine can be implemented using any of the following frameworks: Claude Code, Tencent Work Buddy, ByteDance Trae, or other AI intelligent agent frameworks.
[0017] A further aspect of the solution is that the document parsing module can be implemented using any of the following tools: the MinerU document parsing engine, the PDF.js parsing library, or other PDF parsing platforms.
[0018] The solution further includes the following: the target CAD software can be implemented using any of the following software: ZWCAD, AutoCAD, SolidWorks, or Fusion 360.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] (1) By unifying the document parsing, parameter extraction, script generation, CAD execution and other processes by calling the intelligent agent engine, end-to-end automation from electronic documents to 3D models is achieved, and modeling efficiency is significantly improved;
[0021] (2) By transforming professional tool interfaces into callable knowledge of intelligent agents through the skill document mechanism, the programming threshold of CAD secondary development is reduced, and non-professional engineers can drive modeling through natural language;
[0022] (3) The skill document mechanism enables this method to have good cross-framework transfer capability. The same set of skill documents can be adapted to various mainstream intelligent agent frameworks such as Claude Code, Tencent Work Buddy, and ByteTrae, as well as various CAD software such as ZWCAD and AutoCAD.
[0023] (4) Through the abnormal self-check and correction mechanism, the agent can autonomously handle execution errors in the modeling process, thereby improving the robustness of the modeling process.
[0024] The invention will be further explained in detail below with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0025] Figure 1 This is an overall flowchart of an embodiment of the present invention;
[0026] Figure 2 This is a flowchart illustrating the calling process of the CAD modeling execution module in an embodiment of the present invention.
[0027] Figure 3 This is a flowchart illustrating the process of the anomaly self-correction mechanism in an embodiment of the present invention. Detailed Implementation
[0028] A rapid automatic modeling method for standard parts 3D models based on agent skill chains, such as Figure 1 , Figure 2 and Figure 3 As shown, the automatic modeling method includes the following steps:
[0029] S1. Obtain the electronic document of the standard part to be modeled, wherein the electronic document contains the specification parameters of the standard part;
[0030] S2. Input the electronic document into the document parsing module, and have the document parsing module extract the structured parameters of the standard part;
[0031] S3. The structured parameters are input into the agent inference engine, which generates a corresponding 3D modeling instruction script based on a preset skill document set; the skill document set includes at least one CAD tool skill document, which defines the interface call specifications of the corresponding CAD software.
[0032] S4. Send the 3D modeling instruction script to the target CAD software for execution to generate the 3D model file of the standard part.
[0033] In step S3, the intelligent agent reasoning engine first performs semantic understanding on the natural language requirements input by the user, maps the natural language requirements into reference relationships to the structured parameters, and then generates corresponding modeling instruction scripts based on the CAD tool skill document.
[0034] Wherein: the skill document set is a centralized storage of skill documents, and each skill document is stored in a structured text format. The intelligent agent reasoning engine loads the skill document set into the reasoning context through a context injection mechanism, and automatically retrieves and calls the skill document that matches the current task during each reasoning.
[0035] In this embodiment: the skill document set also includes skill execution error handling instructions. In step 4, if an execution exception occurs during the execution of the target CAD software (e.g., the interface of the CAD software does not correspond to the skill document), an execution exception message is issued, and the existence of an execution error is determined based on the exception message. If an execution error exists, the corresponding skill execution error handling instructions in the skill document set are queried based on the exception message. The intelligent agent inference engine corrects the parameters or calling method of the 3D modeling instruction script and resends it to the CAD software for execution until the execution is successful or the preset number of retries is reached. If the exception still occurs after the preset number of retries is reached, an error is reported, execution stops, and human intervention is required.
[0036] In this embodiment, the agent inference engine can be implemented using any of the following frameworks: Claude Code, Tencent Work Buddy, ByteDance Trae, or other AI agent frameworks.
[0037] The document parsing module can be implemented using any of the following tools: MinerU document parsing engine, PDF.js parsing library, or other PDF parsing platforms.
[0038] The target CAD software can be any of the following: ZWCAD, AutoCAD, SolidWorks, or Fusion 360.
[0039] The above method proposes to use an agent as the core scheduling unit and encapsulate professional tool interfaces through a "skill document" mechanism to build an end-to-end automated pipeline from standard electronic documents to 3D models.
[0040] The overall process is as follows Figure 1 As shown, each step can be implemented using different tools depending on the actual scenario, demonstrating good flexibility and versatility.
[0041] The core modules will be explained in further detail below:
[0042] 1. Document parsing module:
[0043] The document parsing module is responsible for extracting structured parameters from the electronic documents of standard parts. Optional tools include, but are not limited to:
[0044] MinerU document parsing engine: A large-model parsing engine based on deep learning, supporting layout analysis, table restoration and text extraction of vector Chinese PDFs, suitable for structured parsing of standard documents such as national standards and navigation marks;
[0045] PDF.js parsing library: an open-source PDF parsing solution suitable for extracting text and images from general PDF documents;
[0046] Domestically developed PDF parsing platform: a parsing solution optimized for standard documents of specific formats.
[0047] Taking MinerU as an example, its parsing process can be formally described as follows:
[0048] Let the input PDF document be MinerU outputs a set of structured parameters as follows: Then we have:
[0049] (1)
[0050] Each parameter The structure is a quadruple of the form (parameter name, parameter value, unit, tolerance range):
[0051] (2)
[0052] The parameter type set includes, but is not limited to: geometric dimensions (such as hexagonal opposite sides). Total height ), thread specifications ( ), material labeling, tolerance grades, standard numbers, etc.
[0053] 2. Skill document mechanism:
[0054] The Skill document is the core abstraction layer of this invention. Each Skill document encapsulates the calling interface specification of a professional tool in a structured text format, and its structure includes: ```
[0055] Skill Name: ZWCAD 3D Modeling Skill;
[0056] Tool type: CAD modeling software;
[0057] Interface protocol: ActiveX Automation (COM);
[0058] Core Methodology:
[0059] - AddRegion(pointSet) → regionObject
[0060] - AddExtrudedSolid(region, height, draftAngle) → solidObject
[0061] - AddCylinder(centerPoint, radius, height) → cylinderObject
[0062] - BooleanOperation(mode, targetObject) → resultObject
[0063] - SendCommand(commandString) → Execution result.
[0064] Parameter encapsulation specifications:
[0065] - The three-dimensional coordinate point set is encapsulated using the VARIANT(VT_ARRAY|VT_R8) type;
[0066] - Height parameters are in mm and need to be normalized.
[0067] Error code mapping:
[0068] - Error code -2147467259: The CAD process has not started. ZWCAD needs to be started first.
[0069] Error code -2147352567: Parameter type mismatch. Please check the VARIANT wrapper format call constraints.
[0070] - The Boolean difference mode parameter is 1, and the union mode parameter is 0;
[0071] - After modeling is complete, you need to call ZoomAll() to refresh the view.
[0072] During reasoning, the agent loads skill documents into the reasoning context through a context injection mechanism:
[0073] (3)
[0074] in This serves as the basic reasoning context for the agent. For the first Each skill document. After injection, the agent automatically retrieves relevant skills during each task inference, without requiring manual configuration.
[0075] The collection of skills documents constitutes the tool knowledge base:
[0076] (4)
[0077] The same set of skill documents can be fine-tuned in format according to different agent frameworks, enabling cross-framework migration. Verification has shown that the skill document format defined in this invention is compatible with the following mainstream agent frameworks: Claude Code, Tencent WorkBuddy, ByteDance Trae, and other agent frameworks.
[0078] 3. Agent Inference Engine:
[0079] The agent inference engine is the scheduling core of the entire process and is responsible for the following tasks:
[0080] Task understanding and planning: Receiving user natural language requests and structured parameter set Understand the intent of the requirement and break it down into a sequence of executable subtasks:
[0081] (5)
[0082] in It is a sequence of subtasks, each subtask It includes the task type, target tool, and input parameters.
[0083] Script generation: Based on the sub-task sequence, call the corresponding skill documents to generate an executable script.
[0084] (6)
[0085] Taking the locking nut (GB / T 5649-2008) as an example, the modeling script generation process can be represented as follows:
[0086] Input parameters:
[0087] (7)
[0088] intelligent agents according to Generate Python script:
[0089] # Pseudocode representation, actually generated by an intelligent agent;
[0090] points = calc_hexagon(S=19) # Calculate vertex coordinates based on the hexagon's opposite side parameters
[0091] region = zwcad.AddRegion(points) # Generate a region;
[0092] prism = zwcad.AddExtrudedSolid(region, height=m) # Extrude into a hexagonal prism;
[0093] outer_cyl = zwcad.AddCylinder(center, radius=D / 2, height=m) # Outer cylinder;
[0094] union = prism.BooleanOperation(0, outer_cyl) # Boolean union;
[0095] hole = zwcad.AddCylinder(center, radius=d / 2, height=m) # Center through hole;
[0096] result = union.BooleanOperation(1, hole) # Boolean difference, generates a through hole;
[0097] zwcad.ZoomAll() # Refresh the view;
[0098] 3D modeling operations can be abstracted as a series of set operations. Let... To be based on parameters The constructed matrix outline region. For a set of superimposed volumes, For the excised body set, the final entity It can be represented as:
[0099] (8)
[0100] Boolean union operation ( )correspond Boolean difference operation ( )correspond .
[0101] 4. CAD Modeling Execution Module:
[0102] The CAD modeling execution module sends the script generated by the agent to the target CAD software for execution via an inter-process communication mechanism. This embodiment uses ZWCAD as an example, and its communication architecture is as follows: Figure 2 :
[0103] The key connection call chain is as follows:
[0104] (9)
[0105] (10)
[0106] (11)
[0107] This embodiment uses ZWCAD as the primary CAD platform. ZWCAD's ActiveX Automation interface is highly similar to AutoCAD; therefore, the skill documentation of this invention can be migrated to the AutoCAD environment after format adaptation. This invention also supports other CAD platforms such as SolidWorks and Fusion 360; only the corresponding skill documentation needs to be written.
[0108] 5. Anomaly self-correction mechanism:
[0109] During modeling execution, issues such as parameter type mismatch, CAD command blocking, and abnormal file write permissions may be encountered. This invention designs an agent-driven self-correction mechanism for these anomalies, such as... Figure 3 :
[0110] Let the execution result be ,like This will trigger the correction process:
[0111] (12)
[0112] in This is a correction script generated by the agent after querying error handling suggestions in the skill document based on the error information. After correction, it is re-executed. If it still fails after reaching the maximum number of retries (usually set to 3), a report containing error location information is output.
[0113] A key feature of this embodiment is that the entire process is implemented on a domestically developed platform, mainly reflected in:
[0114] (1) Intelligent agent framework: The core scheduling engine is an AI intelligent agent framework independently developed by domestic enterprises / institutions, which has complete autonomy and controllability;
[0115] (2) Document parsing: The domestic MinerU large model document parsing engine is selected, which supports high-accuracy parsing of vector Chinese PDFs;
[0116] (3) CAD platform: The domestic ZWCAD is used as the main modeling platform. Its ActiveX interface is highly compatible with AutoCAD, and at the same time, it provides a feasible engineering verification path for domestic substitution.
[0117] (4) Skills documentation: packaged in a standardized text format and does not rely on any overseas commercial toolchain.
[0118] Against the backdrop of domestic substitution, this invention provides manufacturing enterprises with a fully domestic technology path from standard document parsing to CAD modeling.
[0119] Implementation Case: Automatic Modeling of Lock Nuts for Pipe Fittings (GB / T 5649-2008)
[0120] (1) Input the GB / T 5649-2008 standard PDF document into the MinerU parsing module;
[0121] (2) MinerU extracts structured parameters: hexagonal opposite sides S=19mm, total height m=19.5mm, thread specification M16×1.5, through hole diameter d=13mm;
[0122] (3) After receiving the parameters, the agent queries [Skill]_ZWCAD to generate a modeling Python script;
[0123] (4) The script is sent to ZWCAD for execution via the pywin32 COM bridge;
[0124] (5) ZWCAD completes the following steps in sequence: hexagonal region creation, hexagonal prism extrusion, outer cylinder superposition, and center through hole difference set, generating a three-dimensional solid model and saving it as a .dwg file.
[0125] (6) Simultaneously implement the modeling verification of gasket-type parts, and successfully complete the modeling using the same technical path, verifying the universality of the working paradigm.
[0126] Implementation Case Conclusion: The above implementation cases verify the feasibility of the technical route proposed in this invention, and realize end-to-end automation from standard part PDF documents to 3D models. The intelligent agent undertakes the core scheduling responsibilities of requirement understanding, task planning, script generation, and error correction throughout the entire process.
[0127] The core inventive points of this embodiment can be summarized in the following three points:
[0128] First, an agent-driven end-to-end skill chain orchestration mechanism. Using the agent inference engine as the core scheduling unit, the mechanism unifies the orchestration of PDF parsing, parameter extraction, script generation, CAD execution, and other processes through a skill document mechanism, achieving an automated closed loop of "input standard document → output 3D model".
[0129] Second, the skill documentation mechanism enables agents to permanently remember tool interfaces. The interface call specifications of professional tools are encapsulated into structured skill documents, and context injection enables agents to reuse tool interfaces across sessions, solving the problem of repeatedly configuring tool interfaces in each session in traditional methods.
[0130] Third, the agent's robust self-correcting execution mechanism. The agent can query the skill document for processing suggestions based on the error information returned by CAD execution, automatically correct script parameters and retry, thus improving the reliability of the automated modeling process.
[0131] The above three inventive points work together to form the standard part rapid automatic modeling technology solution required in this embodiment.
Claims
1. A method for rapid automatic modeling of a standard part three-dimensional model based on an agent skill chain, characterized in that, The method includes the following steps: S1. Obtain the electronic document of the standard part to be modeled, wherein the electronic document contains the specification parameters of the standard part; S2. Input the electronic document into the document parsing module, and have the document parsing module extract the structured parameters of the standard part; S3. The structured parameters are input into the agent inference engine, which generates a corresponding 3D modeling instruction script based on a preset skill document set; the skill document set includes at least one CAD tool skill document, which defines the interface call specifications of the corresponding CAD software. S4. Send the 3D modeling instruction script to the target CAD software for execution to generate the 3D model file of the standard part.
2. The method of claim 1, wherein, In step S3, the intelligent agent reasoning engine first performs semantic understanding on the natural language requirements input by the user, maps the natural language requirements into reference relationships to the structured parameters, and then generates corresponding modeling instruction scripts based on the CAD tool skill document.
3. The method of claim 1, wherein, The skill document set is a centralized storage of skill documents. Each skill document is stored in a structured text format. The intelligent agent reasoning engine loads the skill document set into the reasoning context through a context injection mechanism, and automatically retrieves and calls the skill document that matches the current task during each reasoning.
4. The method of claim 1, wherein, The skill document set also includes skill execution error handling instructions. In step 4, if an execution exception occurs during the execution of the target CAD software, an exception message is issued, and the existence of an execution error is determined based on the exception message. If an execution error exists, the corresponding skill execution error handling instructions in the skill document set are queried based on the exception message. The intelligent agent inference engine corrects the parameters or calling method of the 3D modeling instruction script and resends it to the CAD software for execution until the execution is successful or the preset number of retries is reached.
5. The method according to any one of claims 1 to 4, characterized in that, The agent inference engine can be implemented using any of the following frameworks: Claude Code, Tencent Work Buddy, ByteDance Trae, or other AI agent frameworks.
6. The method according to any one of claims 1 to 4, characterized in that, The document parsing module can be implemented using any of the following tools: MinerU document parsing engine, PDF.js parsing library, or other PDF parsing platforms.
7. The method according to any one of claims 1 to 4, wherein The target CAD software can be implemented using any of the following software: ZWCAD, AutoCAD, SolidWorks, or Fusion 360.
