CN117932708A - Method for generating examination rules by fusing standard file and CAD data analysis - Google Patents

Method for generating examination rules by fusing standard file and CAD data analysis Download PDF

Info

Publication number
CN117932708A
CN117932708A CN202311847348.XA CN202311847348A CN117932708A CN 117932708 A CN117932708 A CN 117932708A CN 202311847348 A CN202311847348 A CN 202311847348A CN 117932708 A CN117932708 A CN 117932708A
Authority
CN
China
Prior art keywords
file
standard
data
cad
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311847348.XA
Other languages
Chinese (zh)
Inventor
王添
刘振波
李明高
田寅
胡浩
程永超
刘文广
刘蕊
马志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Industry Institute Co Ltd
Original Assignee
CRRC Academy Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Academy Co Ltd filed Critical CRRC Academy Co Ltd
Priority to CN202311847348.XA priority Critical patent/CN117932708A/en
Publication of CN117932708A publication Critical patent/CN117932708A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method for generating an examination rule by fusing standard files and CAD data analysis, which relates to the technical field of computer data processing, and comprises the following steps: obtaining a standard file and generating a rule set file based on the standard file; acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected; and determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined. The invention makes the creation and updating of the examination rules not dependent on manual operation of experts, realizes the automation of the creation and updating of the examination rules, saves a great deal of time cost and labor cost, is suitable for the field of rapid development or special requirements, thereby improving the rapid adaptability of the model examination system to new standards or changes and facilitating the examination of CAD models.

Description

