Intelligent labeling method and plug-in for CAD (Computer Aided Design) drawing
By extracting assembly relationship characteristics in CAD drawing and performing conflict correction and symbol conversion, the problem of insufficient discrimination and correction capabilities in CAD drawing is solved, and the accuracy and reliability of the annotation are improved.
Patent Information
- Application Number
- CN202510714777.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-05-30
AI Technical Summary
The lack of comprehensive consideration of assembly logic relationships in existing CAD drawings has led to insufficient ability to discover and correct label conflicts, affecting the readability and engineering application of the drawings.
By calling the native interface of CAD software, traversing the drawing set to extract the annotation object, obtaining the assembly relationship characteristics of the assembly entity, performing conflict correction and symbol matching conversion, and constructing functional index annotations based on index analysis.
It realizes accurate identification and efficient correction of CAD drawing annotation conflicts, improving the accuracy and reliability of the annotation.
Smart Images

Figure CN120235989A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and particularly to an intelligent annotation method and plug-in for CAD drawing. Background Art
[0002] In the field of CAD drawing, accurate, efficient, and standardized annotation is crucial for accurately conveying design intentions and facilitating subsequent drawing interpretation and use, directly affecting the efficiency and quality of engineering design and manufacturing. Currently, to solve the problem of annotation conflicts in CAD drawings, it mainly relies on manual checking one by one. The manual checking method not only consumes a large amount of human and time costs, but also is extremely prone to missing annotation conflicts due to human negligence when facing complex assembly drawings, unable to ensure the comprehensive accuracy of annotations, resulting in a large number of hidden annotation conflicts in the drawings, seriously affecting the readability of the drawings and subsequent engineering applications.
[0003] In the current related technologies, there are technical problems in CAD drawing annotation, such as the lack of comprehensive consideration of assembly logical relationships, resulting in insufficient ability to detect and correct annotation conflicts. Summary of the Invention
[0004] This application provides an intelligent annotation method and plug-in for CAD drawing. First, it calls the native interface of the CAD software to traverse the atlas to extract annotation objects, obtains the original information of the annotation attributes of multiple original drawings, then interactively obtains the assembly relationship features of the assembly entities, and performs conflict correction on the original information of the annotation attributes according to these features to obtain the corrected attribute information. Then, it loads a predefined rule library to perform non-standard symbol matching conversion on the corrected attribute information to obtain symbolized attribute information. After that, it annotates the symbolized attribute information on the original drawing in a structured incremental manner to obtain the annotated CAD drawing. Finally, it performs index analysis on the corrected attribute information to construct a functional index annotation and other technical means, solves the technical problem that the existing CAD drawing annotation lacks comprehensive consideration of assembly logical relationships, resulting in insufficient ability to detect and correct annotation conflicts, realizes the accurate identification and efficient correction of CAD drawing annotation conflicts, and improves the accuracy and reliability of CAD drawing annotation.
[0005] The present application provides an intelligent annotation method for CAD drawing, including: calling the native interface of CAD software to traverse the CAD atlas for extracting annotation objects, and obtaining the original information of multiple annotation attributes of multiple original CAD drawings, where the multiple original CAD drawings correspond to multiple assembly entities; interactively obtaining multiple assembly relationship features of the multiple assembly entities; according to the multiple assembly relationship features, performing conflict correction on the original information of the multiple annotation attributes to obtain multiple corrected attribute information; loading a predefined symbol annotation rule library, performing non-standard symbol matching conversion on the multiple corrected attribute information to obtain multiple symbolized attribute information; incrementally and structurally annotating the multiple symbolized attribute information on the multiple original CAD drawings to obtain multiple annotated CAD drawings; constructing a functional index annotation of the multiple annotated CAD drawings through index analysis of the multiple corrected attribute information.
[0006] In a possible implementation manner, according to the multiple assembly relationship features, performing conflict correction on the original information of the multiple annotation attributes to obtain multiple corrected attribute information, the following processing is performed: based on the multiple assembly relationship features, through adjacent entity annotation derivation, restoring missing annotations of the original information of the multiple annotation attributes to obtain multiple restored attribute information; according to the multiple assembly relationship features, performing cross-drawing geometric tolerance verification on the multiple restored attribute information to obtain a cross-drawing conflict set; based on the cross-drawing conflict set, performing directional conflict correction on the multiple restored attribute information to obtain the multiple corrected attribute information.
[0007] In a possible implementation manner, before performing cross-drawing geometric tolerance verification on the multiple restored attribute information according to the multiple assembly relationship features to obtain a cross-drawing conflict set, the following processing is performed: retrieving multiple single-drawing conflict rules through networking according to the entity types of the multiple assembly entities; traversing the first restored attribute information based on the first single-drawing conflict rule for internal self-consistency verification of a single drawing to obtain a first single-drawing conflict defect set; retrieving and calling a first correction information library based on the first single-drawing conflict defect set; traversing the first correction information library with the first single-drawing conflict defect set to extract a first single-drawing conflict correction set; using the first single-drawing conflict correction set to perform local attribute replacement on the first restored attribute information to obtain first single-drawing attribute information; and so on, performing single-drawing conflict correction on the multiple restored attribute information according to the multiple single-drawing conflict rules to obtain multiple single-drawing attribute information; performing cross-drawing geometric tolerance verification on the multiple single-drawing attribute information according to the multiple assembly relationship features.
[0008] In a possible implementation, the first correction information library is retrieved and called based on the first single drawing conflict defect set, and the following processing is performed: the first entity structure feature is extracted from the first original CAD drawing; the first single drawing conflict defect set is filtered out from the first restored attribute information to obtain the first compliance attribute information; the first compliance attribute information and the first entity structure feature are used as retrieval conditions, and the first correction information library is called by local matching.
[0009] In a possible implementation, based on the multiple assembly relationship features, the multiple restoration attribute information is verified for geometric tolerances across drawings to obtain a cross-drawing conflict set, and the following processing is performed: a global assembly tree of the target assembly structure is constructed based on the multiple assembly relationship features, wherein the global assembly tree is a P-layer; starting from the P-1th layer, the global assembly tree is decomposed layer by layer at the component level to obtain a multi-layer component-level assembly subtree set; after the multi-layer component-level assembly subtree set is corrected for the fitting tolerances of the part entities within the monomer component-level assembly subtree, the multi-layer component-level assembly subtree set is verified for hierarchical dimension chain closure from the bottom up to locate the cross-drawing conflict set.
[0010] In a possible implementation, the following processing is also performed: interactively obtaining multiple groups of sample tolerance combinations for multiple sample part combinations in multiple sample matching scenarios; associatively storing the multiple sample part combinations, multiple sample matching scenarios and multiple groups of sample tolerance combinations to complete the construction of a matching rule library; parsing the cross-drawing conflict set, and outputting O real-time matching scenarios of O real-time part combinations; using the O real-time part combinations and O real-time matching scenarios as two-dimensional matching conditions, traversing the matching rule library, and obtaining O sample tolerance combinations; using the cross-drawing conflict set as a correction guide, and using the O sample tolerance combinations to perform tolerance correction on the multi-layer component-level assembly subtree set.
[0011] In a possible implementation, based on the cross-drawing conflict set, directed conflict correction is performed on the multiple restored attribute information to obtain the multiple corrected attribute information, and the following processing is also performed: calling the conflict priority rule; aggregating the cross-drawing conflict set according to the conflict priority rule to obtain a multi-level priority conflict set; after correcting the multi-level priority conflict set according to the multi-level conflict correction strategy mapping, closed-loop feedback verification is performed until the update result of the cross-drawing conflict set is an empty set, and a conflict correction information set is output; based on the cross-drawing conflict set, the conflict correction information set is used to perform local attribute replacement on the multiple restored attribute information to obtain the multiple corrected attribute information.
[0012] In a possible implementation, by performing index analysis on the multiple pieces of corrected attribute information, a functional index annotation for the multiple marked CAD drawings is constructed, and the following processing is also performed: performing multi-modal index analysis on the multiple pieces of corrected attribute information to obtain multiple index sub-topologies of the multiple assembly entities; fusing the multiple index sub-topologies to construct a CAD drawing index topology; storing the multiple marked CAD drawings into the CAD drawing index topology to complete the functional index annotation of the CAD atlas.
[0013] In a possible implementation, the following processing is also performed: after performing fuzzy correction on the multiple pieces of corrected attribute information, using the symbol annotation rule library to perform non-standard symbol matching conversion on the multiple pieces of corrected attribute information to obtain the multiple symbolized attribute information.
[0014] This application also provides an intelligent annotation plugin for CAD drawing, including: an annotation object extraction module, configured to call the native interface of CAD software to traverse the CAD atlas for annotation object extraction to obtain multiple pieces of original annotation attribute information of multiple original CAD drawings, where the multiple original CAD drawings correspond to multiple assembly entities; an assembly relationship feature acquisition module, configured to interactively obtain multiple assembly relationship features of the multiple assembly entities; a conflict correction module, configured to perform conflict correction on the multiple pieces of original annotation attribute information according to the multiple assembly relationship features to obtain multiple pieces of corrected attribute information; a non-standard symbol matching conversion module, configured to load a predefined symbol annotation rule library to perform non-standard symbol matching conversion on the multiple pieces of corrected attribute information to obtain multiple pieces of symbolized attribute information; an annotation module, configured to incrementally and structurally annotate the multiple pieces of symbolized attribute information on the multiple original CAD drawings to obtain multiple marked CAD drawings; an index analysis module, configured to construct a functional index annotation for the multiple marked CAD drawings by performing index analysis on the multiple pieces of corrected attribute information.
[0015] The intelligent annotation method and plug-in for CAD drawing proposed in this application first call the native interface of the CAD software to traverse the CAD atlas for extracting annotation objects, obtaining the original information of multiple annotation attributes of multiple original CAD drawings. Among them, the multiple original CAD drawings correspond to multiple assembly entities. Then, the multiple assembly relationship features of the multiple assembly entities are obtained through interaction. Next, according to the multiple assembly relationship features, conflict correction is performed on the multiple original annotation attribute information to obtain multiple corrected attribute information. Then, a predefined symbol annotation rule library is loaded, and non-standard symbol matching conversion is performed on the multiple corrected attribute information to obtain multiple symbolized attribute information. Furthermore, the multiple symbolized attribute information is incrementally and structurally annotated on the multiple original CAD drawings to obtain multiple annotated CAD drawings. Finally, through index analysis of the multiple corrected attribute information, a functional index annotation of the multiple annotated CAD drawings is constructed. The technical effect of accurately identifying and efficiently correcting the annotation conflicts of CAD drawings is achieved, and the accuracy and reliability of CAD drawing annotation are improved. Brief Description of the Drawings
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments of the present invention will be briefly introduced below. Flowcharts are used in this application to illustrate the operations performed by the plug-in according to the embodiments of the present application. It should be understood that the operations before or below do not necessarily need to be executed precisely in sequence. On the contrary, according to needs, they can be executed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or one or several operations can be removed from these processes.
[0017] Figure 1 It is a schematic flowchart of the intelligent annotation method for CAD drawing provided by the embodiment of the present application.
[0018] Figure 2 It is a schematic structural diagram of the intelligent annotation plug-in for CAD drawing provided by the embodiment of the present application.
[0019] Description of the reference numerals: Annotation object extraction module 10, Assembly relationship feature acquisition module 20, Conflict correction module 30, Non-standard symbol matching conversion module 40, Annotation module 50, Index analysis module 60. Detailed Description of the Embodiments
[0020] The above description is only an overview of the technical solutions of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the specific embodiments of this application are specifically given below.
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The described embodiments should not be construed as limitations on this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0022] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict. The terms "first / second" involved are only used to distinguish similar objects and do not represent a specific order for the objects. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application.
[0023] The embodiments of this application provide an intelligent annotation method for CAD drawing, as Figure 1 shown, the method includes:
[0024] Step S100, call the native interface of the CAD software to traverse the CAD atlas to extract annotation objects, and obtain the original information of the annotation attributes of multiple original CAD drawings, where the multiple original CAD drawings correspond to multiple assembly entities.
[0025] Specifically, the native interface of the CAD software refers to the programming interface provided by the CAD software for accessing and operating CAD files. The annotation object refers to the elements that need to be annotated on the drawing, such as dimension lines, tolerance symbols, etc. The original information of the annotation attributes refers to the attributes of the annotation object. The assembly entity refers to each part or component that makes up the assembly. Specifically, access the CAD atlas through the programming interface (such as AutoLISP, NET API of AutoCAD, or API of SolidWorks). Use a recursive or iterative algorithm to traverse all the drawings in the atlas, and utilize the query function of the CAD software to extract the attribute information of the annotation objects, including dimension values, tolerance zones, associated geometric entity IDs, and coordinate ranges.
[0026] For example, assume there is a set of mechanical assembly drawings, including a gear, a shaft, and a housing. Traverse the drawings through the API of AutoCAD, extract the diameter of the gear marked as "D30mm", the length of the shaft marked as "L50mm", and the dimensions of the housing marked as "W100mm × H80mm".
[0027] Step S200, interactively obtain multiple assembly relationship features of the multiple assembly entities.
[0028] Specifically, the assembly relationship features refer to the assembly methods and connection relationships between parts, such as threaded connection, welding, interference fit, etc. Develop a user interface that allows users to input or select the relationships between assembly entities. Store the assembly relationship features input by the user in a database or memory for subsequent processing. At the same time, some assembly relationships can be automatically recognized through geometric analysis algorithms, such as through the contact surfaces and axis alignment of geometric entities.
[0029] For example, design a web-based interface where users can define assembly relationships by dragging part models and confirm the relationship type (such as threaded connection, welding, etc.) by clicking a button. For example, the user defines the mating relationship between the gear and the shaft as "interference fit" and the assembly relationship between the housing and the gear as "embedded assembly" through the interface.
[0030] Step S300, according to the multiple assembly relationship features, correct the conflicts in the original information of the multiple annotation attributes to obtain multiple corrected attribute information.
[0031] Specifically, conflict correction means adjusting the annotation information to resolve the contradictions between the annotations and the assembly relationships. Check the logical consistency between the annotation attributes and the assembly relationships. For example, check whether the dimensions meet the assembly requirements. Automatically correct the conflicting annotation attributes according to predefined rules (such as dimensional tolerance ranges, fit clearances, etc.). After automatic correction, provide a user interface for the user to confirm or modify the correction results.
[0032] For example, for the mating relationship between the gear and the shaft, check whether the inner diameter annotation of the gear is consistent with the outer diameter of the shaft. If not, automatically adjust the inner diameter annotation of the gear according to the tolerance range. For example, the correction rules are as follows: if the inner diameter annotation of the gear > outer diameter of the shaft + upper tolerance limit, then adjust the inner diameter annotation of the gear to outer diameter of the shaft + upper tolerance limit; if the inner diameter annotation of the gear < outer diameter of the shaft - lower tolerance limit, then adjust the inner diameter annotation of the gear to outer diameter of the shaft - lower tolerance limit.
[0033] In a possible implementation manner, according to the multiple assembly relationship features, conflict correction is performed on the original information of the multiple annotation attributes to obtain multiple corrected attribute information. Step S300 further includes step S310. According to the multiple assembly relationship features, through adjacent entity annotation derivation, missing annotation restoration is performed on the original information of the multiple annotation attributes to obtain multiple restored attribute information. Specifically, by analyzing the annotation information and assembly relationship of adjacent entities, the missing annotation information is derived. For example, if two parts are connected by a thread and the thread size of one part is known, the thread size of the other part can be derived. Or use geometric analysis tools (such as computational geometry libraries) to analyze the geometric relationships between parts, such as contact surfaces, alignment relationships, etc., to assist in deriving missing annotations. Or derive according to predefined rules (such as standard assembly specifications). For example, if two parts are coaxially assembled, their axis coordinates should be the same.
[0034] For example, assume that a gear and a shaft are connected by a keyway. The keyway size of the gear is marked as "W10mm×L20mm", but the keyway size of the shaft is not marked. By analyzing the assembly relationship (if two parts are connected by a keyway, their keyway widths and lengths should be the same) and the known markings, it is derived that the keyway size of the shaft should also be "W10mm×L20mm".
[0035] Step S320, according to the multiple assembly relationship features, perform cross-drawing geometric tolerance verification on the multiple restored attribute information to obtain a cross-drawing conflict set. Specifically, check whether the annotation information on different drawings meets the geometric tolerance requirements. For example, use a tolerance analysis tool (such as tolerance stack-up analysis) to check whether the dimensional tolerances of two mating parts are within the allowable range, verify the cross-drawing geometric tolerances, record the annotation information that does not meet the tolerance requirements, and form a cross-drawing conflict set.
[0036] For example, assume that the inner diameter marked on the gear drawing is "D30mm±0.1mm", and the outer diameter marked on the shaft drawing is "D30.2mm±0.1mm". Through cross-drawing geometric tolerance verification, it is found that the maximum value of the gear inner diameter (30.1mm) is equal to the minimum value of the shaft outer diameter (30.1mm). This means that in the most extreme case (the gear inner diameter is the maximum value and the shaft outer diameter is the minimum value), the two just match, but there is no clearance. For actual assembly, in this case, it will cause assembly difficulties or impossible assembly because actual machining errors may cause the dimensions to exceed the tolerance range, resulting in conflicts.
[0037] Step S330, based on the cross-drawing conflict set, the multiple restored attribute information are subjected to directional conflict correction to obtain the multiple corrected attribute information. Specifically, based on the cross-drawing conflict set, the annotation information is automatically adjusted to resolve the conflict. For example, the tolerance range of the inner diameter of the gear or the size of the outer diameter of the shaft is adjusted. Predefined correction rules are used to ensure that the corrected annotation information meets the assembly requirements. After the automatic correction, a user interface is provided to allow the user to confirm or modify the correction result.
[0038] For example, according to the above conflict set and correction rules, the tolerance range of the gear inner diameter is automatically adjusted to "D30mm±0.2mm" to ensure that the maximum value of the gear inner diameter (30.2mm) can accommodate the minimum value of the shaft outer diameter (30.1mm).
[0039] This implementation method can automatically restore missing annotation information through adjacent entity annotation derivation, reducing omissions in manual annotation. Through cross-drawing geometric tolerance verification and directional conflict correction, the consistency and accuracy of annotation information between different drawings are ensured.
[0040] In a possible implementation, according to the multiple assembly relationship features, the multiple restoration attribute information is verified for geometric tolerance across drawings to obtain a cross-drawing conflict set. Before that, step S300 further includes step S340, which retrieves multiple single-drawing conflict rules based on the entity types of the multiple assembly entities. Specifically, a database containing conflict rules of various entity types is maintained, and the central database or knowledge base is connected to the network to retrieve single-drawing conflict rules related to the assembly entity type, that is, the type of each assembly entity (such as gear, shaft, housing, etc.) is identified, and the corresponding conflict rules are obtained according to the type.
[0041] For example, assuming that the assembly entity includes gears and shafts, examples of single drawing conflict rules retrieved online are as follows: gear conflict rules: "Inner diameter tolerance range should be less than or equal to outer diameter tolerance range" and "The number of teeth must be an integer"; shaft conflict rules: "Outer diameter tolerance range should be greater than inner diameter tolerance range" and "Axial length should be greater than or equal to the minimum assembly length".
[0042] Step S350: Based on the first single drawing conflict rule, the first restored attribute information is traversed to perform internal self-consistent verification of the single drawing to obtain the first single drawing conflict defect set. Specifically, the restored attribute information is verified according to the retrieved conflict rule using the rule engine, and all the annotation information on the single drawing is traversed to check whether it complies with the conflict rule. The annotation information that does not comply with the rule is recorded to form a conflict defect set.
[0043] Step S360, retrieve and call the first correction information library according to the first single drawing conflict defect set. Specifically, maintain a database containing correction suggestions for retrieving corresponding correction information according to the conflict defect set. Use a retrieval algorithm to retrieve specific correction suggestions according to the conflict type and entity type. For example, the correction suggestion corresponding to "the inner diameter tolerance range should be less than or equal to the outer diameter tolerance range" is "adjust the inner diameter tolerance range to ±0.05 mm". Step S370, traverse the first correction information library with the first single drawing conflict defect set to extract the first single drawing conflict correction set. Specifically, extract specific correction suggestions from the correction information library according to the information in the conflict defect set to generate a set containing all correction suggestions.
[0044] Step S380, perform local attribute replacement on the first restored attribute information with the first single drawing conflict correction set to obtain the first single drawing attribute information. Specifically, perform local replacement on the annotation information according to the suggestions in the correction set, and update the replaced annotation information to the drawing. For example, replace the gear inner diameter annotation from "D30mm±0.1mm" to "D30mm±0.2mm". Step S390, and so on, perform single drawing conflict correction on the multiple restored attribute information according to the multiple single drawing conflict rules to obtain multiple single drawing attribute information. Specifically, repeat the above steps for all drawings and entity types to ensure that the annotation information on each drawing is corrected. Summarize all the corrected annotation information to form multiple single drawing attribute information.
[0045] Step S3100, perform cross-drawing geometric tolerance verification on the multiple single drawing attribute information according to the multiple assembly relationship features. Specifically, use a tolerance analysis tool to check whether the annotation information on different drawings meets the geometric tolerance requirements and verify the cross-drawing geometric tolerance. Record the annotation information that does not meet the tolerance requirements to form a cross-drawing conflict set.
[0046] This implementation method adopts a phased conflict handling mechanism, first ensuring the consistency of the annotation information within each drawing, reducing the complexity during cross-drawing verification. After resolving the conflicts within a single drawing, perform cross-drawing geometric tolerance verification to ensure the reliability of the overall assembly.
[0047] In a possible implementation, when retrieving and calling the first correction information library according to the first single drawing conflict defect set, step S360 further includes step S361, extracting the first entity structure feature from the first original CAD drawing. Specifically, extract the structure features of the entities in the drawing, such as geometric shape, size, tolerance, association relationship, etc., through the API of CAD software or geometric analysis tools. Store the extracted structure features as structured data for subsequent processing.
[0048] For example, assume that the first original CAD drawing is a gear drawing, and the extracted structural features include: gear type: straight-tooth cylindrical gear; module: 2; number of teeth: 20; inner diameter: D30mm ± 0.1mm; outer diameter: D50mm ± 0.1mm; tooth width: 10mm. The extracted structural features are stored in JSON format.
[0049] Step S362, screen out the first single-drawing conflict defect set from the first restored attribute information to obtain the first compliant attribute information. Specifically, according to the annotation information in the conflict defect set, screen out the parts that do not meet the requirements from the restored attribute information, and retain the annotation information that conforms to the rules to form the compliant attribute information.
[0050] For example, assume that the first restored attribute information includes: inner diameter: D30mm ± 0.1mm; outer diameter: D50mm ± 0.1mm; tooth width: 10mm. Assume that the conflict defect set is: inner diameter: D30mm ± 0.1mm. After screening out the conflict defects, the first compliant attribute information is: outer diameter: D50mm ± 0.1mm; tooth width: 10mm.
[0051] Step S363, use the first compliant attribute information and the first entity structure features as retrieval conditions to locally match and call the first correction information library. Specifically, combine the compliant attribute information and the entity structure features into retrieval conditions, and in the local correction information library, match the corresponding correction suggestions according to the retrieval conditions, and extract the matched correction suggestions to form a correction set.
[0052] This implementation method provides richer context information for correction by extracting entity structure features, making the correction suggestions more in line with the actual design requirements. By screening out conflict defects, the accuracy of the compliant attribute information is ensured, avoiding interference from incorrect information in the correction process.
[0053] In a possible implementation, according to the multiple assembly relationship features, perform cross-drawing geometric tolerance verification on the multiple restored attribute information to obtain a cross-drawing conflict set. Step S320 further includes step S321, construct a global assembly tree of the target assembly structure according to the multiple assembly relationship features, where the global assembly tree is layer P. Specifically, by analyzing the assembly relationship features, construct the hierarchical structure of the assembly tree. Each node represents a component or part, and the parent-child relationship represents the assembly relationship. Use a tree-shaped data structure to store the global assembly tree, and record the level, part information, and assembly relationship of each node. According to the assembly complexity, divide the assembly tree into layer P, where P is the maximum number of levels.
[0054] For example, assume that a mechanical assembly includes a housing, a gear, and a shaft, and the global assembly tree is as follows: Level 1: housing, gear, shaft; Level 2: gear, shaft; Level 3: shaft.
[0055] Step S322: Starting from the (P - 1)-th layer, decompose the global assembly tree level by level at the component level to obtain a multi-level set of component-level assembly sub-trees. Specifically, starting from the (P - 1)-th layer, decompose the global assembly tree level by level to generate component-level assembly sub-trees for each layer. Each sub-tree contains the components at the current level and their subordinate parts or components.
[0056] Step S323: After correcting the fit tolerances of the part entities within the single-component-level assembly sub-trees in the multi-level set of component-level assembly sub-trees, perform a hierarchical dimension chain closure verification from the bottom layer upwards for the multi-level set of component-level assembly sub-trees to locate the cross-drawing conflict set. Specifically, within each component-level assembly sub-tree, correct the fit tolerances of the part entities to ensure that the direct fit relationships between parts at the same level meet the tolerance requirements. Starting from the bottom-layer sub-tree, verify the closure of the dimension chain layer by layer upwards to check for cross-level dimension conflicts. Record the conflicts found during the verification process to form the cross-drawing conflict set.
[0057] For example, perform fit tolerance correction within level 2 (gear, shaft): Gear inner diameter: D30mm ± 0.1mm, shaft outer diameter: D30.2mm ± 0.1mm. After correction, the gear inner diameter is adjusted to D30mm ± 0.2mm to fit the outer diameter of the shaft. Perform dimension chain closure verification within level 1 (housing, gear, shaft): Assume the housing inner diameter is marked as D80mm ± 0.2mm, and it is necessary to verify whether the total size of the gear assembly (gear and shaft) is compatible with the housing inner diameter. The total size of the gear assembly is the gear outer diameter (which is the dimension directly fitting with the housing inner diameter) D50mm ± 0.1mm. Verify the parent-level marking: The housing inner diameter D80mm ± 0.2mm is compatible with the size of the gear assembly 50mm ± 0.1mm, and the verification passes.
[0058] This implementation method ensures that the size of each component is within the tolerance range of the parent level through bottom-up dimension accumulation and verification. Performing tolerance correction and dimension chain closure verification at the component level can effectively detect and resolve cross-drawing dimension conflicts.
[0059] In a possible implementation, step S323 further includes step S3231: Interactively obtain multiple groups of sample tolerance combinations of multiple sample part combinations under multiple sample fit scenarios. Specifically, collect tolerance combinations of different part combinations under different fit scenarios through experiments or historical data. Design a user interface that allows users to input or select part combinations and fit scenarios.
[0060] Step S3232, associatively store the multiple sample part combinations, multiple sample mating scenarios, and multiple groups of sample tolerance combinations to complete the construction of the mating rule library. Specifically, design a database to store the association information of part combinations, mating scenarios, and tolerance combinations, and associate the part combinations and mating scenarios with the corresponding tolerance combinations.
[0061] Step S3233, parse the cross-drawing conflict set and output O real-time mating scenarios for O real-time part combinations. Specifically, analyze the cross-drawing conflict set to identify real-time part combinations and mating scenarios. Output the identified part combinations and mating scenarios as structured data.
[0062] Step S3234, use the O real-time part combinations and O real-time mating scenarios as two-dimensional matching conditions to traverse the mating rule library and obtain O sample tolerance combinations. Specifically, search for matching sample tolerance combinations in the mating rule library according to the real-time part combinations and mating scenarios, and retrieve the sample tolerance combinations that match the real-time conditions from the mating rule library.
[0063] Step S3235, using the cross-drawing conflict set as the correction guide, perform tolerance correction on the multi-layer component-level assembly subtree set with the O sample tolerance combinations. Specifically, use the cross-drawing conflict set to guide the tolerance correction process, and correct the tolerances in the multi-layer component-level assembly subtree set according to the sample tolerance combinations.
[0064] This implementation method ensures that the tolerance correction meets the actual mating requirements and historical experience through the sample tolerance combinations provided by the mating rule library. At the same time, using the verified sample tolerance combinations for tolerance correction improves the reliability and consistency of the assembly.
[0065] In a possible implementation manner, based on the cross-drawing conflict set, perform directional conflict correction on the multiple restored attribute information to obtain the multiple corrected attribute information. Step S330 further includes step S331, calling the conflict priority rule. Specifically, define a set of rules to determine the priority of conflicts, such as based on the severity of the impact of the conflict on the assembly or the difficulty of resolution. Call these rules when dealing with conflicts to determine the order of processing.
[0066] Step S332, aggregate the cross-drawing conflict set according to the conflict priority rule to obtain a multi-level priority conflict set. Specifically, set a priority label for each conflict according to the priority rule, and classify and aggregate the conflicts in the conflict set. For example, divide the conflict set into three priorities: high, medium, and low. High priority is for conflicts that affect the final assembly, medium priority is for conflicts that affect part of the functions, and low priority is for conflicts with the least impact.
[0067] Step S333, after mapping and correcting the multi-level priority conflict set according to the multi-level conflict correction strategy, perform closed-loop feedback verification until the update result of the cross-drawing conflict set is an empty set, and output the conflict correction information set. Specifically, formulate a correction strategy for conflicts of each priority, perform verification after correction, re-check all conflicts, and re-enter the correction process if not resolved until no new conflicts occur, ensuring that the conflicts are resolved. When all conflicts are resolved, output an empty set indicating that the conflict correction is completed.
[0068] Step S334, according to the cross-drawing conflict set, use the conflict correction information set to perform local attribute replacement on the multiple restored attribute information to obtain the multiple corrected attribute information. Specifically, according to the conflict correction information set, perform necessary replacements on the restored attribute information to generate the corrected attribute information set.
[0069] This implementation method can more effectively manage and resolve conflicts through the priority rule and the multi-level conflict correction strategy, giving priority to dealing with the most important issues. The closed-loop feedback verification ensures that all conflicts are resolved, improving the consistency and reliability of the design.
[0070] Step S400, load the predefined symbol annotation rule library, and perform non-standard symbol matching conversion on the multiple corrected attribute information to obtain multiple symbolized attribute information.
[0071] Specifically, create a symbol annotation rule library to store the mapping relationship between standard symbols and annotation attributes, match the corrected annotation attributes with the standard symbols in the symbol rule library, and replace the original non-standard annotation symbols with the matched standard symbols to obtain the symbolized attribute information.
[0072] For example, convert the corrected annotation to a standard symbol, such as converting "D30.1mm" to "D30.1".
[0073] In a possible implementation manner, the method further includes: after performing fuzzy correction on the multiple corrected attribute information, use the symbol annotation rule library to perform non-standard symbol matching conversion on the multiple corrected attribute information to obtain the multiple symbolized attribute information.
[0074] Specifically, fuzzy logic is used to process the corrected attribute information to adapt to situations where the boundaries are not clear or there are multiple interpretations. Fuzzy correction of the attribute information includes fine-tuning numerical values or appropriately expanding the tolerance range. For example, suppose the inner diameter of a gear is marked as "D30mm ± 0.1mm". In fuzzy correction, the tolerance range will be adjusted to "D30mm ± 0.15mm" according to the actual situation and design requirements. Fuzzy correction allows designers to appropriately adjust the attribute information without violating the design principles to meet specific design needs and enhance the flexibility of the design.
[0075] Step S500, structurally incrementally label the multiple symbolized attribute information on the multiple original CAD drawings to obtain multiple labeled CAD drawings.
[0076] Specifically, use the annotation tools of CAD software (such as the annotation commands in AutoCAD) to annotate the symbolized attribute information on the drawings. Automatically adjust the positions of the new annotations according to the layout of the drawings and the existing annotations to avoid overlapping. For example, annotate the symbolized annotation information "D30.1" above the center of the gear on the gear drawing; annotate "L50" at the end of the shaft on the shaft drawing.
[0077] Step S600, construct the functional index annotations of the multiple labeled CAD drawings by performing index analysis on the multiple corrected attribute information.
[0078] Specifically, the functional index annotation is an index tool for quickly searching and locating the annotation information on the drawings. Classify and index the corrected annotation attribute information, and store the index information in a database for quick query. Add index annotations to the CAD drawings, for example, in the form of a table or notes. For example, add a table in the corner of the drawing listing the annotation information of all parts and their corresponding drawing positions.
[0079] In a possible implementation, by performing index analysis on the multiple corrected attribute information to construct the functional index annotations of the multiple labeled CAD drawings, step S600 further includes step S610, perform multi-modal index analysis on the multiple corrected attribute information to obtain multiple index sub-topologies of the multiple assembly entities. Specifically, perform index analysis on the corrected attribute information by combining multiple attributes (such as dimensions, materials, functions, etc.) to generate multiple index sub-topologies. Create an index sub-topology for each assembly entity to represent its attributes and relationships. For example, perform index analysis on the corrected attribute information of the gear, shaft, and housing to obtain their respective index sub-topologies.
[0080] Step S620: Integrate the multiple index sub-topologies to construct a CAD drawing index topology. Specifically, integrate the index sub-topologies of all assembly entities into a unified CAD drawing index topology to construct an index topology that contains the attributes and relationships of all assembly entities. For example, integrate the index sub-topologies of gears, shafts, and housings to construct a CAD drawing index topology.
[0081] Step S630: Store the multiple marked CAD drawings into the CAD drawing index topology to complete the functional index marking of the CAD atlas. Specifically, store the marked CAD drawings in association with the index topology so that the drawings can be retrieved and managed through the index topology. For example, store the marked CAD drawings of gears, shafts, and housings into the index topology to complete the functional index marking.
[0082] This implementation method adopts a structured index topology, making the management of drawings more orderly, facilitating maintenance and update, enhancing the manageability and retrievability of drawings, and thus improving the retrieval and management efficiency of drawings.
[0083] In the embodiments of the present application, first, the native interface of the CAD software is called to traverse the atlas to extract the marked objects, and the original information of the marked attributes of multiple original drawings is obtained. Then, the assembly relationship features of the assembly entities are interactively obtained, and the original information of the marked attributes is corrected for conflicts based on these features to obtain the corrected attribute information. Next, the predefined rule library is loaded, and the corrected attribute information is matched and converted for non-standard symbols to obtain the symbolized attribute information. After that, the symbolized attribute information is marked on the original drawings in a structured incremental manner to obtain the marked CAD drawings. Finally, the corrected attribute information is analyzed for indexing to construct the functional index marking and other technical means, which solve the technical problem that the existing CAD drawing marking lacks a comprehensive consideration of the assembly logical relationship, resulting in insufficient ability to discover and correct marking conflicts, and achieve the technical effects of accurately identifying and efficiently correcting the CAD drawing marking conflicts and improving the accuracy and reliability of the CAD drawing marking.
[0084] In the above text, with reference to Figure 1 the intelligent marking method for CAD drawing according to the embodiments of the present invention is described in detail. Next, with reference to Figure 2 the intelligent marking plugin for CAD drawing according to the embodiments of the present invention will be described.
[0085] The intelligent annotation plug-in for CAD drawing according to an embodiment of the present invention is used to solve the technical problem that the existing CAD drawing annotation lacks a comprehensive consideration of the assembly logic relationship, resulting in insufficient ability to discover and correct annotation conflicts, and realizes the accurate identification and efficient correction of CAD drawing annotation conflicts, and improves the accuracy and reliability of CAD drawing annotation. The intelligent annotation plug-in for CAD drawing includes: an annotation object extraction module 10, an assembly relationship feature acquisition module 20, a conflict correction module 30, a non-standard symbol matching and conversion module 40, an annotation module 50, and an index analysis module 60.
[0086] The annotation object extraction module 10 is used to call the native interface of the CAD software to traverse the CAD atlas for extracting annotation objects, and obtain the original information of multiple annotation attributes of multiple original CAD drawings, wherein the multiple original CAD drawings correspond to multiple assembly entities; the assembly relationship feature acquisition module 20 is used to interactively obtain multiple assembly relationship features of the multiple assembly entities; the conflict correction module 30 is used to perform conflict correction on the original information of the multiple annotation attributes according to the multiple assembly relationship features to obtain multiple corrected attribute information; the non-standard symbol matching and conversion module 40 is used to load a predefined symbol annotation rule library, perform non-standard symbol matching and conversion on the multiple corrected attribute information to obtain multiple symbolized attribute information; the annotation module 50 is used to incrementally and structurally annotate the multiple symbolized attribute information on the multiple original CAD drawings to obtain multiple annotated CAD drawings; the index analysis module 60 is used to construct a functional index annotation of the multiple annotated CAD drawings by performing index analysis on the multiple corrected attribute information.
[0087] Next, the specific configuration of the conflict correction module 30 will be described in detail. As described above, according to the multiple assembly relationship features, conflict correction is performed on the original information of the multiple annotation attributes to obtain multiple corrected attribute information. The conflict correction module 30 may further include: a missing annotation restoration unit for restoring missing annotations of the original information of the multiple annotation attributes through adjacent entity annotation derivation according to the multiple assembly relationship features to obtain multiple restored attribute information; a geometric tolerance verification unit for performing cross-drawing geometric tolerance verification on the multiple restored attribute information according to the multiple assembly relationship features to obtain a cross-drawing conflict set; and an orientation conflict correction unit for performing orientation conflict correction on the multiple restored attribute information according to the cross-drawing conflict set to obtain the multiple corrected attribute information.
[0088] Among them, according to the multiple assembly relationship features, the multiple restored attribute information is verified for geometric tolerances across drawings to obtain a cross-drawing conflict set. Before, the conflict correction module 30 may further include: a networked retrieval unit is used to network retrieve multiple single-drawing conflict rules according to the entity types of the multiple assembly entities; an internal self-consistent verification unit is used to traverse the first restored attribute information based on the first single-drawing conflict rule to perform internal self-consistent verification of the single drawing to obtain a first single-drawing conflict defect set; a correction information library calling unit is used to retrieve and call the first correction information library based on the first single-drawing conflict defect set; a traversal unit is used to traverse the first correction information library using the first single-drawing conflict defect set to extract the first single-drawing conflict correction set; a local attribute replacement unit is used to perform local attribute replacement on the first restored attribute information using the first single-drawing conflict correction set to obtain the first single-drawing attribute information; an iteration unit is used to perform single-drawing conflict correction on the multiple restored attribute information according to the multiple single-drawing conflict rules and so on to obtain multiple single-drawing attribute information; a geometric tolerance verification unit is used to perform cross-drawing geometric tolerance verification on the multiple single-drawing attribute information according to the multiple assembly relationship features.
[0089] Among them, the first correction information library is retrieved and called according to the first single drawing conflict defect set, and the correction information library calling unit may further include: a physical structure feature extraction subunit is used to extract the first physical structure feature from the first original CAD drawing; a screening subunit is used to screen out the first single drawing conflict defect set from the first restored attribute information to obtain the first compliance attribute information; and a local matching calling subunit is used to use the first compliance attribute information and the first physical structure feature as retrieval conditions, and locally match and call the first correction information library.
[0090] Among them, according to the multiple assembly relationship features, the multiple restoration attribute information is verified for geometric tolerance across drawings to obtain a cross-drawing conflict set, and the geometric tolerance verification unit may further include: a global assembly tree construction subunit is used to construct a global assembly tree of the target assembly structure according to the multiple assembly relationship features, wherein the global assembly tree is P layers; a component-level layer-by-layer decomposition subunit is used to perform component-level layer-by-layer decomposition on the global assembly tree starting from the P-1 layer to obtain a multi-layer component-level assembly subtree set; a hierarchical dimension chain closure verification subunit is used to perform hierarchical dimension chain closure verification from the bottom up on the multi-layer component-level assembly subtree set after the matching tolerance of the part entities in the monomer component-level assembly subtree is corrected for the multi-layer component-level assembly subtree set, so as to locate the cross-drawing conflict set.
[0091] Among them, the hierarchical dimension chain closed-loop verification subunit may further include: a sample tolerance combination acquisition component for interactively obtaining multiple groups of sample tolerance combinations of multiple sample part combinations under multiple sample mating scenarios; a mating rule library construction component for associatively storing the multiple sample part combinations, multiple sample mating scenarios, and multiple groups of sample tolerance combinations to complete the construction of the mating rule library; a cross-drawing conflict set parsing component for parsing the cross-drawing conflict set and outputting O real-time mating scenarios of O real-time part combinations; a two-dimensional matching component for using the O real-time part combinations and O real-time mating scenarios as two-dimensional matching conditions to traverse the mating rule library to obtain O sample tolerance combinations; and a tolerance correction component for using the cross-drawing conflict set as a correction guide and performing tolerance correction on the multi-layer component-level assembly subtree set using the O sample tolerance combinations.
[0092] Among them, according to the cross-drawing conflict set, performing directional conflict correction on the multiple restored attribute information to obtain the multiple corrected attribute information, the directional conflict correction unit may further include: a conflict priority rule invocation subunit for invoking the conflict priority rule; an aggregation subunit for aggregating the cross-drawing conflict set according to the conflict priority rule to obtain a multi-level priority conflict set; a closed-loop feedback verification subunit for performing closed-loop feedback verification after mapping and correcting the multi-level priority conflict set according to the multi-level conflict correction strategy until the update result of the cross-drawing conflict set is an empty set, and outputting a conflict correction information set; and a local attribute replacement subunit for performing local attribute replacement on the multiple restored attribute information using the conflict correction information set according to the cross-drawing conflict set to obtain the multiple corrected attribute information.
[0093] Next, the specific configuration of the index analysis module 60 will be described in detail. As described above, by performing index analysis on the multiple corrected attribute information to construct the functional index annotations of the multiple marked CAD drawings, the index analysis module 60 may further include: a multi-modal index analysis unit for performing multi-modal index analysis on the multiple corrected attribute information to obtain multiple index sub-topologies of the multiple assembly entities; a CAD drawing index topology construction unit for fusing the multiple index sub-topologies to construct a CAD drawing index topology; and a storage unit for storing the multiple marked CAD drawings into the CAD drawing index topology to complete the functional index annotation of the CAD atlas.
[0094] Among them, the plug-in may further include: a fuzzy correction module for performing fuzzy correction on the multiple corrected attribute information and then using the symbol annotation rule library to perform non-standard symbol matching conversion on the multiple corrected attribute information to obtain the multiple symbolized attribute information.
[0095] The intelligent annotation plug-in for CAD drawing provided by the embodiments of the present invention can execute the intelligent annotation method for CAD drawing provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.
[0096] Although the present application makes various references to certain modules in the plug-in according to the embodiments of the present application, however, any number of different modules can be used and run on the user terminal and / or server. The included individual units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0097] The above specific implementation manners do not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present application shall be included within the protection scope of the present application. In some cases, the actions or steps recorded in the present application can be executed in a different order from that in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. An intelligent dimensioning method for CAD drawing, characterized in that, The method includes: Invoking the native interface of CAD software to traverse the CAD atlas for extracting annotation objects, and obtaining the original information of multiple annotation attributes of multiple original CAD drawings, where the multiple original CAD drawings correspond to multiple assembly entities; Interactively obtaining multiple assembly relationship features of the multiple assembly entities; According to the multiple assembly relationship features, performing conflict correction on the original information of the multiple annotation attributes to obtain multiple corrected attribute information; Loading a predefined symbol annotation rule library, and performing non-standard symbol matching conversion on the multiple corrected attribute information to obtain multiple symbolized attribute information; Structurally and incrementally annotating the multiple symbolized attribute information on the multiple original CAD drawings to obtain multiple annotated CAD drawings; By performing index analysis on the multiple corrected attribute information, constructing a functional index annotation for the multiple annotated CAD drawings.
2. The intelligent dimensioning method for CAD drawing according to claim 1, wherein According to the multiple assembly relationship features, performing conflict correction on the original information of the multiple annotation attributes to obtain multiple corrected attribute information, and the method includes: Based on the multiple assembly relationship features, through adjacent entity annotation derivation, restoring missing annotations of the original information of the multiple annotation attributes to obtain multiple restored attribute information; According to the multiple assembly relationship features, performing cross-drawing geometric tolerance verification on the multiple restored attribute information to obtain a cross-drawing conflict set; Based on the cross-drawing conflict set, performing directional conflict correction on the multiple restored attribute information to obtain the multiple corrected attribute information.
3. The intelligent dimensioning method for CAD drawing according to claim 2, characterized in that, Before performing cross-drawing geometric tolerance verification on the multiple restored attribute information according to the multiple assembly relationship features to obtain a cross-drawing conflict set, the method includes: Networking and retrieving multiple single-drawing conflict rules according to the entity types of the multiple assembly entities; Based on the first single-drawing conflict rule, traversing the first restored attribute information for internal self-consistency verification of a single drawing to obtain a first single-drawing conflict defect set; Retrieving and invoking a first correction information library based on the first single-drawing conflict defect set; Using the first single-drawing conflict defect set to traverse the first correction information library and extracting a first single-drawing conflict correction set; Using the first single-drawing conflict correction set to perform local attribute replacement on the first restored attribute information to obtain first single-drawing attribute information; And so on, performing single-drawing conflict correction on the multiple restored attribute information according to the multiple single-drawing conflict rules to obtain multiple single-drawing attribute information; According to the multiple assembly relationship features, performing cross-drawing geometric tolerance verification on the multiple single-drawing attribute information.
4. The intelligent dimensioning method for CAD drawing according to claim 3, characterized in that, Retrieving and invoking a first correction information library based on the first single-drawing conflict defect set, and the method includes: Extracting a first entity structure feature from a first original CAD drawing; Filtering out the first single-drawing conflict defect set from the first restored attribute information to obtain first compliant attribute information; Using the first compliant attribute information and the first entity structure feature as retrieval conditions to locally match and invoke the first correction information library.
5. The intelligent dimensioning method for CAD drawing according to claim 2, characterized in that, Performing cross-drawing geometric tolerance verification on the multiple restored attribute information according to the multiple assembly relationship features to obtain a cross-drawing conflict set, and the method includes: Constructing a global assembly tree of the target assembly structure according to the multiple assembly relationship features, wherein the global assembly tree is a P layer; Starting from the P-1th layer, the global assembly tree is decomposed layer by layer at the component level to obtain a multi-layer component level assembly subtree set; After the matching tolerance of the part entities in the monomer component level assembly subtree of the multi-layer component level assembly subtree set is corrected, the hierarchical dimension chain closure verification from the bottom up is performed on the multi-layer component level assembly subtree set to locate the cross-drawing conflict set.
6. The intelligent dimensioning method for CAD drawing according to claim 5, wherein, The method further comprises: Interactively obtain multiple groups of sample tolerance combinations of multiple sample part combinations in multiple sample matching scenarios; The plurality of sample part combinations, the plurality of sample matching scenarios and the plurality of groups of sample tolerance combinations are stored in an associated manner to complete the construction of a matching rule library; Analyze the cross-drawing conflict set and output O real-time coordination scenarios of O real-time part combinations; Taking the O real-time part combinations and O real-time matching scenarios as two-dimensional matching conditions, traversing the matching rule library, and obtaining O sample tolerance combinations; Taking the cross-drawing conflict set as a correction guide, the O sample tolerance combinations are used to perform tolerance correction on the multi-layer component-level assembly subtree set.
7. The intelligent dimensioning method for CAD drawing according to claim 2, wherein, According to the cross-drawing conflict set, directional conflict correction is performed on the multiple restored attribute information to obtain the multiple corrected attribute information. The method further includes: Call conflicting priority rules; Aggregate the cross-drawing conflict set according to the conflict priority rule to obtain a multi-level priority conflict set; After correcting the multi-level priority conflict set according to the multi-level conflict correction strategy mapping, a closed-loop feedback verification is performed until the update result of the cross-drawing conflict set is an empty set, and a conflict correction information set is output; According to the cross-drawing conflict set, the conflict correction information set is used to perform local attribute replacement on the plurality of restored attribute information to obtain the plurality of corrected attribute information.
8. The intelligent dimensioning method for CAD drawing according to claim 1, wherein By performing index analysis on the plurality of modified attribute information, constructing functional index annotations of the plurality of annotated CAD drawings, the method further comprises: Performing multimodal index analysis on the multiple modified attribute information to obtain multiple index sub-topologies of the multiple assembly entities; Merging the multiple index sub-topologies to construct a CAD drawing index topology; The multiple annotated CAD drawings are stored in the CAD drawing index topology to complete the functional index annotation of the CAD atlas.
9. The intelligent dimensioning method for CAD drawing according to claim 1, characterized in that The method further comprises: After fuzzy correction is performed on the multiple corrected attribute information, the symbol annotation rule library is used to perform non-standard symbol matching conversion on the multiple corrected attribute information to obtain the multiple symbolized attribute information.
10. An intelligent dimensioning plug-in for CAD drawing, characterized in that, The plug-in is used to implement the intelligent annotation method for CAD drawing according to any one of claims 1 to 9, and the plug-in includes: The annotation object extraction module is used to call the native interface of the CAD software to traverse the CAD drawing set to extract the annotation objects, and obtain multiple annotation attribute original information of multiple original CAD drawings, wherein the multiple original CAD drawings correspond to multiple assembly entities; An assembly relationship feature acquisition module, used for interactively acquiring a plurality of assembly relationship features of the plurality of assembly entities; A conflict correction module, configured to perform conflict correction on the original information of the multiple annotation attributes according to the multiple assembly relationship features, so as to obtain multiple corrected attribute information; A non-standard symbol matching and conversion module, configured to load a predefined symbol annotation rule library, perform non-standard symbol matching and conversion on the multiple corrected attribute information, so as to obtain multiple symbolized attribute information; An annotation module, configured to incrementally and structurally annotate the multiple symbolized attribute information on the multiple original CAD drawings, so as to obtain multiple annotated CAD drawings; An index analysis module, configured to construct a functional index annotation of the multiple annotated CAD drawings by performing index analysis on the multiple corrected attribute information.
Citation Information
Patent Citations
Quick positioning and display method for key components in maintenance geometry model based on ontology
CN106649988A
Rapid optimization method and system for overlapping annotation of drawings
CN117953187A
Water conservancy project CAD drawing examination method and system based on ezdxf library
CN118965507A
Collaborative design method and system based on CAD platform
CN119848964A
CAD data generating device and generating method
US20060279572A1
Cited By
System and method for quickly changing drawing unit
CN120579356A
A system and method for rapidly changing the units of a drawing
CN120579356B