CN-121999510-A - Error processing method, system, equipment, medium and product
Abstract
The invention relates to the technical field of CAD (computer aided design), in particular to an error processing method, system, equipment, medium and product, which comprises the steps of obtaining a drawing file, wherein the drawing file comprises at least one drawing space, and at least one element is included in the drawing space; identifying drawing formats in a drawing space and at least one item of drawing information corresponding to an element, wherein the drawing information comprises one or more of labeling content and characteristic content, the characteristic content is geometric information for describing geometric characteristics of the element, selecting corresponding rules to check drawing files to correspondingly acquire at least one piece of error information, the error information comprises an error target, an error type and the error target is the drawing space or the element, and prioritizing the error information according to the error target and the error type. The error processing method adopted by the invention can improve the reliability and accuracy of autonomous error identification and repair on the basis of reducing the labor intensity of engineers.
Inventors
- TIAN YE
- ZHANG QINBIN
- LI QIANG
- XI HUI
- WANG WEI
Assignees
- 苏州浩辰软件股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241105
Claims (10)
- 1. An error handling method, comprising the steps of: S101, acquiring a drawing file, wherein the drawing file comprises at least one drawing space, and the drawing space comprises at least one element; S102, identifying drawing formats in the drawing space and identifying at least one item of drawing information corresponding to the element, wherein the drawing information comprises one or more of annotation content and feature content, and the feature content is geometric information for describing geometric features of the element; s103, selecting a corresponding rule to check the drawing file so as to correspondingly acquire at least one error message, wherein the error message comprises an error target and an error type, and the error target is the drawing space or the element, and S103 comprises: (1) Judging whether the drawing format and/or the labeling content have first error information or not by adopting a first type of checking rule, wherein the first type of checking rule comprises a plurality of checking items, and the checking items have at least one set attribute; (2) Judging whether the characteristic content has second error information or not by adopting a second type of checking rule, wherein the second type of checking rule comprises at least one AI detection model; s104, prioritizing the error information according to the error target and the error type.
- 2. The error handling method according to claim 1, wherein when the error target is the element, correspondingly, S104 comprises the steps of: S41, judging whether the error type is a first type of error, wherein the first type of error comprises one or more of line disconnection, size error, graph misalignment, graph asymmetry and graph overlapping, and if yes, executing S42; S42, judging whether at least one referenced object and/or a reference object exists in the current error target; If yes, go to S43; if not, entering S44; s43, judging whether the at least one referenced object and/or the referenced object is identified as the error target, if so, returning to S42, otherwise, entering S44; S44, classifying the error targets identified in S41-S43 into the same priority.
- 3. The error handling method of claim 2, further comprising the step of: identifying a first number of the reference objects of the error target and an error level of the error target when the error type is the first type of error; When the first number is less than a first set number, allowing an automatic repair step to be performed on the false target.
- 4. A method of error handling according to claim 3, wherein when the error type is line break, the step of automatically repairing comprises: Acquiring a first straight line with a disconnected first end point; Querying a second straight line with a broken second endpoint in the drawing space; Connecting the first line and the second line to simulate and generate a third line; And verifying the third straight line by adopting the corresponding labeling content, and displaying the third straight line to a user after the third straight line passes the verification, wherein the labeling content is judged to be accurate information by the first type of inspection rule.
- 5. The method of claim 4, wherein the first line belongs to a first element and the second line belongs to a second element, and wherein the step of connecting the first line and the second line to simulate generating a third line comprises: Identifying whether a reference relationship exists between the corresponding second element and the first element when at least two second straight lines exist; Selecting the second straight line corresponding to the second element with the reference relation with the first element as a recommended straight line; And connecting the first straight line and the recommended straight line to simulate and generate the third straight line.
- 6. An error handling method according to any one of claims 1-5, characterized in that in S103, before performing step (2), it comprises the steps of: and judging that the drawing format and/or the labeling content does not have first error information or the first error information is repaired by adopting a first type of checking rule.
- 7. An error handling system, comprising: The drawing acquisition module is used for acquiring a drawing file, wherein the drawing file comprises at least one drawing space, and the drawing space comprises at least one element; The identification module is used for identifying drawing formats in the drawing space and identifying at least one item of drawing information corresponding to the element, wherein the drawing information comprises one or more of annotation content and feature content, and the feature content is geometric information for describing geometric features of the element; The checking module is used for selecting a corresponding rule to check the drawing file so as to correspondingly acquire at least one error message, wherein the error message comprises an error target and an error type, and the error target is the drawing space or the element, and the checking module is used for executing the following steps: (1) Judging whether the drawing format and/or the labeling content have first error information or not by adopting a first type of checking rule, wherein the first type of checking rule comprises a plurality of checking items, and the checking items have at least one set attribute; (2) Judging whether the characteristic content has second error information or not by adopting a second type of checking rule, wherein the second type of checking rule comprises at least one AI detection model; And the error information sequencing module is used for sequencing the priority of the error information according to the error target and the error type.
- 8. An electronic device, comprising: One or more processors; One or more memories; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-6.
- 9. A computer readable storage medium, characterized in that the storage medium has stored therein a program or instructions which, when executed, implement the method of any of claims 1 to 6.
- 10. A computer program product, characterized in that it has stored therein a program or instructions which, when executed, implement the method according to any of claims 1 to 6.
Description
Error processing method, system, equipment, medium and product Technical Field The invention relates to the technical field of Computer aided design (Computer AIDED DESIGN, CAD), in particular to an error processing method, an error processing system, error processing equipment, error processing media and error processing products. Background CAD technology is an indispensable tool in the fields of current engineering design, construction, manufacturing, and the like. With the continued development and popularity of CAD technology, designers and engineers are able to more efficiently create, modify, and optimize design drawings. However, as the design complexity increases and the design cycle shortens, errors in the drawing correspondingly increase, and error detection and repair become an important and troublesome problem. In conventional CAD workflows, error detection and repair relies primarily on the expertise and experience of designers and engineers. As design complexity increases, manual error detection and handling becomes both time consuming and error prone, thereby greatly increasing the labor intensity of the engineer. In contrast, in the prior art, an automatic error correction function is proposed, for example, CN101446999a discloses an automatic checking method for marking errors on dimension lines of an engineering drawing, the method starts from free lines in the engineering drawing, a large number of scattered dimension line shapes in the engineering drawing are automatically identified and combined into dimension line groups, a two-way matching method is used for searching dimension identification character strings of the dimension lines, whether the dimension marks have missed marks or multiple mark errors is checked in the matching process, and then on the basis of extracting axes and generating axis groups and axis networks, whether semantic conflicts exist among the dimension line marks is further checked. For another example, CN118013298a discloses an artificial intelligence based CAD drawing error detection method and system, the method comprising obtaining a CAD drawing to be identified and loading into a target CAD drawing detection model. And obtaining target CAD drawing feature vectors matched with each task scene category by executing feature extraction operation. The target CAD drawing detection model is trained according to the antagonism cost parameter, and the parameter characterizes the consistency level of the target drawing task detection feature vector. And then, determining a target CAD drawing error detection result of the CAD drawing matching to be identified according to the matched target CAD drawing feature vector and the matched target drawing error detection subnetwork. However, with the improvement of the complexity of the CAD design, the data volume of the CAD drawing is very huge, and the complexity of the drawing content is also higher and higher, so that great challenges are brought to the CAD error detection technology. Disclosure of Invention The invention aims to provide an error processing method, an error processing system, error processing equipment, error processing media and error processing products, which partially solve or relieve the defects in the prior art, can simplify the difficulty of automatic identification and processing of error information of a large number of drawings, and improve the accuracy and reliability of error detection and repair. In order to solve the technical problems, the invention adopts the following technical scheme: In a first aspect of the present invention, there is provided an error handling method comprising the steps of: S101, acquiring a drawing file, wherein the drawing file comprises at least one drawing space, and the drawing space comprises at least one element; S102, identifying drawing formats in the drawing space and identifying at least one item of drawing information corresponding to the element, wherein the drawing information comprises one or more of annotation content and feature content, and the feature content is geometric information for describing geometric features of the element; s103, selecting a corresponding rule to check the drawing file so as to correspondingly acquire at least one error message, wherein the error message comprises an error target and an error type, and the error target is the drawing space or the element, and S103 comprises: (1) Judging whether the drawing format and/or the labeling content have first error information or not by adopting a first type of checking rule, wherein the first type of checking rule comprises a plurality of checking items, and the checking items have at least one set attribute; (2) Judging whether the characteristic content has second error information or not by adopting a second type of checking rule, wherein the second type of checking rule comprises at least one AI detection model; Further, the method also includes S104, prioritizing the error i