CAD quality batch inspection method

By combining customizable check items and spreadsheet software, batch inspection of CAD files is achieved, solving the problems of insufficient accuracy and convenience in existing technologies. It adapts to the design specifications of different enterprises and improves inspection efficiency and accuracy.

CN121880282APending Publication Date: 2026-04-17GUANGDONG KANGSHUBAO MEDICAL DEVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG KANGSHUBAO MEDICAL DEVICES CO LTD
Filing Date
2025-12-26
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technologies for quality inspection of CAD are insufficient in terms of accuracy, convenience, and efficiency, and cannot adapt to the customized design specifications of different enterprises, making it difficult to meet the quality control needs of large-scale product design.

Method used

By constructing custom secondary development check items and combining the asynchronous connection between the table tool software and the check module, batch checks of CAD files can be achieved, the number of visible features can be counted, the error rate and warning rate can be calculated, and structured reports can be generated.

Benefits of technology

It improves the efficiency and accuracy of CAD quality inspection, can adapt to the customized design specifications of different enterprises, and enhances the accuracy of concurrent engineering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121880282A_ABST
    Figure CN121880282A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of quality inspection, in particular to a CAD quality batch inspection method, which can utilize table tool software to call an inspection module to execute standard inspection, secondary development inspection and visual feature quantity statistics on CAD files, count the total error number and the total warning number according to the results, and calculate and output scores of the CAD files; sorting the CAD files according to the error number; and according to the inspection result, generating a structured report. It can be understood that according to the technical scheme, when mass CAD file quality inspection is carried out, the wanted quality inspection result can be obtained only by operating table tool software, and operation is convenient and fast; meanwhile, self-defined secondary development inspection items can be constructed on the basis of standard inspection items, and customized design specifications of different enterprises are adapted; the checking module is called for batch checking, and the output checking result is accurate; the efficiency of CAD quality batch inspection is improved, and the accuracy of parallel engineering is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of quality inspection technology, and more specifically to a method for batch quality inspection of CAD. Background Technology

[0002] Currently, CAD technology is widely used in key processes such as part modeling, component assembly, and engineering drawing. However, due to differences in the experience level and software proficiency of CAD designers, the quality of CAD data generated during concurrent design processes varies considerably.

[0003] Faced with inconsistent CAD data quality, there is an urgent need for a method to perform CAD quality checks. Traditional CAD quality checks typically rely on manual inspection, which is inefficient, prone to omissions, and unsuitable for the quality control needs of large-scale product designs. While some existing software platforms can perform partial checks—for example, Creo's built-in ModelCheck module provides basic functionality for CAD data quality checks and can verify some common design issues—its check items are fixed and cannot be adapted to the customized design specifications of different companies. Even when using this method for quality checks, additional manual data processing and other operations are still required. Furthermore, existing inspection methods can only output qualitative error or warning messages, failing to summarize and generalize CAD data quality, which is detrimental to quality improvement.

[0004] In summary, existing methods for quality inspection of CAD are insufficient in terms of accuracy, convenience, and efficiency, and can only provide qualitative error or warning information, which is not conducive to quality improvement and concurrent engineering. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to provide a method for batch quality inspection of CAD, so as to solve the problems of insufficient accuracy, convenience and efficiency in the existing technology for quality inspection of CAD.

[0006] According to a first aspect of the present invention, a method for batch inspection of CAD quality is provided, comprising: Use the CAD management system to obtain the CAD files to be inspected; Based on the existing check items in the check module, custom secondary development check items can be built according to the check item configuration entered by the user. The spreadsheet software sends a command to the inspection module to start inspecting the CAD file; The spreadsheet software calls the inspection module to count the number of visible features in the CAD file. The table tool software calls the inspection module to register the secondary development inspection items, and performs batch inspections of the secondary development inspection items and standard inspection items on the CAD files; Extract the total number of errors and warnings from the inspection results of the CAD file; calculate the error rate based on the total number of errors and the number of visible features; calculate the warning rate based on the total number of warnings and the number of visible features; calculate and output the score of the CAD file based on the error rate, warning rate, and preset weights. Sort all CAD files according to the total number of errors in the CAD files; The spreadsheet software generates a structured report of all CAD files based on the inspection results.

