Computer-aided design drawing rollover method, device and equipment, medium and product
By using an agent-driven approach, a knowledge network is constructed and verified in real time to generate target processing code, which solves the problem of low efficiency and accuracy in existing mold-making technologies and achieves an efficient and accurate mold-making process.
Patent Information
- Application Number
- CN202511053112.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-29
- Publication Date
- 2025-10-31
AI Technical Summary
In existing technologies, the secondary development plug-in method based on rule logic has low efficiency and accuracy in the model conversion process. In particular, when faced with complex graphic element relationships, users need to manually adjust the rule logic, which increases the workload.
By adopting an agent-driven approach, the initialization operation is triggered by acquiring drawing files, parsing and constructing a knowledge network, verifying and generating target processing code in real time, realizing human-machine collaborative work, and efficiently combining automated processing with manual intervention. The mold-making process is optimized through iterative process optimization.
It significantly improves the efficiency and accuracy of mold making, reduces the user's workload, and achieves automated closed-loop optimization by rapidly converging to reliable results through iterative verification.
Smart Images

Figure CN120876759A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer-aided design drawing copying technology, and in particular to a method, apparatus, equipment, medium and product for computer-aided design drawing copying. Background Technology
[0002] In engineering design, construction, and manufacturing, Computer-Aided Design (CAD) drawings serve as the core carrier of traditional design outcomes, containing rich geometric information and engineering semantics. However, with the rapid development of digital and intelligent technologies, simple two-dimensional CAD drawings are no longer sufficient to meet the demands of modern engineering for three-dimensional visualization, data collaboration, and information integration. Therefore, CAD drawing reconstruction—that is, reconstructing three-dimensional models or structured data based on two-dimensional drawings—has become a key technological link connecting traditional design with intelligent applications.
[0003] Currently, the primary method for CAD drawing model conversion is a rule-based, logic-driven secondary development plug-in approach. This solution involves developing a dedicated plug-in on the CAD platform, setting rule logic for geometric feature extraction, element classification, and parameter mapping, preprocessing the original drawing data, identifying elements, objectifying them, and extracting information parameters, ultimately achieving automated model conversion. However, this rule-driven plug-in method relies on manually pre-setting a complete rule library. When faced with complex element relationships beyond the pre-set rules, users need to manually adjust the rule logic and even re-parse the drawing data, increasing their workload and resulting in low efficiency and accuracy in model conversion. Summary of the Invention
[0004] This application provides a method, apparatus, device, medium, and product for computer-aided design drawing copying, to solve the technical problem of low efficiency and accuracy in copying caused by existing technologies.
[0005] In a first aspect, this application provides a method for converting computer-aided design drawings into molds, including:
[0006] Obtain the drawing file and trigger the agent initialization operation based on the drawing file;
[0007] The intelligent agent parses the drawing file to obtain intermediate results of the model making process;
[0008] By extracting and processing the drawing file, the structural information of the graphic elements is obtained;
[0009] A knowledge network is constructed based on the primitive structured information, and the primitive structured information is initialized and stored based on the knowledge network.
[0010] The intermediate results of the mold-making process are displayed, and in response to the user's interactive operations on the intermediate results of the mold-making process, verification input information and mold-making result confirmation information are obtained;
[0011] Real-time verification is performed based on the verification input information and the knowledge network to obtain intelligent prompt information;
[0012] When the mold conversion result confirmation information is detected as unsuccessful, the user's problem description operation is responded to, and the problem to be improved is obtained;
[0013] Based on the identified problems to be improved, a code generation operation is performed to determine the target processing code;
[0014] The agent is updated according to the target processing code, and the process jumps to the step of parsing the drawing file through the agent to obtain the intermediate result of the mold making, until the mold making result confirmation information is passed, and the final mold making result is output.
[0015] In one possible design, constructing a knowledge network based on the primitive structured information includes:
[0016] Based on the structured information of the primitives, network feature extraction processing is performed to obtain entity data, relation data, and attribute data;
[0017] A three-layer knowledge network is constructed based on the entity data, the relation data, and the attribute data.
[0018] In one possible design, the step of performing code generation operations based on the problem to be improved and determining the target processing code includes:
[0019] Based on the issues to be improved, the requirements are analyzed to obtain the code generation requirements;
[0020] Based on the code generation requirements, code is written and processed to obtain the target processing code.
[0021] One possible design also includes:
[0022] When the confirmation information of the mold flipping result is detected as unsuccessful, multimodal constraint information is obtained in response to the user's multimodal interaction operation.
[0023] Based on the multimodal constraint information and the drawing file, determine the location and type of the target element;
[0024] The knowledge network is updated based on the target primitive position and the target primitive type to obtain the updated knowledge network. Then, the process jumps to the step of performing real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information, until the final model conversion result is output.
[0025] One possible design also includes:
[0026] Retrieve multiple drawing files;
[0027] The intelligent agent performs state marking processing on the multiple drawing files to obtain an initial task queue;
[0028] The task queue will sequentially jump to the step of triggering the agent initialization operation based on the drawing file.
[0029] One possible design also includes:
[0030] When the mold-making result confirmation information is detected as passed, the intermediate mold-making result is output as the final mold-making result.
[0031] Secondly, this application provides a computer-aided design drawing copying device, comprising:
[0032] An initialization module is used to acquire drawing files and trigger agent initialization operations based on the drawing files;
[0033] The parsing module is used to parse the drawing file through the intelligent agent to obtain intermediate results of the model making;
[0034] The extraction module is used to extract and process the drawing file to obtain the structural information of the graphic elements;
[0035] A knowledge network construction module is used to construct a knowledge network based on the primitive structured information, and to initialize and store the primitive structured information based on the knowledge network.
[0036] The display module is used to display the intermediate results of the mold flipping and respond to the user's interactive operation on the intermediate results of the mold flipping to obtain the verification input information and the confirmation information of the mold flipping result;
[0037] The real-time verification module is used to perform real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information.
[0038] The module for obtaining issues to be improved is used to obtain issues to be improved in response to the user's problem description operation when the confirmation information of the mold flipping result is detected as unsuccessful.
[0039] The target processing code acquisition module is used to perform code generation operations based on the problem to be improved and determine the target processing code.
[0040] The final model conversion result output module is used to update the agent according to the target processing code, and jump to the step of parsing the drawing file through the agent to obtain intermediate model conversion results, until the model conversion result confirmation information is passed, and then output the final model conversion result.
[0041] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0042] The memory stores computer-executed instructions;
[0043] The processor executes computer execution instructions stored in the memory to implement the computer-aided design drawing modeling method provided in the first aspect of this application.
[0044] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the computer-aided design drawing copying method provided in the first aspect of this application.
[0045] Fifthly, this application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the computer-aided design drawing copying method provided in the first aspect of this application.
[0046] This application provides a method, apparatus, device, medium, and product for computer-aided design drawing conversion. The method includes: acquiring a drawing file and triggering an intelligent agent initialization operation based on the drawing file; parsing the drawing file through the intelligent agent to obtain intermediate conversion results; extracting and processing the drawing file to obtain element structure information; constructing a knowledge network based on the element structure information and initializing and storing the element structure information based on the knowledge network; displaying the intermediate conversion results and responding to user interaction operations on the intermediate conversion results to obtain verification input information and conversion result confirmation information; performing real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information; when the conversion result confirmation information is detected as failing, responding to the user's problem description operation to obtain the problem to be improved; performing code generation operation based on the problem to be improved to determine the target processing code; updating the intelligent agent based on the target processing code and jumping to the step of parsing the drawing file through the intelligent agent to obtain intermediate conversion results, until the conversion result confirmation information is passing, and outputting the final conversion result. The above method achieves the following technical effects: When the mold-making result confirmation information is found to be unsuccessful, the user's problem description is used to obtain the problem to be improved, and the computer generates target processing code for the problem to be improved. By constructing a human-machine collaborative working mechanism and introducing interactive auxiliary functions in the generation of target processing code for the problem to be improved, the user's workload can be reduced, while achieving an efficient combination of automated processing and manual intervention, thereby significantly improving the efficiency and accuracy of mold-making. Based on the real-time updating of the intelligent agent based on the target processing code, an automated closed-loop optimization and rapid iterative verification are performed through the iterative process of "problem detection-code generation-re-execution". The improvement effect is verified in real time in each loop, accelerating convergence to the target result, which can improve the efficiency and accuracy of mold-making, and finally output a fully verified and reliable mold-making result. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0048] Figure 1 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 1 ;
[0049] Figure 2 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 2 ;
[0050] Figure 3 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 3 ;
[0051] Figure 4 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 4 ;
[0052] Figure 5 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 5 ;
[0053] Figure 6 A schematic diagram of the structure of the computer-aided design drawing mold-making device provided in the embodiments of this application;
[0054] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0055] Explanation of reference numerals in the attached figures:
[0056] 801 - Processor; 802 - Memory; 803 - Communication components; 804 - Bus.
[0057] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.
[0059] In the embodiments of this application, the terms "first" and "second" are used to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply difference. It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner. In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more.
[0060] It should be noted that the computer-aided design drawing copying method provided in this application embodiment is only an example, and the computer-aided design drawing copying method may include more or less content.
[0061] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0062] First, some terms used in the embodiments of this application will be explained.
[0063] A primitive is the smallest operable unit that constitutes a graphic or drawing, including geometric primitives, annotation primitives, and container primitives. Geometric primitives are the basic graphic elements that describe shapes, annotation primitives are auxiliary elements that carry semantic information, and container primitives are the logical units that organize other primitives. In data structures, primitives are usually stored as objects, containing geometric parameters and attribute data, and are the underlying operational objects of CAD, Building Information Modeling (BIM), and Geographic Information System (GIS).
[0064] Human-Computer Interaction Engine: Supports multimodal input and visual output, integrates user interface and dynamic display of intermediate results, features intelligent input constraints and predictive suggestions, and can verify input validity in real time based on a knowledge network. Input includes user multimodal input and agent processing results; output includes visualization of intermediate results and feedback of interactive commands.
[0065] Intelligent Agent: The core control unit, a rule- and data-driven task scheduling system, enables intelligent allocation of data and control flows between modules. It also supports dynamic requirement parsing, triggering code generation and module reconfiguration. The intelligent agent can schedule the function implementation engine, code generation engine, knowledge network, and detection and recognition engine, and obtain feedback information. Inputs include the output of the human-computer interaction engine and structured knowledge from the knowledge base; outputs include module execution instructions, requirement analysis results, and knowledge base update instructions.
[0066] Functionality Engine: An end-to-end model conversion core module based on CAD drawings, supporting the parsing and extraction of graphic element information, outputting intermediate model conversion results for interactive display, and synchronously transmitting structured drawing data to the knowledge network. Inputs include drawing files and agent scheduling instructions; outputs include model conversion result files and structured graphic element information.
[0067] Code Generation Engine: An automated code generation module based on requirements analysis results. It supports dynamic expansion of new object processing logic and can generate executable code compatible with CAD systems, directly updating the processing logic of the function implementation engine. Inputs include agent requirement descriptions and primitive structured information; outputs include executable code.
[0068] Knowledge Network: Capable of constructing a structured knowledge network containing CAD entity data, relational data, and attribute data, supporting real-time incremental updates, and providing data support for agent decision-making and human-computer interaction engine prompts. Inputs include data parsed by the function implementation engine and agent update instructions; outputs include knowledge network instance data and a professional domain rule base.
[0069] Detection and Recognition Engine: Based on zero-shot detection technology using a multimodal large model, it supports primitive recognition with joint input of "image + text attributes" and can achieve reverse conversion from CAD images to structured data. Input includes drawing image data and intelligent agent detection instructions; output includes primitive location / type detection results and CAD format conversion data.
[0070] In order to clearly understand the technical solution of this application, the solutions of the prior art will be described in detail.
[0071] Currently, the primary method for CAD drawing model conversion is based on rule-based secondary development plug-ins. This approach involves developing a dedicated plug-in on the CAD platform, setting rule logic for geometric feature extraction, element classification, and parameter mapping, preprocessing the original drawing data, identifying elements, objectifying them, and extracting information parameters, ultimately achieving automated model conversion. However, this method relies on manually pre-setting a complete rule base. When faced with complex element relationships beyond the pre-set rules, users need to manually adjust the rule logic and even re-parse the drawing data, increasing their workload and resulting in low efficiency and accuracy in model conversion.
[0072] In summary, how to design a technical solution to the problem of low efficiency and accuracy of mold making caused by existing technologies is the problem that this application urgently needs to solve.
[0073] Therefore, in view of the above-mentioned technical problems existing in the prior art, the embodiments of this application provide a method, apparatus, equipment, medium and product for computer-aided design drawing copying, which aims to effectively improve the efficiency and accuracy of copying.
[0074] The following describes the application scenarios of the computer-aided design drawing copying method, apparatus, equipment, medium, and product provided in the embodiments of this application. The following application scenarios are merely examples, intended to help those skilled in the art understand the technical content of this application, but do not imply that the embodiments of this application cannot be used in other devices, systems, environments, or scenarios.
[0075] 1) Architecture and Civil Engineering: The computer-aided design drawing conversion method, device, equipment, medium and product provided in this embodiment can convert two-dimensional architectural drawings into three-dimensional models, which can be used for construction simulation, collision detection, operation and maintenance management and reconstruction of three-dimensional models of ancient buildings for the protection of historical buildings.
[0076] 2) Mechanical Design and Manufacturing: The computer-aided design drawing conversion method, device, equipment, medium and product provided in this embodiment can convert engineering drawings into parametric three-dimensional models, supporting CNC machining and 3D printing.
[0077] 3) Industrial equipment and pipelines: The computer-aided design drawing conversion method, device, equipment, medium and product provided in this embodiment can convert factory pipeline drawings into three-dimensional pipeline models and optimize pipeline layout.
[0078] 4) Geographic Information System: The computer-aided design drawing conversion method, device, equipment, medium and product provided in this embodiment can convert CAD topographic maps into three-dimensional geographic models for smart city analysis and disaster simulation.
[0079] Figure 1 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 1 The computer-aided design drawing conversion method provided in this embodiment includes the following steps:
[0080] S101. Obtain the drawing file and trigger the agent initialization operation based on the drawing file.
[0081] In this embodiment, the user imports a drawing file, the human-computer interaction engine receives the imported drawing file, and triggers the intelligent agent initialization operation based on the drawing file.
[0082] S102. The drawing file is parsed by the intelligent agent to obtain the intermediate result of the mold making.
[0083] In this embodiment, the intelligent agent scheduling function enables the engine to parse the drawing file, obtain intermediate model conversion results, and display them in real time through the human-computer interaction engine. Optionally, the intermediate model conversion results are 3D model preview data.
[0084] S103. Obtain the structural information of graphic elements by extracting and processing the drawing file.
[0085] In this embodiment, the engine extracts and processes the drawing file through the intelligent agent scheduling function to obtain the primitive structure information, which includes primitive coordinates and primitive type.
[0086] As an optional implementation, the agent scheduling function extracts primitive structured information through the following steps: 1) Loading drawing files by calling a CAD / PDF parsing engine; 2) Applying computer vision algorithms to detect primitive boundaries and obtain primitive geometric features, such as pixel coordinates of line segments, arcs, or text; 3) Extracting non-geometric features, such as color, line type, and layers, through Optical Character Recognition (OCR) or parsing file metadata; 4) Classifying primitive types, such as text, dimension lines, or contour lines, through a deep learning model; 5) Encoding primitive geometric features, primitive types, and primitive non-geometric features, including start / end coordinates and radius of curvature, into JSON structured data to obtain primitive structured information.
[0087] S104. Construct a knowledge network based on the structured information of the primitives, and initialize and store the structured information of the primitives based on the knowledge network.
[0088] As an optional implementation, firstly, entity nodes, such as walls, doors and windows, or labeled text, are extracted based on the primitive structure information; secondly, edges between entities are defined according to spatial and semantic relationships; thirdly, entity nodes and edges between entities are imported into a graph database, such as Neo4j, to construct a topology network; fourthly, domain knowledge is added as attributes to the corresponding nodes; fifthly, the network structure is optimized through graph algorithms, such as PageRank, to finally form a knowledge network containing geometric features, semantic associations, and business rules.
[0089] After constructing the knowledge network, the intelligent agent transmits the structured information of the primitives to the knowledge network for initial storage.
[0090] S105. Display the intermediate results of the mold flipping and respond to the user's interactive operation on the intermediate results of the mold flipping to obtain the verification input information and the confirmation information of the mold flipping results.
[0091] In this embodiment, the verification input information is the user's interactive operation on the intermediate results of the mold-making process. It can be a query, an operation, or parameterization. For example, the query is "check if the red horizontal line exists", the operation is "change the red horizontal line to blue", and the parameterization is "color is red, line is horizontal, line width is 1mm". The mold-making result confirmation information is used to indicate whether the intermediate results of the mold-making process have passed the verification.
[0092] S106. Perform real-time verification based on the input information and knowledge network to obtain intelligent prompts.
[0093] In this embodiment, the human-computer interaction engine verifies the input information in real time based on the knowledge network and provides intelligent prompts, which can be prompts or warnings.
[0094] S107. When the mold conversion result confirmation information is detected as unsuccessful, the user's problem description operation is responded to and the problem to be improved is obtained.
[0095] In this embodiment, the intermediate results of the modeling process are confirmed by the modeling result confirmation information. If there are any items that fail the verification, such as missing the detection of multiple lines of text structure, the user needs to describe the reason for the problem and obtain the problem to be improved.
[0096] When the mold-making result confirmation information is found to be unsuccessful, the user's problem description is used to identify the issues to be improved, and the computer generates target processing code for these issues. By constructing a human-machine collaborative working mechanism and introducing interactive assistance functions in the stage of generating target processing code for the issues to be improved, the user's workload can be reduced, while achieving an efficient combination of automated processing and manual intervention, thereby significantly improving the efficiency and accuracy of mold-making.
[0097] S108. Perform code generation operation based on the problem to be improved, and determine the target processing code.
[0098] As an optional implementation method, the characteristics of the problem to be improved are first extracted by parsing the requirements document or user input; then, candidate code snippets are generated according to the type of problem to be improved by matching a preset code template library or calling an AI code generation model; next, the effectiveness of the candidate code snippets is verified by static analysis and test cases; then, the applicable scope of the code is automatically marked; finally, the target processing code is output.
[0099] S109. Update the agent according to the target processing code, and jump to the step of parsing the drawing file through the agent to obtain the intermediate result of the model making, until the model making result confirmation information is passed, and output the final model making result.
[0100] In this embodiment, after obtaining the target processing code, the function implementation engine scheduled by the agent is updated according to the target processing code to obtain the updated function implementation engine. The updated function implementation engine then reprocesses the intermediate results of the mold flipping that have not passed the verification, jumps to S102, and executes S102-S108 in a loop until the mold flipping result confirmation information is passed. Then, the intermediate results of the mold flipping process in this mold flipping process are taken as the final mold flipping result.
[0101] Based on the real-time updating of the intelligent agent using the target processing code, the automated closed-loop optimization and rapid iterative verification are carried out through the iterative process of "problem detection-code generation-re-execution". The improvement effect is verified in real time in each loop, which accelerates the convergence to the target result, thereby improving the efficiency and accuracy of the modeling process, and finally outputting a fully verified and reliable modeling result.
[0102] This application provides a computer-aided design drawing conversion method, comprising: acquiring a drawing file and triggering an intelligent agent initialization operation based on the drawing file; parsing the drawing file through the intelligent agent to obtain intermediate conversion results; extracting and processing the drawing file to obtain element structure information; constructing a knowledge network based on the element structure information and initializing and storing the element structure information based on the knowledge network; displaying the intermediate conversion results and responding to user interaction operations on the intermediate conversion results to obtain verification input information and conversion result confirmation information; performing real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information; when the conversion result confirmation information is detected as failing, responding to the user's problem description operation to obtain the problem to be improved; performing code generation operation based on the problem to be improved to determine the target processing code; updating the intelligent agent based on the target processing code and jumping to the step of parsing the drawing file through the intelligent agent to obtain intermediate conversion results, until the conversion result confirmation information is passing, and outputting the final conversion result. The above method achieves the following technical effects: When the mold-making result confirmation information is found to be unsuccessful, the user's problem description is used to obtain the problem to be improved, and the computer generates target processing code for the problem to be improved. By constructing a human-machine collaborative working mechanism and introducing interactive auxiliary functions in the generation of target processing code for the problem to be improved, the user's workload can be reduced, while achieving an efficient combination of automated processing and manual intervention, thereby significantly improving the efficiency and accuracy of mold-making. Based on the real-time updating of the intelligent agent based on the target processing code, an automated closed-loop optimization and rapid iterative verification are performed through the iterative process of "problem detection-code generation-re-execution". The improvement effect is verified in real time in each loop, accelerating convergence to the target result, which can improve the efficiency and accuracy of mold-making, and finally output a fully verified and reliable mold-making result.
[0103] Figure 2A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 2 In the computer-aided design drawing conversion method provided in this embodiment, S104 includes the following steps:
[0104] S201. Based on the structured information of the graph primitives, perform network feature extraction processing to obtain entity data, relation data, and attribute data.
[0105] In this embodiment, firstly, geometric objects, such as line segments and text, are parsed from the structured information of primitives to obtain entity data as candidate entities; secondly, relationships between entities are generated based on spatial topology and semantic rules to obtain relationship data. Spatial topology includes intersection and containment, and semantic rules include label pointing; finally, the inherent attributes and derived attributes of primitives are extracted to obtain attribute data. Inherent attributes include line type and color, and derived attributes include length = end point coordinates - start point coordinates.
[0106] S202. Construct a three-layer knowledge network based on entity data, relation data, and attribute data.
[0107] In this embodiment, firstly, an entity layer is constructed, mapping entity data to knowledge network nodes and assigning them unique Uniform Resource Identifiers (URIs). Secondly, a relation layer is constructed, generating semantic edges with types based on relation data and associating them with corresponding entity nodes. Next, an attribute layer is constructed, attaching attribute data as attribute annotations to entity data or relation data. Finally, the three layers are integrated, and unified storage and analysis of entities, relations, and attributes are achieved through graph databases or knowledge graph tools, forming a queryable three-layer knowledge network.
[0108] A three-tiered knowledge network is constructed based on entity data, relational data, and attribute data. The data hierarchy is clear, and entity data, relational data, and attribute data are stored separately, which facilitates accurate querying and maintenance. By explicitly defining relational data and attribute data, machine understandability can be enhanced. The attribute data layer can be dynamically expanded to quickly adapt to the needs of different business scenarios.
[0109] Figure 3 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 3 In the computer-aided design drawing conversion method provided in this embodiment, S108 includes the following steps:
[0110] S301. Based on the issues to be improved, perform requirement analysis and processing to obtain code generation requirements.
[0111] In this embodiment, the intelligent agent analyzes the features of the problem to be improved, such as identifying the "multi-line text" type, extracts key attributes, including text length, format requirements and semantic context, and transforms the key attributes into structured code generation requirements. The code generation requirements explicitly specify the output target, constraints and associated parameters.
[0112] S302. Based on the code generation requirements, write and process the code to obtain the target processing code.
[0113] In this embodiment, after obtaining the code generation requirements, the intelligent agent schedules the code generation engine to perform code writing and processing according to the code generation requirements, thereby obtaining the target processing code. The target processing code is targeted processing code, for example, the target processing code is a text recognition algorithm.
[0114] Based on the code generation requirements, targeted target processing code is obtained, which strictly corresponds to the problem scenario and can avoid redundant logic.
[0115] Figure 4 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 4 Based on the above embodiments, the computer-aided design drawing conversion method provided in this embodiment further includes the following steps:
[0116] S401. When the mold conversion result confirmation information is detected as not passing, multimodal constraint information is obtained in response to the user's multimodal interaction operation.
[0117] In this embodiment, the multimodal interaction operation includes selecting an image region through the human-computer interaction engine, uploading a specified image, and / or inputting an attribute description, for example, the input attribute description is "red R100 text".
[0118] When the verification result of the model conversion is detected as failing, and the user's description of the problem is not accurate enough, resulting in an unclear description of the problem to be improved, that is, when the agent recognizes primitives that cannot be processed in the normal process, such as hidden structures in complex images, the agent is triggered to schedule the detection and recognition engine. The user can instruct the agent to adjust the intermediate results of the subsequent model conversion through multimodal interaction. The user can directly specify in the image, draw on the spot, or upload an image to replace the problem description operation. For example, after uploading an image, the user can enter "The image A I uploaded is a new type of window. Please modify the intermediate results of the model conversion according to this window", or directly specify the image of the red area as the new type of window.
[0119] S402. Based on the multimodal constraint information and drawing files, determine the location and type of the target element.
[0120] In this embodiment, the target primitives are the primitives involved in the multimodal constraint information and the primitives that need to be modeled and copied pre-defined by the system in the drawing file. After obtaining the multimodal constraint information, the detection and recognition engine outputs the target primitive position and target primitive type based on the multimodal constraint information and the drawing file.
[0121] S403. Update the knowledge network according to the target primitive position and target primitive type to obtain the updated knowledge network, and jump to the step of performing real-time verification based on the verification input information and knowledge network to obtain intelligent prompt information, until the final model conversion result is output.
[0122] In this embodiment, after converting the target element location and target element type into CAD format, the knowledge network is updated to obtain the updated knowledge network, and then jumps to S106 to update the intermediate results of the mold making process. When the mold making result confirmation information is passed, the intermediate results of the mold making process are taken as the final mold making result.
[0123] Based on the real-time updating of the structured knowledge network according to the target primitive location and type, and through an iterative process of "multimodal interactive operation - target primitive location and type - update knowledge network - re-execute real-time verification," this method supports intelligent response to requirement changes during the modeling process, achieving an end-to-end closed-loop optimization mechanism and forming a complete data closed loop. This method can handle more complex drawings, and the real-time updated structured knowledge network can help users improve modeling efficiency and accuracy.
[0124] Figure 5 A flowchart illustrating the computer-aided design drawing modeling method provided in this application embodiment. Figure 5 Based on the above embodiments, the computer-aided design drawing conversion method provided in this embodiment further includes the following steps:
[0125] S501, Obtain multiple drawing files.
[0126] In this embodiment, the human-computer interaction engine receives multiple drawing files imported by the user.
[0127] S502. The intelligent agent performs state marking processing on multiple drawing files to obtain the initial task queue.
[0128] In this embodiment, the agent marks multiple drawing files as "pending processing" to obtain an initial task queue.
[0129] S503. Jump sequentially to the steps of triggering agent initialization based on drawing files according to the initial task queue.
[0130] In this embodiment, after obtaining the initial task queue, the system jumps to S101 sequentially according to the order of each drawing file in the initial task queue to execute the model-making step and output the final model-making result corresponding to each drawing file.
[0131] When multiple drawing files are available, a task queue is generated, and the modeling steps are executed sequentially according to the order of each drawing file in the task queue, outputting the final modeling result corresponding to each drawing file. The task queue ensures that multiple drawings are processed in an orderly manner, avoiding resource contention. Furthermore, the modeling result for each drawing is output independently, facilitating problem localization and result verification.
[0132] Based on the above embodiments, this embodiment provides a method for computer-aided design drawing model making, which further includes the following steps:
[0133] S601. When the mold conversion result confirmation information is detected as passed, the intermediate mold conversion result is output as the final mold conversion result.
[0134] In this embodiment, if the mold-making result confirmation information is passed, the intermediate mold-making result is output as the final mold-making result.
[0135] When the mold conversion result confirmation information is detected as passed, the intermediate mold conversion result is output as the final mold conversion result. This can reduce redundant calculations and output the confirmed reliable result, thereby improving the efficiency and accuracy of mold conversion.
[0136] By using an intelligent agent as the central control unit, the entire process of human-computer interaction, function execution, knowledge management, code generation, and detection and recognition is scheduled, thus constructing a closed-loop optimized automated model-making system.
[0137] Figure 6 A schematic diagram of the computer-aided design drawing mold-making device provided in this application embodiment. (See attached diagram.) Figure 6 As shown, in this embodiment, the computer-aided design drawing conversion device includes:
[0138] Initialization module 701 is used to acquire drawing files and trigger agent initialization operations based on the drawing files;
[0139] The parsing module 702 is used to parse the drawing file through an intelligent agent to obtain intermediate results of the model making process;
[0140] Extraction module 703 is used to extract and process graphic elements from drawing files to obtain structured information.
[0141] The knowledge network construction module 704 is used to construct a knowledge network based on the primitive structured information and to initialize and store the primitive structured information based on the knowledge network.
[0142] The display module 705 is used to display the intermediate results of the mold-making process and respond to the user's interactive operations on the intermediate results of the mold-making process to obtain the verification input information and the confirmation information of the mold-making results.
[0143] The real-time verification module 706 is used to perform real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information.
[0144] The module 707 for obtaining issues to be improved is used to obtain issues to be improved in response to the user's problem description operation when the confirmation information of the mold conversion result is detected as unsuccessful.
[0145] The target processing code acquisition module 708 is used to perform code generation operations based on the problem to be improved and determine the target processing code.
[0146] The final model conversion result output module 709 is used to update the agent according to the target processing code and jump to the step of parsing the drawing file through the agent to obtain the intermediate model conversion result until the model conversion result confirmation information is passed, and then outputs the final model conversion result.
[0147] The computer-aided design drawing template-making device provided in this embodiment can perform... Figure 1 The technical solution of the computer-aided design drawing modeling method embodiment shown herein, its implementation principle and technical effect are similar to Figure 1 The embodiments of the computer-aided design drawing modeling method shown are similar and will not be described in detail here.
[0148] Meanwhile, the computer-aided design drawing copying device provided by the present invention further refines the computer-aided design drawing copying device based on the computer-aided design drawing copying device provided in the previous embodiment.
[0149] Optionally, in this embodiment, the knowledge network construction module 704 is further configured to:
[0150] Network feature extraction is performed based on the structured information of graph primitives to obtain entity data, relation data, and attribute data;
[0151] A three-tiered knowledge network is constructed based on entity data, relational data, and attribute data.
[0152] Optionally, in this embodiment, the target processing code acquisition module 708 is further configured to:
[0153] Based on the issues to be improved, the requirements are analyzed and processed to obtain the code generation requirements;
[0154] Based on the code generation requirements, code is written and processed to obtain the target processing code.
[0155] Optionally, this embodiment also includes:
[0156] The multimodal constraint information acquisition module is used to obtain multimodal constraint information in response to the user's multimodal interaction operation when the confirmation information of the mold conversion result is detected as unsuccessful.
[0157] The target element location and target element type acquisition module is used to determine the target element location and target element type based on multimodal constraint information and drawing files;
[0158] The knowledge network update module is used to update the knowledge network according to the target primitive position and target primitive type, obtain the updated knowledge network, and jump to the step of performing real-time verification based on the verification input information and knowledge network to obtain intelligent prompt information, until the final model conversion result is output.
[0159] Optionally, this embodiment also includes:
[0160] The module for acquiring multiple drawing files is used to acquire multiple drawing files.
[0161] The status marking module is used to perform status marking processing on multiple drawing files by an intelligent agent to obtain an initial task queue;
[0162] The jump module is used to jump sequentially from the initial task queue to the step that triggers the agent initialization operation based on the drawing file.
[0163] Optionally, this embodiment also includes:
[0164] The confirmation information module is used to output the intermediate mold-making result as the final mold-making result when the confirmation information of the mold-making result is detected as passed.
[0165] Based on the above embodiments, in an optional embodiment of this application, the function implementation engine and the code generation engine can be replaced by a pre-trained multimodal large model, that is, the pre-trained multimodal large model completes the relevant steps performed by the function implementation engine and the code generation engine described in the above embodiments.
[0166] The computer-aided design drawing copying device provided in this embodiment can execute the technical solution of the above-described computer-aided design drawing copying method embodiment. Its implementation principle and technical effect are similar to those of the above-described computer-aided design drawing copying method embodiment, and will not be described in detail here.
[0167] Figure 7This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device is intended for use with various electronic devices capable of performing computer-aided design drawing copying methods, such as microcomputers, single-chip microcomputers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0168] like Figure 7 As shown, the electronic device includes at least one processor 801 and a memory 802. The electronic device also includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus 804.
[0169] In the specific implementation process, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to execute the computer-aided design drawing copying method executed on the electronic device side as described above.
[0170] The specific implementation process of processor 801 can be found in the above embodiment of the computer-aided design drawing mold making method. Its implementation principle and technical effect are similar, and will not be repeated here.
[0171] In the above embodiments, it should be understood that the processor 801 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor 801 can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0172] The memory 802 may include high-speed RAM memory, and may also include non-volatile memory (NVM), such as at least one disk storage.
[0173] Bus 804 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Bus 804 can be divided into address bus, data bus, control bus, etc. For ease of illustration, the bus 804 in the accompanying drawings of this application is not limited to only one bus or one type of bus.
[0174] The above description addresses the functions implemented by electronic devices and main control devices, and introduces the solutions provided in the embodiments of this application. It is understood that, in order to achieve the above functions, the electronic device or main control device includes hardware structures and / or software modules corresponding to the execution of each function. By combining the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of this application.
[0175] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described computer-aided design drawing modeling method.
[0176] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0177] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. The readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in application-specific integrated circuits (ASICs). Alternatively, the processor and the readable storage medium can exist as discrete components in an electronic device or a host device.
[0178] The memory 802 is the non-transitory computer-readable storage medium provided by this invention. The non-transitory computer-readable storage medium of this invention stores computer instructions that cause a computer to execute the computer-aided design drawing copying method provided by this invention.
[0179] The memory 802, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules. The processor 801 executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory 802, thereby implementing the computer-aided design drawing model making method in the above method embodiments.
[0180] In addition, this embodiment also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the computer-aided design drawing copying method of the above embodiment.
[0181] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0182] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0183] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0184] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0185] When the integrated unit / module is implemented in hardware, the hardware can be digital or analog circuitry. The physical implementation of the hardware structure includes, but is not limited to, transistors and memristors. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, or ASIC. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random-Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), and Hybrid Memory Cube (HMC).
[0186] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0187] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0188] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0189] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for converting computer-aided design drawings into molds, characterized in that, include: Obtain the drawing file and trigger the agent initialization operation based on the drawing file; The intelligent agent parses the drawing file to obtain intermediate results of the model making process; By extracting and processing the drawing file, the structural information of the graphic elements is obtained; A knowledge network is constructed based on the primitive structured information, and the primitive structured information is initialized and stored based on the knowledge network. The intermediate results of the mold-making process are displayed, and in response to the user's interactive operations on the intermediate results of the mold-making process, verification input information and mold-making result confirmation information are obtained; Real-time verification is performed based on the verification input information and the knowledge network to obtain intelligent prompt information; When the mold conversion result confirmation information is detected as unsuccessful, the user's problem description operation is responded to, and the problem to be improved is obtained; Based on the identified problems to be improved, a code generation operation is performed to determine the target processing code; The agent is updated according to the target processing code, and the process jumps to the step of parsing the drawing file through the agent to obtain the intermediate result of the mold making, until the mold making result confirmation information is passed, and the final mold making result is output.
2. The computer-aided design drawing conversion method according to claim 1, characterized in that, The construction of a knowledge network based on the structured information of the primitives includes: Based on the structured information of the primitives, network feature extraction processing is performed to obtain entity data, relation data, and attribute data; A three-layer knowledge network is constructed based on the entity data, the relation data, and the attribute data.
3. The computer-aided design drawing conversion method according to claim 1, characterized in that, The step of performing code generation operations based on the problem to be improved, and determining the target processing code, includes: Based on the issues to be improved, the requirements are analyzed to obtain the code generation requirements; Based on the code generation requirements, code is written and processed to obtain the target processing code.
4. The computer-aided design drawing conversion method according to claim 1, characterized in that, Also includes: When the confirmation information of the mold flipping result is detected as unsuccessful, multimodal constraint information is obtained in response to the user's multimodal interaction operation. Based on the multimodal constraint information and the drawing file, determine the location and type of the target element; The knowledge network is updated based on the target primitive position and the target primitive type to obtain the updated knowledge network. Then, the process jumps to the step of performing real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information, until the final model conversion result is output.
5. The computer-aided design drawing conversion method according to claim 1, characterized in that, Also includes: Retrieve multiple drawing files; The intelligent agent performs state marking processing on the multiple drawing files to obtain an initial task queue; The task queue will sequentially jump to the step of triggering the agent initialization operation based on the drawing file.
6. The method for converting computer-aided design drawings into molds according to any one of claims 1 to 5, characterized in that, Also includes: When the mold-making result confirmation information is detected as passed, the intermediate mold-making result is output as the final mold-making result.
7. A computer-aided design drawing copying device, characterized in that, include: An initialization module is used to acquire drawing files and trigger agent initialization operations based on the drawing files; The parsing module is used to parse the drawing file through the intelligent agent to obtain intermediate results of the model making; The extraction module is used to extract and process the drawing file to obtain the structural information of the graphic elements; The knowledge network construction module is used to construct a knowledge network based on the primitive structured information, and to initialize and store the primitive structured information based on the knowledge network. The display module is used to display the intermediate results of the mold flipping and respond to the user's interactive operation on the intermediate results of the mold flipping to obtain the verification input information and the confirmation information of the mold flipping result; The real-time verification module is used to perform real-time verification based on the verification input information and the knowledge network to obtain intelligent prompt information. The module for obtaining issues to be improved is used to obtain issues to be improved in response to the user's problem description operation when the confirmation information of the mold flipping result is detected as unsuccessful. The target processing code acquisition module is used to perform code generation operations based on the problem to be improved and determine the target processing code. The final model conversion result output module is used to update the agent according to the target processing code, and jump to the step of parsing the drawing file through the agent to obtain intermediate model conversion results, until the model conversion result confirmation information is passed, and then output the final model conversion result.
8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the computer-aided design drawing modeling method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the computer-aided design drawing copying method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it is used to implement the computer-aided design drawing copying method as described in any one of claims 1 to 6.