Method for generating examination rules by fusing standard file and CAD data analysis
Technical Field
The invention relates to the technical field of computer data processing, in particular to a method for generating an inspection rule by fusing standard files and CAD data analysis.
Background
The importance of Computer aided design (Computer AIDED DESIGN, CAD) data is self-evident in the engineering and manufacturing industries. CAD data contains complex design details, geometry and material properties, which are critical to the design, manufacture and inspection of the product. Thus, CAD data often needs to be reviewed based on industry standards, specifications, and technical files to ensure that the design meets certain quality standards and rules. The review of CAD data is a labor intensive process that a design engineer or quality control specialist needs to manually review and compare to the relevant standard files. This conventional method is not only time consuming but also prone to errors, especially when processing large or complex CAD data. In addition, due to the continual updating of industry standards, maintaining the latest nature of censoring rules is also a significant requirement for enterprises.
In the prior art, the examination of CAD models is generally required by enterprises, and developers combine with enterprise designers, standardization personnel and informationalized personnel to define a detailed set of examination rules based on industry standards, design criteria, safety specifications and the like, encode the examination rules into a format which can be identified by software, and integrate the examination rules into a model examination system. However, the existing model inspection system is generally static in inspection rule, the creation of the inspection rule depends on manual work, and the updating and maintenance also depend on manual work, so that the creation, updating and verification of a new inspection rule require a lot of time and labor cost, and the creation of the rule requires a lot of time, thus being not suitable for the field of rapid development or special requirements, and limiting the rapid adaptation capability of the model inspection system to new standards or changes.
Disclosure of Invention
The invention provides a method for generating an inspection rule by fusing standard files and CAD data analysis, which is used for solving the defects that the creation of the inspection rule depends on manual work and needs manual updating and maintenance of an expert in the prior art, realizing the automation of the creation and updating of the inspection rule and facilitating the inspection of a CAD model.
The invention provides a method for generating an examination rule by fusing standard files and CAD data analysis, which comprises the following steps:
Obtaining a standard file and generating a rule set file based on the standard file;
acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
According to the method for generating the examination rules by fusing the analysis of the standard file and the CAD data, the standard file is acquired, and the rule set file is generated based on the standard file, and the method comprises the following steps:
obtaining a standard file, wherein the standard file comprises a standard CAD file and/or an unstructured standard data file;
determining a standard data file based on the standard CAD file, the standard data file including all standard data in the standard CAD file;
And generating the rule set file based on the standard data file and/or the unstructured standard data file, wherein the rule set file comprises all standard data in the standard CAD file and rules corresponding to all standard data in the unstructured standard data file.
According to the method for generating the censoring rule by fusing the standard file and the CAD data analysis, which is provided by the invention, the method further comprises the following steps:
Visually outputting the rule set file;
And processing the rule set file based on a rule operation instruction to obtain a processed rule set file, wherein the rule operation instruction comprises a modification instruction and/or a retrieval instruction.
According to the method for generating the examination rule by fusing the analysis of the standard file and the CAD data, the rule set file is processed based on the rule operation instruction, and the processed rule set file is obtained, which comprises the following steps:
Acquiring the rule operation instruction;
determining a first operation authority of an account corresponding to the rule operation instruction based on the rule operation instruction;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the first operation authority, processing the rule set file based on the rule operation instruction to obtain a processed rule set file.
According to the method for generating the censoring rule by fusing the standard file and the CAD data analysis, the method for determining the censoring data file based on the censoring CAD model comprises the following steps:
invoking a CAD system corresponding to the CAD model to be checked based on the CAD model to be checked;
Extracting object attributes and data attributes of each geometric element of the CAD model to be checked and original topological relations among the geometric elements from the CAD system;
Respectively associating object attributes and data attributes of the geometric elements and original topological relations among the geometric elements with the CAD model to be checked;
Storing object attributes and data attributes of the geometric elements and original topological relations among the geometric elements into an XML file to obtain the data file to be checked;
The object attributes are classified and stored in the XML file in the form of text fragments.
According to the method for generating the censoring rule by fusing the analysis of the standard file and the CAD data, the method for determining the censoring result of the CAD model to be censored based on the rule set file and the data file to be censored comprises the following steps:
Matching and comparing the data file to be checked with the rule set file to determine a first checking result of the CAD model to be checked;
determining shielding information among the geometric elements based on bounding box information and position information in the data attribute of each geometric element;
Determining technological parameters of the CAD model to be inspected based on the original topological relation among the geometric elements;
determining a second examination result of the CAD model to be examined based on the shielding information and the technological parameters;
and determining the examination result of the CAD model to be examined based on the first examination result and the second examination result.
According to the method for generating the censoring rule by fusing the standard file and the CAD data analysis, which is provided by the invention, the method further comprises the following steps:
Acquiring an operation instruction of a model to be checked, wherein the operation instruction of the model to be checked comprises one or more of an addition instruction, a deletion instruction and a retrieval instruction;
determining a second operation authority of an account corresponding to the operation instruction of the model to be checked based on the operation instruction of the model to be checked;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the second operation authority, performing one or more of adding operation, deleting operation and searching operation on the CAD model to be checked based on the operation instruction of the model to be checked.
The invention also provides a device for generating the examination rule by fusing the standard file and the CAD data analysis, which comprises the following steps:
The generation module is used for acquiring a standard file and generating a rule set file based on the standard file;
the determining module is used for acquiring a CAD model to be inspected, determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And the examination module is used for determining examination results of the CAD model to be examined based on the rule set file and the data file to be examined.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for generating the examination rules by fusing the standard file and the CAD data analysis when executing the program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an audit rule generating method of fusing standard files and CAD data parsing as described in any one of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements an audit rule generating method of fusing standard files and CAD data parsing as described in any one of the above.
According to the method for generating the examination rules by fusing the standard file and the CAD data analysis, the rule set file can be automatically generated based on the standard file by acquiring the standard file, the CAD model to be examined is acquired, and the data file to be examined is determined based on the CAD model to be examined, wherein the data file to be examined comprises all data to be examined of the CAD model to be examined. And furthermore, the CAD model to be inspected can be automatically inspected based on the rule set file and the data file to be inspected, and the inspection result of the CAD model to be inspected is determined, so that the creation and the update of the inspection rule are not dependent on manual operations of an expert, the automation of the creation and the update of the inspection rule is realized, a great deal of time cost and labor cost are saved, and the method is suitable for the field of rapid development or special requirements, thereby improving the rapid adaptability of a model inspection system to new standards or changes and facilitating the inspection of the CAD model.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for generating an inspection rule by fusing a standard file and CAD data analysis according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of generating a rule set file according to an embodiment of the present invention;
FIG. 3 is a flow chart of determining a data file to be censored according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of determining an inspection result according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an examination rule generating device for fusing standard file and CAD data analysis according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Aiming at the problems that the creation of the inspection rules depends on manual work and requires manual updating and maintenance of an expert in the prior art, the invention provides an inspection rule generation method for analyzing the fusion standard file and the CAD data, and fig. 1 is a flow diagram of the inspection rule generation method for analyzing the fusion standard file and the CAD data, provided by the embodiment of the invention, as shown in fig. 1, the inspection rule generation method for analyzing the fusion standard file and the CAD data comprises the following steps:
step 110: and obtaining a standard file and generating a rule set file based on the standard file.
FIG. 2 is a schematic flow chart of generating a rule set file according to an embodiment of the present invention, as shown in FIG. 2, in one embodiment, the obtaining a standard file, generating a rule set file based on the standard file includes the following steps:
Step 210: obtaining a standard file, wherein the standard file comprises a standard CAD file and/or an unstructured standard data file;
step 220: determining a standard data file based on the standard CAD file, the standard data file including all standard data in the standard CAD file;
Step 230: and generating the rule set file based on the standard data file and/or the unstructured standard data file, wherein the rule set file comprises all standard data in the standard CAD file and rules corresponding to all standard data in the unstructured standard data file.
Specifically, a standard file may be obtained, and the standard file may include a standard CAD file, an unstructured standard data file, and a standard CAD file and an unstructured standard data file. In the case where the acquired standard file includes a standard CAD file, all standard data in the standard CAD file, and thus, rules corresponding to all standard data in the standard CAD file may be determined based on the standard CAD file, and further, the standard data file may be determined based on the rules corresponding to all standard data in the standard CAD file (for example, a rule corresponding to one standard data in the standard CAD file may be determined based on that the line width of the thin solid line is 0.25b (b represents a line width basic unit), and thus, the standard data file is determined based on the rules). In the case that the acquired standard file includes an unstructured standard data file, rules corresponding to all standard data in the unstructured standard data file may be determined based on the unstructured standard data file (for example, rules corresponding to standard data of Chinese character height, english character and number height in the unstructured standard data file are that Chinese character height should be not less than 3.5mm and English character and number height should be not less than 2.5mm respectively). In the case where the acquired standard file includes a standard CAD file and an unstructured standard data file, a rule sentence may be generated based on rules corresponding to all standard data in the standard CAD file and all standard data in the unstructured standard data file, and finally the rule sentences are combined to generate a rule set file. It is readily understood that the rule set file may include rules corresponding to all of the standard data in the plurality of standard CAD files and rules corresponding to all of the standard data in the plurality of unstructured standard data files.
Optionally, the rule set files may be further managed in a grouping manner, for example, the rule set files are grouped for different companies, the rule set files corresponding to the company are determined for different companies, and when the CAD model to be inspected of the company needs to be inspected, the rule set files corresponding to the company are called to inspect the CAD model to be inspected. The rule set file automatically generated can be managed in a unified way through a rule base, such as management operations of new creation, storage, deletion, storage as well as regrouping and the like.
For example, a standard file that is commonly used by a company may be obtained, a standard data file corresponding to the company may be determined based on a standard CAD file that is commonly used by the company, and a rule set file corresponding to the company may be determined based on the standard data file corresponding to the company and/or an unstructured standard data file that is commonly used by the company. For example, a standard file "house building CAD drawing unified rule" commonly used by a building company may be obtained, and a rule set file corresponding to the company may be determined based on the standard file "house building CAD drawing unified rule".
In the above embodiment, the CAD file and/or the unstructured standard data file are acquired, and the rule set file is generated based on the CAD file and/or the unstructured standard data file, so that the inspection rule can be automatically constructed and updated, and the CAD model to be inspected can be automatically inspected based on the rule set file later.
Step 120: and acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected.
FIG. 3 is a schematic flow chart of determining a data file to be inspected according to an embodiment of the present invention, as shown in FIG. 3, in one embodiment, the determining the data file to be inspected based on the CAD model to be inspected includes the following steps:
step 310: invoking a CAD system corresponding to the CAD model to be checked based on the CAD model to be checked;
step 320: extracting object attributes and data attributes of each geometric element of the CAD model to be checked and original topological relations among the geometric elements from the CAD system;
Step 330: respectively associating object attributes and data attributes of the geometric elements and original topological relations among the geometric elements with the CAD model to be checked;
step 340: storing object attributes and data attributes of the geometric elements and original topological relations among the geometric elements into an XML file to obtain the data file to be checked;
The object attributes are classified and stored in the XML file in the form of text fragments.
Specifically, after the to-be-inspected CAD model is obtained, a CAD system corresponding to the to-be-inspected CAD model may be called based on the to-be-inspected CAD model, and then the object attribute, the data attribute, and the original topological relation between the geometric elements of the to-be-inspected CAD model may be extracted from the CAD system corresponding to the to-be-inspected CAD model. Geometric elements of the CAD model to be inspected may include title bars, frames, centerlines, break lines, roughness, geometric tolerances, and the like. Where the geometric element includes a title bar, the object properties of the geometric element may include: the data attributes of the geometric elements may include thick solid lines, thin solid lines, line widths, and colors: name, scale, graphic, product number, design code, and weight. Where the geometric element includes a frame, a centerline, a break line, roughness, and form and position tolerances, the object properties of the geometric element may include: the data attributes of the geometric elements may include, for example, graph configuration, line type, line width, and color: minimum bounding box coordinates and position coordinates. The original topological relation among the geometric elements can comprise topological relations among points, lines, planes and volumes, and can be topological relations such as point-to-point adjacency relation, point-to-plane inclusion relation, line-to-plane separation relation, plane-to-plane coincidence relation and the like. And then the object attribute and the data attribute of each geometric element and the original topological relation among the geometric elements can be respectively associated with the CAD model to be checked, for example, the object attribute and the data attribute of each geometric element and the Unique Identifier (UID) corresponding to the original topological relation among the geometric elements and the CAD model to be checked can be respectively set. The object attribute and the data attribute of each geometric element and the original topological relation among the geometric elements can be further stored in an XML file to obtain a data file to be checked, and the data file to be checked is obviously a file in an XML format. The object attributes may be classified in the form of text fragments, so as to obtain classified object attributes in the form of text fragments, and the classified object attributes in the form of text fragments may be stored in an XML file.
In the above embodiment, the object attribute and the data attribute of each geometric element of the CAD model to be inspected and the original topological relation between the geometric elements are determined based on the CAD model to be inspected, and then the object attribute and the data attribute of each geometric element after being associated with the CAD model to be inspected and the original topological relation between the geometric elements are stored in the XML file to determine the data file to be inspected. The method lays a foundation for determining the examination result based on the data file to be examined and the rule set file, and facilitates examination of the CAD model to be examined. In addition, in the embodiment, decoupling of the CAD model to be inspected and the rule set file is achieved, so that the inspected rule set file has better expansibility and flexibility.
Step 130: and determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
FIG. 4 is a schematic flow chart of determining a result of examination provided by an embodiment of the present invention, as shown in FIG. 4, in one embodiment, the determining the result of examination of the CAD model based on the rule set file and the data file to be examined includes the following steps:
step 410: matching and comparing the data file to be checked with the rule set file to determine a first checking result of the CAD model to be checked;
Step 420: determining shielding information among the geometric elements based on bounding box information and position information in the data attribute of each geometric element;
step 430: determining technological parameters of the CAD model to be inspected based on the original topological relation among the geometric elements;
step 440: determining a second examination result of the CAD model to be examined based on the shielding information and the technological parameters;
Step 450: and determining the examination result of the CAD model to be examined based on the first examination result and the second examination result.
Specifically, the data file to be inspected and the rule set file may be matched and compared, whether the header, the detail table, the line type and other conventional information in the data file to be inspected are matched with the header, the detail table, the line type and other conventional information in the rule set file or not is determined, and further, a first inspection result of the CAD model to be inspected is determined, where the first inspection result may include success and failure of matching, for example, a color of a line in the data file to be inspected is red, and a color of a line in the rule set file includes red, yellow and green, which indicates that the color of a line in the rule set file matched with the data file to be inspected exists, and further, it may be determined that the first inspection result of the CAD model to be inspected is successful. Because the first examination result can only reflect the examination result of the conventional information, and for more complex information, matching comparison cannot be directly carried out on the basis of the data file to be examined and the rule set file, more complex examination such as examination of the rationality of the process is determined by the second examination result. Occlusion information between geometric elements can be further determined based on bounding box information and position information in data attributes of the geometric elements, for example, occlusion between any two planes can be determined based on bounding box information and position information in data attributes of the two planes, and as occlusion cannot exist between the planes, a second examination result of the CAD model to be examined can be determined to be examination failure. And the process parameters of the CAD model to be inspected can be determined based on the original topological relation among the geometric elements, for example, the process characteristic identification and calculation can be performed based on the inner and outer closed loop judgment rules of the model, and further the process parameters of the CAD model to be inspected can be determined based on the original topological relation between the square plane of the outer ring instance and the circular hole of the inner net instance in the square plane, namely, whether the connection position from the edge of the circular hole in the square plane to the edge of the square plane meets the preset distance can be determined, and the connection position is possibly broken due to the fact that the connection position is not met, so that the rationality inspection of the process is unqualified, and the second inspection result is inspection failure. A second inspection result of the CAD model to be inspected may further be determined based on the occlusion information and the process parameters, and the second inspection result may include inspection success and inspection failure.
Finally, the censoring results of the CAD model to be censored may be determined based on the first censoring results and the second censoring results, e.g., the censoring results of the CAD model to be censored may include censoring passed and censoring failed.
Further, an inspection report can be generated based on the matching condition of the data file to be inspected and the rule set file, shielding information among the geometric elements and the technological parameters of the CAD model to be inspected, and the inspection report can comprise a first inspection result, a second inspection result and an inspection result of the CAD model to be inspected.
Alternatively, in the case where the first examination result is a failure in matching, that is, in the case where the conventional information such as the title bar, the detail table, and the line type in the data file to be examined is not matched with the conventional information such as the title bar, the detail table, and the line type in the rule set file, the examination result for examining the CAD model may be directly determined based on the first examination result without determining the second examination result.
In the above embodiment, the first and second examination results of the CAD model to be examined are determined based on the rule set file and the data file to be examined, and the examination result of the CAD model to be examined is further determined based on the first and second examination results, thereby completing the automatic examination of the CAD model.
According to the method for generating the examination rules by fusing the standard file and the CAD data analysis, the rule set file can be automatically generated based on the standard file by acquiring the standard file, the CAD model to be examined is acquired, and the data file to be examined is determined based on the CAD model to be examined, wherein the data file to be examined comprises all data to be examined of the CAD model to be examined. And furthermore, the CAD model to be inspected can be automatically inspected based on the rule set file and the data file to be inspected, and the inspection result of the CAD model to be inspected is determined, so that the creation and the update of the inspection rule are not dependent on manual operations of an expert, the automation of the creation and the update of the inspection rule is realized, a great deal of time cost and labor cost are saved, and the method is suitable for the field of rapid development or special requirements, thereby improving the rapid adaptability of a model inspection system to new standards or changes and facilitating the inspection of the CAD model.
In one embodiment, the method further comprises:
Visually outputting the rule set file;
And processing the rule set file based on a rule operation instruction to obtain a processed rule set file, wherein the rule operation instruction comprises a modification instruction and/or a retrieval instruction.
Specifically, the rule set file may be visually output to the display interface, and a rule operation instruction may be received, where the rule operation instruction may be manually input, or may be sent by another terminal, and after receiving the rule operation instruction, the rule set file may be processed based on the rule operation instruction, to obtain a processed rule set file, where the rule operation instruction includes a modification instruction (where the modification instruction may also include an addition instruction, an update instruction, and a deletion instruction) and/or a search instruction. For example, after receiving a manually input search instruction, a search operation may be performed in the rule set file to obtain a rule set file corresponding to the search instruction.
In the embodiment, the rule set file is visually output, so that a user can intuitively observe the examination rules in the rule set file, and the rule set file can be processed based on the rule operation instructions, so that the processed rule set file is obtained, and the user can conveniently modify and inquire the rule set file.
In one embodiment, the processing the rule set file based on the rule operation instruction to obtain a processed rule set file includes:
Acquiring the rule operation instruction;
determining a first operation authority of an account corresponding to the rule operation instruction based on the rule operation instruction;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the first operation authority, processing the rule set file based on the rule operation instruction to obtain a processed rule set file.
Specifically, a rule operation instruction may be obtained, where the rule operation instruction may be manually input, or may be sent by another terminal. The first operation authority of the account corresponding to the rule operation instruction can be determined based on the rule operation instruction, and further, whether the account can execute the operation corresponding to the rule operation instruction or not can be determined based on the first operation authority. In the case that the account is determined to be capable of executing the operation corresponding to the rule operation instruction based on the first operation authority, the rule set file may be processed based on the rule operation instruction (including the modification instruction and/or the search instruction), and the processed rule set file may be obtained.
In the above embodiment, the first operation authority of the account corresponding to the rule operation instruction is determined based on the rule operation instruction, and the rule set file is processed based on the rule operation instruction only when the account is determined to be capable of executing the operation corresponding to the rule operation instruction based on the first operation authority, so as to obtain the processed rule set file. The account with the first operation authority can process the rule set file, and the account without the first operation authority cannot tamper or search to view the rule set file at will.
In one embodiment, the method further comprises:
Acquiring an operation instruction of a model to be checked, wherein the operation instruction of the model to be checked comprises one or more of an addition instruction, a deletion instruction and a retrieval instruction;
determining a second operation authority of an account corresponding to the operation instruction of the model to be checked based on the operation instruction of the model to be checked;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the second operation authority, performing one or more of adding operation, deleting operation and searching operation on the CAD model to be checked based on the operation instruction of the model to be checked.
Specifically, an operation instruction of the model to be checked can be obtained, the operation instruction of the model to be checked includes one or more of an addition instruction, a deletion instruction and a retrieval instruction, and the operation instruction of the model to be checked can be manually input or sent by other terminals.
And further, the second operation authority of the account corresponding to the to-be-inspected model operation instruction can be determined based on the to-be-inspected model operation instruction, and further, whether the account can execute the operation corresponding to the rule operation instruction or not can be determined based on the second operation authority. And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the second operation authority, performing one or more of adding operation, deleting operation and searching operation on the CAD model to be inspected based on the operation instruction of the model to be inspected.
Optionally, a high-level second operation authority and a low-level second operation authority may be set, and one or more of an adding operation, a deleting operation and a retrieving operation may be performed on the CAD model to be inspected based on the inspection model operation instruction in a case that the account corresponding to the inspection model operation instruction has the high-level second operation authority. And under the condition that the account corresponding to the operation instruction of the model to be inspected only has the low-level second operation authority, searching the CAD model to be inspected based on the operation instruction of the model to be inspected.
In the above embodiment, the second operation authority of the account corresponding to the to-be-inspected model operation instruction is determined based on the to-be-inspected model operation instruction, and one or more of the adding operation, the deleting operation and the retrieving operation are performed on the to-be-inspected CAD model based on the to-be-inspected model operation instruction only if the account is determined to be capable of executing the operation corresponding to the rule operation instruction based on the second operation authority. The account number with the second operation authority can operate the CAD model to be inspected, and the account number without the second operation authority cannot be tampered or searched at will to inspect the CAD model to be inspected.
The execution subject of the above-described inspection rule generation method of fusing standard files and CAD data parsing may be a client, which may include, for example, a system support layer, a data layer, a function application layer, and a user operation layer.
The system support layer may include a text driven engine, a model driven engine, a rule driven engine, and the like, wherein the text driven engine includes a text slicing method, a text slicing store, and a text input output interface. The model driving engine comprises classified extraction of to-be-inspected data of the to-be-inspected CAD model, a mapping method of the to-be-inspected CAD model and the inspection rule and storage of the inspection result of the to-be-inspected CAD model. The rule driving engine comprises a rule set file and CAD model association generating method, mapping of an inspection rule and a graphical element model and an input and output interface of the CAD model to be inspected. The rule driving engine can also comprise a rule executor, the rule executor is used for analyzing the input data, storing the input data into the working memory, then carrying out matching check on the rule in the rule file and the input data based on a rule engine kernel algorithm, and outputting result information according to the check result defined in the rule. The core codes of the rule executor are fewer, so that the development workload is reduced to a great extent, a developer only needs to analyze input data and load the input data and the rule file according to a standard format, the execution logic of the executor is well developed, and the executor can be put into use after verification and test are correct, and the later maintenance is rarely needed.
The data layer can be used for storing, reading, modifying, managing and the like various data, wherein the various data can comprise a rule set file, a data file to be checked, a rule formed by associating text slicing logic with a CAD model to be checked and the like.
The functional application layer may include a data extractor, a file manager, and a rule manager.
The user operation layer can comprise a standard file processing module, a CAD model processing module and a rule automatic generation module, wherein the standard file processing module is mainly used for inputting, outputting and associating standard files; the CAD model processing module provides the preliminary generation and modification of CAD model batch import and data files to be checked; the rule auto-generation module primarily supports operations related to automated inspection.
The method and device for generating the examination rules for analyzing the fusion standard file and the CAD data, which are provided by the invention, are described below, and the method and device for generating the examination rules for analyzing the fusion standard file and the CAD data, which are described below, can be correspondingly referred to each other.
Fig. 5 is a schematic structural diagram of an inspection rule generating device for analyzing a fusion standard file and CAD data according to an embodiment of the present invention, and as shown in fig. 5, an inspection rule generating device 500 for analyzing a fusion standard file and CAD data includes:
a generating module 510, configured to obtain a standard file, and generate a rule set file based on the standard file;
a determining module 520, configured to obtain a CAD model to be inspected, determine a data file to be inspected based on the CAD model to be inspected, where the data file to be inspected includes all data to be inspected of the CAD model to be inspected;
And a review module 530, configured to determine a review result of the CAD model to be reviewed based on the rule set file and the data file to be reviewed.
In one embodiment, the generating module 510 is specifically configured to:
obtaining a standard file, wherein the standard file comprises a standard CAD file and/or an unstructured standard data file;
determining a standard data file based on the standard CAD file, the standard data file including all standard data in the standard CAD file;
And generating the rule set file based on the standard data file and/or the unstructured standard data file, wherein the rule set file comprises all standard data in the standard CAD file and rules corresponding to all standard data in the unstructured standard data file.
In one embodiment, the determining module 520 is specifically configured to:
invoking a CAD system corresponding to the CAD model to be checked based on the CAD model to be checked;
Extracting object attributes and data attributes of each geometric element of the CAD model to be checked and original topological relations among the geometric elements from the CAD system;
Respectively associating object attributes and data attributes of the geometric elements and original topological relations among the geometric elements with the CAD model to be checked;
Storing object attributes and data attributes of the geometric elements and original topological relations among the geometric elements into an XML file to obtain the data file to be checked;
The object attributes are classified and stored in the XML file in the form of text fragments.
In one embodiment, the review module 530 is specifically configured to:
Matching and comparing the data file to be checked with the rule set file to determine a first checking result of the CAD model to be checked;
determining shielding information among the geometric elements based on bounding box information and position information in the data attribute of each geometric element;
Determining technological parameters of the CAD model to be inspected based on the original topological relation among the geometric elements;
determining a second examination result of the CAD model to be examined based on the shielding information and the technological parameters;
and determining the examination result of the CAD model to be examined based on the first examination result and the second examination result.
According to the examination rule generating device for fusing the standard file and the CAD data analysis, the rule set file can be automatically generated based on the standard file by acquiring the standard file, the CAD model to be examined is acquired, and the data file to be examined is determined based on the CAD model to be examined, wherein the data file to be examined comprises all data to be examined of the CAD model to be examined. And furthermore, the CAD model to be inspected can be automatically inspected based on the rule set file and the data file to be inspected, and the inspection result of the CAD model to be inspected is determined, so that the creation and the update of the inspection rule are not dependent on manual operations of an expert, the automation of the creation and the update of the inspection rule is realized, a great deal of time cost and labor cost are saved, and the method is suitable for the field of rapid development or special requirements, thereby improving the rapid adaptability of a model inspection system to new standards or changes and facilitating the inspection of the CAD model.
In one embodiment, the apparatus for generating an audit rule for fusing standard file and CAD data resolution further includes a visualization processing module, where the visualization processing module is specifically configured to:
Visually outputting the rule set file;
And processing the rule set file based on a rule operation instruction to obtain a processed rule set file, wherein the rule operation instruction comprises a modification instruction and/or a retrieval instruction.
In one embodiment, the visualization processing module is further specifically configured to:
Acquiring the rule operation instruction;
determining a first operation authority of an account corresponding to the rule operation instruction based on the rule operation instruction;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the first operation authority, processing the rule set file based on the rule operation instruction to obtain a processed rule set file.
In one embodiment, the device for generating the censoring rule by fusing the standard file and the CAD data analysis further comprises an operation module, wherein the operation module is specifically configured to:
Acquiring an operation instruction of a model to be checked, wherein the operation instruction of the model to be checked comprises one or more of an addition instruction, a deletion instruction and a retrieval instruction;
determining a second operation authority of an account corresponding to the operation instruction of the model to be checked based on the operation instruction of the model to be checked;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the second operation authority, performing one or more of adding operation, deleting operation and searching operation on the CAD model to be checked based on the operation instruction of the model to be checked.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform an audit rule generation method that fuses standard files and CAD data parsing, the method comprising:
Obtaining a standard file and generating a rule set file based on the standard file;
acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a method for generating an inspection rule for analyzing CAD data and a fusion standard file provided by the above methods, and the method includes:
Obtaining a standard file and generating a rule set file based on the standard file;
acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of generating an audit rule for fusion standard file and CAD data parsing provided by the above methods, the method comprising:
Obtaining a standard file and generating a rule set file based on the standard file;
acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating an examination rule by fusing a standard file and CAD data analysis is characterized by comprising the following steps:
Obtaining a standard file and generating a rule set file based on the standard file;
acquiring a CAD model to be inspected, and determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And determining the examination result of the CAD model to be examined based on the rule set file and the data file to be examined.
2. The method for generating a review rule for merging a standard file and CAD data resolution according to claim 1, wherein the obtaining the standard file, generating a rule set file based on the standard file, comprises:
obtaining a standard file, wherein the standard file comprises a standard CAD file and/or an unstructured standard data file;
determining a standard data file based on the standard CAD file, the standard data file including all standard data in the standard CAD file;
And generating the rule set file based on the standard data file and/or the unstructured standard data file, wherein the rule set file comprises all standard data in the standard CAD file and rules corresponding to all standard data in the unstructured standard data file.
3. The method of generating an audit rule for merging standard files and CAD data resolution according to claim 2, further comprising:
Visually outputting the rule set file;
And processing the rule set file based on a rule operation instruction to obtain a processed rule set file, wherein the rule operation instruction comprises a modification instruction and/or a retrieval instruction.
4. The method for generating an audit rule for merging standard files and CAD data resolution according to claim 3, wherein said processing said rule set file based on rule manipulation instructions to obtain a processed rule set file comprises:
Acquiring the rule operation instruction;
determining a first operation authority of an account corresponding to the rule operation instruction based on the rule operation instruction;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the first operation authority, processing the rule set file based on the rule operation instruction to obtain a processed rule set file.
5. The method for generating the censoring rules for merging standard file and CAD data parsing according to claim 1, wherein said determining the censoring data file based on the censored CAD model comprises:
invoking a CAD system corresponding to the CAD model to be checked based on the CAD model to be checked;
Extracting object attributes and data attributes of each geometric element of the CAD model to be checked and original topological relations among the geometric elements from the CAD system;
Respectively associating object attributes and data attributes of the geometric elements and original topological relations among the geometric elements with the CAD model to be checked;
Storing object attributes and data attributes of the geometric elements and original topological relations among the geometric elements into an XML file to obtain the data file to be checked;
The object attributes are classified and stored in the XML file in the form of text fragments.
6. The method of generating a review rule for merging standard files and CAD data resolution as recited in claim 5, wherein said determining a review result of said CAD model to be reviewed based on said rule set file and said data file to be reviewed comprises:
Matching and comparing the data file to be checked with the rule set file to determine a first checking result of the CAD model to be checked;
determining shielding information among the geometric elements based on bounding box information and position information in the data attribute of each geometric element;
Determining technological parameters of the CAD model to be inspected based on the original topological relation among the geometric elements;
determining a second examination result of the CAD model to be examined based on the shielding information and the technological parameters;
and determining the examination result of the CAD model to be examined based on the first examination result and the second examination result.
7. The method of generating an audit rule for merging standard file and CAD data parsing according to any one of claims 1 to 6, further comprising:
Acquiring an operation instruction of a model to be checked, wherein the operation instruction of the model to be checked comprises one or more of an addition instruction, a deletion instruction and a retrieval instruction;
determining a second operation authority of an account corresponding to the operation instruction of the model to be checked based on the operation instruction of the model to be checked;
And under the condition that the account can execute the operation corresponding to the rule operation instruction based on the second operation authority, performing one or more of adding operation, deleting operation and searching operation on the CAD model to be checked based on the operation instruction of the model to be checked.
8. An inspection rule generating device for fusing a standard file and CAD data analysis, comprising:
The generation module is used for acquiring a standard file and generating a rule set file based on the standard file;
the determining module is used for acquiring a CAD model to be inspected, determining a data file to be inspected based on the CAD model to be inspected, wherein the data file to be inspected comprises all data to be inspected of the CAD model to be inspected;
And the examination module is used for determining examination results of the CAD model to be examined based on the rule set file and the data file to be examined.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of generating a review rule for fusion of standard files and CAD data parsing as claimed in any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of generating a review rule for fusing standard files and CAD data parsing as claimed in any one of claims 1 to 7.
CN202311847348.XA 2023-12-28 2023-12-28 Method for generating examination rules by fusing standard file and CAD data analysis Pending CN117932708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311847348.XA CN117932708A (en) 2023-12-28 2023-12-28 Method for generating examination rules by fusing standard file and CAD data analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311847348.XA CN117932708A (en) 2023-12-28 2023-12-28 Method for generating examination rules by fusing standard file and CAD data analysis