[0007] Preferably, before the form tool software calls the inspection module, it also includes: In the spreadsheet tool software, an asynchronous connection is established between the spreadsheet tool software and the inspection module, and the main interface session of the inspection module is bound so that the spreadsheet tool software can call the batch inspection function of the inspection module. In the spreadsheet software, set up the activated server in the CAD management system and establish a connection with it to obtain the name of the workspace storing the CAD files to be inspected. Based on the server information and the workspace name, generate the local access path of the workspace.

[0008] Preferably, the table tool software calls the inspection module to count the number of visible features in the CAD file, including: The spreadsheet software obtains the filenames of all CAD files to be inspected based on the local access path of the workspace, and creates corresponding model description objects that the inspection module can recognize based on the filenames of the CAD files. The inspection module is invoked, and the CAD file model is temporarily displayed on the main interface of the inspection module, and the feature set of the model is obtained. Traverse the feature set, determine whether each feature is visible, and count the number of visible features. The CAD file model is completed by counting the number of visible features in the main interface of the wiping inspection module.

[0009] Preferably, the table tool software calls the inspection module to register the secondary development inspection items and performs batch inspections of the secondary development inspection items on the CAD files, including: Based on the DLL program's local path and text configuration directory, load the DLL program for the secondary development check items in the check module; Based on the format of the CAD file, a preset macro command is run to drive the DLL program to perform custom checks in the secondary development check items; the format of the CAD file is a part format, component format, or engineering drawing format.

[0010] Preferably, when the driver DLL program performs the custom check in the secondary development check items, it also includes: If the DLL program for the secondary development check item has been successfully executed, then uninstall the DLL program. If the DLL program for the secondary development check item is not active, a prompt message will be generated.

[0011] Preferably, after performing batch checks on the CAD files for secondary development checks and standard checks, the process also includes: The storage path for the acquired inspection result data; The contents of the folders are read sequentially from the storage path. If the folder contains the inspection results, the XML files in the folder are read in batches and converted into a table format that can be processed by the table tool software.

[0012] Preferably, all CAD files are sorted, including: Count the total number of all CAD files; Construct a two-dimensional sorted array and fill the sorted array with the filename, error count, warning count, and pass count of the CAD file. Based on the number of errors in the sorted array, the CAD file is bubble sorted to obtain the sorted array data as the sorting result.

[0013] Preferably, a structured report is generated for all CAD files, including: Constructing dynamic arrays; Fill the dynamic array with the result data corresponding to each inspection item in all inspection results; Write data from a dynamic array into a structured report in batches.

[0014] Preferably, the CAD management system is the Windchill system, the spreadsheet software is Excel software, and the inspection module is Creo.

[0015] The technical solution provided by this invention may include the following beneficial effects: It is understood that the technical solution presented in this invention can utilize spreadsheet software to call the inspection module to perform standard checks, secondary development checks, and visual feature quantity statistics on CAD files. Based on the above results, it can calculate the total number of errors and warnings, and output the score of the CAD file. It can also sort the CAD files according to the number of errors and generate structured reports based on the inspection results. It is understood that this technical solution, when facing a large number of CAD file quality checks, can obtain the desired quality inspection results simply by operating the spreadsheet software, making it easy to use. Simultaneously, it can build custom secondary development inspection items based on standard inspection items to adapt to the customized design specifications of different enterprises; it calls the inspection module for batch checks, and the output inspection results are accurate; it improves the efficiency of batch CAD quality checks and enhances the accuracy of concurrent engineering.

[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0018] Figure 1 This is a schematic diagram illustrating the steps of a method for batch quality inspection of CAD according to an exemplary embodiment; Figure 2 This is a flowchart illustrating a method for batch quality inspection of CAD according to an exemplary embodiment. Detailed Implementation

[0019] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of methods consistent with some aspects of the invention as detailed in the appended claims.

[0020] In one embodiment, Figure 1 This is a schematic diagram illustrating the steps of a method for batch quality inspection of CAD according to an exemplary embodiment. See also... Figure 1 According to a first aspect of the present invention, a method for batch inspection of CAD quality is provided, comprising: Step S11: Obtain the CAD file to be inspected using the CAD management system.

[0021] In practice, the CAD management system can be the Windchill system, which is used to support parallel product design and store CAD files.

[0022] Step S12: Based on the standard inspection items in the inspection module, construct custom secondary development inspection items according to the inspection item configuration input by the user.

[0023] In practice, the inspection module can be Creo (formerly Pro / E), a parametric 3D CAD / CAM / CAE integrated software. Its core is used for product lifecycle design, including 3D modeling of parts / assemblies, engineering drawing generation, simulation analysis, and manufacturing data output.

[0024] Creo's built-in ModelCheck module contains some basic standard check items. However, these standard check items cannot adapt to the customized design specifications of different enterprises. Therefore, the technical solution shown in this embodiment can customize new check functions when the existing check functions cannot be implemented, and develop corresponding ModelCheck custom API programs to build custom secondary development check items.

[0025] Step S13: The table tool software sends a command to the inspection module to start inspecting the CAD file.

[0026] In practice, the spreadsheet tool software can be Excel. Excel can launch Creo through macro commands, enabling Creo to perform automatic checks on a batch of items.

[0027] Step S14: The table tool software calls the inspection module to count the number of visible features in the CAD file.

[0028] Step S15: The table tool software calls the inspection module to register the secondary development inspection items and performs batch inspections of the secondary development inspection items and standard inspection items on the CAD file.

[0029] Step S16: Extract the total number of errors and total number of warnings of the CAD file from the inspection results. Calculate the error rate based on the total number of errors and the number of visible features. Calculate the warning rate based on the total number of warnings and the number of visible features. Calculate and output the score of the CAD file based on the error rate, warning rate, and preset weights.

[0030] Step S17: Sort all CAD files according to the total number of errors in the CAD files.

[0031] Step S18: The table tool software generates a structured report of all CAD files based on the inspection results.

[0032] It is understood that the technical solution shown in this embodiment can utilize spreadsheet software to call the inspection module to perform standard checks, secondary development checks, and visual feature quantity statistics on CAD files. Based on the above results, it can calculate and output the total number of errors and warnings, and also sort the CAD files according to the number of errors. Furthermore, it can generate structured reports based on the inspection results. It is understood that this technical solution, when facing a large number of CAD file quality checks, can obtain the desired quality inspection results simply by operating the spreadsheet software, making it convenient to use. Simultaneously, it can build custom secondary development inspection items based on standard inspection items to adapt to the customized design specifications of different enterprises; it calls the inspection module for batch checks, and the output inspection results are accurate; it improves the efficiency of batch CAD quality checks and enhances the accuracy of concurrent engineering.

[0033] In practice, a method for batch quality inspection of CAD systems can be divided into three parts, see [link to relevant documentation]. Figure 2 First, the inspection items are set, including basic inspection items and secondary development inspection items. Next, the steps of Excel calling the inspection module are considered Module 1. After Module 1 completes its execution, the inspection results are obtained. Finally, Excel processes the obtained inspection result data to generate the final batch inspection summary, including the scores of CAD files, the sorting of CAD files, and a structured report.

[0034] In one embodiment, when executing step S12 to construct custom secondary development check items based on the user-input check item configuration, the custom check requirements are first clarified, for example, the check item "checking whether there are external references in the part that originate from non-skeleton files," to address the external reference risk issue in skeleton-driven design scenarios. Then, custom check registration code is written, including: declaring core parameter variables such as filename, check item name, and labels; converting the check item name and configuration file into a wide character format recognizable by Creo; associating the check item's prompt information; and finally, registering the custom check item to Creo's ModelCheck module to complete functional integration.

[0035] In a preferred embodiment, before performing step S13 (the form tool software calls the inspection module), the method further includes: In the spreadsheet tool software, an asynchronous connection is established between the spreadsheet tool software and the inspection module, and the main interface session of the inspection module is bound so that the spreadsheet tool software can call the batch inspection function of the inspection module. In the spreadsheet software, set up the activated server in the CAD management system and establish a connection with it to obtain the name of the workspace storing the CAD files to be inspected. Based on the server information and the workspace name, generate the local access path of the workspace.

[0036] In practice, the core objective of this step is to establish a communication link between Excel and Creo and Windchill using Excel macro commands.

[0037] First, an asynchronous connection between Excel and Creo can be created using a function, without blocking Excel operations and supporting batch file parallel checks. If the connection fails, a corresponding prompt will appear, and then the subroutine will exit directly to avoid unnecessary execution.

[0038] Next, bind the Creo main session. Specifically, this includes obtaining the Creo main interface session to ensure that Excel can call Creo's ModelCheck module function. If the session binding fails, a corresponding prompt will pop up, and then the connection will be disconnected and the program will exit to prevent resource consumption.

[0039] Then connect to the Windchill activation server to ensure the CAD file is accessible. If server activation fails, display a corresponding prompt and then exit the subroutine to avoid interrupting the check due to an invalid file path.

[0040] Finally, obtain the name of the user's currently active Windchill workspace, generate the local access path of the Windchill workspace based on the server information and workspace name, and specify the source directory of the files to be checked in batches.

[0041] In a preferred embodiment, in step S13, the spreadsheet software sends a command to the inspection module to start inspecting the CAD files. Specifically, in Excel, a macro command can be used to start a batch inspection of Creo ModelCheck. The Excel macro command automatically executes the preset inspection logic, reads the CAD files in the Windchill workspace in batches based on the access path mentioned above, and calls Creo ModelCheck to start a batch inspection of the inspection items.

[0042] In a preferred embodiment, step S14 involves the table tool software calling the inspection module to count the number of visible features in the CAD file, including: The spreadsheet tool software retrieves the filenames of all CAD files to be inspected based on the local access path of the workspace. Then, it creates corresponding model description objects that the inspection module can recognize based on the filenames. For example, after converting the filenames to uppercase, it creates a model description object that Creo can recognize, used to locate the target file in Windchill. If no file is found in Windchill, a prompt is displayed, and the subroutine exits to avoid invalid execution.

[0043] The inspection module is invoked, temporarily displaying the CAD file model on its main interface and retrieving the model's feature set. This step retrieves the target CAD model from Windchill and temporarily displays it in the Creo interface to prepare for subsequent feature reading.

[0044] Traverse the feature set, determine whether each feature is visible, and count the number of visible features.

[0045] Wipe away CAD file models whose visible feature counts have been completed in the main interface of the inspection module to free up system resources and avoid resource conflicts when counting multiple files continuously.

[0046] In a preferred embodiment, step S15 involves the table tool software calling the inspection module to register the secondary development inspection items and performing batch checks on the CAD files for the secondary development inspection items, including: Based on the DLL program's local path and text configuration directory, the DLL program for the secondary development check items is loaded into the check module; based on the CAD file format, preset macro commands are run to drive the DLL program to perform custom checks in the secondary development check items; the CAD file format is a part format, component format, or engineering drawing format.

[0047] The core of this step is to call the Creo Pro / Toolkit secondary development program (DLL file) via Excel VBA. In practice, when determining the format of a CAD file, the suffix method in step S14 can be used. If it is a part format, component format, or engineering drawing format, the corresponding macro command will be run to execute the corresponding check program; if it is another file type, it will be skipped.

[0048] When the driver DLL program performs custom checks in the secondary development check items, it also includes: If the DLL program for the secondary development check item has been successfully executed, then the DLL program will be uninstalled; if the DLL program for the secondary development check item is not active, then a prompt message will be generated.

[0049] This step verifies the DLL's running status. If the DLL program has executed successfully without crashing, it will be uninstalled, and the next DLL program will run. If the DLL program is not active, it indicates that the DLL loading failed or the check process was interrupted, and a prompt will appear.

[0050] In a preferred embodiment, before performing step S16, the method further includes: The storage path for the acquired inspection results data; sequentially read the contents of folders from the storage path; if inspection results exist in a folder, batch read the XML files within the folder and convert the XML files into a table format that can be processed by spreadsheet software. This step can be performed using Power Query.

[0051] The purpose of this step is to transform the generated ModelCheck raw XML data (including error / warning messages for built-in and custom checks) into structured data. First, it allows users to manually specify a local folder to store the ModelCheck XML data.

[0052] If the user successfully selects a folder, the folder path is stored in the corresponding variable. This path will serve as the data source driver for PowerQuery to automatically read data, eliminating the need to manually import XML files. If the user does not select a folder, a corresponding prompt will appear, and the subroutine will exit directly to avoid running out of data to process later.

[0053] Next, the folder validity is verified, and file path wildcards are generated to match all file types within the folder, ensuring that no XML files are missed. The name of the first file in the folder is retrieved using a function and stored in the variable `filename`. If `filename=""` (the folder is empty and contains no files), a corresponding prompt is displayed, and the subroutine exits to avoid invalid parsing; if the folder contains files (including XML), the subsequent data parsing phase begins.

[0054] During the data parsing phase, VBA uses FolderPath to pass the data source path, triggering Power Query's preset parsing rules to automatically complete the operation. For example, it batch reads all XML files within a folder, identifying the file structure (such as check item names, error / warning levels, corresponding CAD file names, number of issues, etc.); performs data cleaning, filtering redundant tags and invalid characters from the XML files, retaining core fields; performs structured transformation, converting the unstructured XML data into a tabular format that Excel can process; and finally, it performs data association, summarizing data from different XML files by "CAD file name" and "check item name," ensuring that all check results from the same CAD file are integrated.

[0055] In a preferred embodiment, step S16 involves checking the results and extracting the total number of errors and warnings in the CAD file. For example, variable e represents the total number of errors in ModelCheck (e>=0), which is obtained by iterating through Power Query data using VBA; variable w represents the total number of warnings in ModelCheck (w>=0), which is also obtained by iterating through Power Query data using VBA; and variable f represents the total number of features in the CAD file (f>=0).

[0056] Calculate variable u based on variables e and f: u = e / f, representing the average number of errors per feature (0 <= u <= 1), i.e., the error rate. Calculate variable v based on variables w and f: v = w / f, representing the average number of warnings per feature (0 <= v <= 1), i.e., the warning rate. Set a constant K: 0 <= K <= 1, as the weight of errors and warnings.

[0057] The final score is calculated using the following formula: Score = (1-u)×K + (1-v)×(1-K) In a preferred embodiment, step S17 sorts all CAD files, including: counting the total number of all CAD files; constructing a two-dimensional sorting array and filling the sorting array with the file name, error count, warning count, and pass count of the CAD files; performing bubble sort on the CAD files according to the error count in the sorting array to obtain the sorted array data as the sorting result.

[0058] A two-dimensional sorted array with four rows representing file objects and four columns storing the CAD filename, number of errors, number of warnings, and number of passed items, respectively.

[0059] The core of bubble sort is the comparison and swapping of adjacent elements. Through multiple iterations, the file with the largest number of errors is gradually bubbled to the front of the array. The outer loop controls the sorting rounds, excluding the file with the largest number of errors after each round. The inner loop performs the comparison and swapping of adjacent elements. Its comparison logic is to determine if the error count of the current file is less than that of the next file. If the condition is met, a temporary array `brr` is declared to store the four columns of data from the current file. Then, the data from the next file is moved to the current position, and finally, the data from `brr` is stored in the next position, achieving a complete swap of the two files.

[0060] In a preferred embodiment, generating a structured report of all CAD files includes: Construct a dynamic array; fill the dynamic array with the result data corresponding to each inspection item in all inspection results; write the data in the dynamic array into a structured report in batches.

[0061] In practice, this step uses a custom algorithm to extract and list the ModelCheck data. The ModelCheck check item data is stored in the dictionary mydic.

[0062] First, create a two-dimensional dynamic array with rows representing the number of dictionary items and columns representing the total number of CAD files to be checked.

[0063] The result data corresponding to each check item in the dictionary mydic is filled into the dynamic array. The specific operation is as follows: First, the dictionary `mydic` is traversed, and the dictionary keys and values ​​are split. The keys and values ​​store the file data corresponding to each check item. For example, the data of each file is separated by the symbol "|". The first column of the dynamic array stores the key name, that is, the name of the check item, and the subsequent columns store the split values, that is, the data of the checked file.

[0064] Then, the rows and columns are swapped to adapt to the report display habits. In the final output, the check items are used as the table header (column header), and the problem files and the number of data checked are used as row data, so that designers can quickly view all the abnormal check items involved in a certain file, or all the files affected by a certain check item.

[0065] Calculate the final number of rows and columns and output it. After outputting, clear the old data to prevent it from interfering with the generation of the new report. During output, batch write all data from the target array to an Excel worksheet to form the final anomaly check item details report.

[0066] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0067] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0068] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0069] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0070] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0071] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0072] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0073] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method of CAD quality batch checking, characterized by, include: Use the CAD management system to obtain the CAD files to be inspected; Based on the standard inspection items in the inspection module, custom secondary development inspection items can be built according to the inspection item configuration input by the user; The spreadsheet software sends a command to the inspection module to start inspecting the CAD file; The table tool software calls the inspection module to count the number of visible features in the CAD file; The table tool software calls the inspection module to register the secondary development inspection items, and performs batch inspections of the secondary development inspection items and standard inspection items on the CAD files; Extract the total number of errors and warnings from the inspection results of the CAD file; calculate the error rate based on the total number of errors and the number of visible features; calculate the warning rate based on the total number of warnings and the number of visible features; calculate and output the score of the CAD file based on the error rate, warning rate, and preset weights. Sort all CAD files according to the total number of errors in the CAD files; The spreadsheet software generates a structured report of all CAD files based on the inspection results.

2. The method of CAD quality batch checking of claim 1, wherein, Before the spreadsheet tool software calls the inspection module, it also includes: In the spreadsheet tool software, an asynchronous connection is established between the spreadsheet tool software and the inspection module, and the main interface session of the inspection module is bound so that the spreadsheet tool software can call the batch inspection function of the inspection module. In the spreadsheet software, set up the activated server in the CAD management system and establish a connection with it to obtain the name of the workspace storing the CAD files to be inspected. Based on the server information and the workspace name, generate the local access path of the workspace.

3. The method for batch inspection of CAD quality according to claim 2, characterized in that, The table tool software calls the inspection module to count the number of visible features in the CAD file, including: The spreadsheet software obtains the filenames of all CAD files to be inspected based on the local access path of the workspace, and creates corresponding model description objects that the inspection module can recognize based on the filenames of the CAD files. The inspection module is invoked, and the CAD file model is temporarily displayed on the main interface of the inspection module, and the feature set of the model is obtained. Traverse the feature set, determine whether each feature is visible, and count the number of visible features. The CAD file model is completed by counting the number of visible features in the main interface of the wiping inspection module.

4. The method for batch inspection of CAD quality according to claim 2, characterized in that, The table tool software calls the inspection module to register the secondary development inspection items and performs batch inspections of the secondary development inspection items on the CAD files, including: Based on the DLL program's local path and text configuration directory, load the DLL program for the secondary development check items in the check module; Based on the format of the CAD file, a preset macro command is run to drive the DLL program to perform custom checks in the secondary development check items; the format of the CAD file is a part format, component format, or engineering drawing format.

5. The method for batch inspection of CAD quality according to claim 4, characterized in that, When the driver DLL program performs custom checks in the secondary development check items, it also includes: If the DLL program for the secondary development check item has been successfully executed, then uninstall the DLL program; If the DLL program for the secondary development check item is not active, a prompt message will be generated.

6. The method for batch inspection of CAD quality according to claim 1, characterized in that, After performing batch checks on the CAD files using secondary development and standard checks, the process also includes: Get the storage path of the inspection result data; The contents of the folders are read sequentially from the storage path. If the folder contains the inspection results, the XML files in the folder are read in batches and converted into a table format that can be processed by the table tool software.

7. The method for batch inspection of CAD quality according to claim 1, characterized in that, Sort all CAD files, including: Count the total number of all CAD files; Construct a two-dimensional sorted array and fill the sorted array with the filename, error count, warning count, and pass count of the CAD file. Based on the number of errors in the sorted array, the CAD file is bubble sorted to obtain the sorted array data as the sorting result.

8. The method for batch quality inspection of CAD according to claim 1, characterized in that, Generate a structured report of all CAD files, including: Constructing dynamic arrays; Fill the dynamic array with the result data corresponding to each inspection item in all inspection results; Write data from a dynamic array into a structured report in batches.

9. A method for batch inspection of CAD quality according to claim 1, characterized in that, The CAD management system is Windchill, the spreadsheet software is Excel, and the inspection module is Creo.