Publications (1)

Publication Number Publication Date
CN117932708A true CN117932708A (en) 2024-04-26

Family

ID=90767708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311847348.XA Pending CN117932708A (en) 2023-12-28 2023-12-28 Method for generating examination rules by fusing standard file and CAD data analysis

Country Status (1)

Country Link
CN (1) CN117932708A (en)

Similar Documents

Publication Publication Date Title
CN111240994B (en) Vulnerability processing method and device, electronic equipment and readable storage medium
CN111813661B (en) Global service data drive automatic test method, device, equipment and medium
CN107797916B (en) DDL statement auditing method and device
WO2011080062A1 (en) Analyzing objects from a graphical interface for standards verification
CN114968984A (en) Digital twin full life cycle management platform
CN113326247A (en) Cloud data migration method and device and electronic equipment
CN100428243C (en) Method and system for realizing action on model
KR20200001288A (en) Apparatus and Method For Providing Automated Drawing Error Checking
EP3999917B1 (en) Method and system for generating a digital representation of asset information in a cloud computing environment
US20200334399A1 (en) Design support system, design verification method, and design verification program
JP6244274B2 (en) Correlation rule analysis apparatus and correlation rule analysis method
CN117575222A (en) Production management method, system, equipment and storage medium
CN112613176A (en) Slow SQL statement prediction method and system
CN117932708A (en) Method for generating examination rules by fusing standard file and CAD data analysis
CN111814218A (en) Design drawing management method and system
CN116954628A (en) Automatic code merging method and system supporting CICD
JP3195031B2 (en) Test specification generation method, semiconductor device inspection apparatus, and semiconductor device inspection method
CN115344966A (en) CAD assembly body part replacement method and system
CN112256830B (en) Equipment investigation information acquisition method and device and equipment fault investigation system
CN111679983B (en) JAVA interface static test method and device
CN116635843A (en) Apparatus, computing platform and method for analyzing log files of industrial plants
CN113742213A (en) Method, system, and medium for data analysis
CN109558418B (en) Method for automatically identifying information
US20170131973A1 (en) Software specification dependence relation verification apparatus and software specification dependence relation verification method
JP7284654B2 (en) Design support system, design support method and design support program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination