A method for automatically writing a standard part relational expression based on Creo

By establishing a standard parts relational database in the hydraulic support design and utilizing Creo's secondary development interface to automatically write the program, parameter association and real-time updates are achieved. This solves the problems of cumbersome standard parts relational processing and lack of correlation, improves design efficiency and accuracy, and supports standardized management.

CN122174298APending Publication Date: 2026-06-09ZHENGMEIJI ZHIDING HYDRAULIC CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHENGMEIJI ZHIDING HYDRAULIC CO LTD
Filing Date
2026-01-28
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In the design of hydraulic supports, the handling of standard component relationships is cumbersome, lacks correlation and automatic updates, resulting in low design efficiency, high error rate and is not conducive to standardized management.

Method used

By establishing a relational database of standard parts and using Creo's secondary development interface to develop an automatic writing program, parameter association and real-time monitoring are achieved, relevant parameters are automatically updated, and the consistency and accuracy of the model are ensured by combining a relational verification mechanism.

Benefits of technology

It significantly improves design efficiency, reduces error rates, enables parameter linkage, supports standardized management, and enhances design accuracy and reliability.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application provides a method for automatically writing a relational expression of a Creo-based standard part, comprising the following steps: using a relational database management system to build a standard part parameter database, creating a corresponding data table, and storing parameter information of the standard part; writing a relational expression automatic writing program according to a Creo secondary development interface, and realizing the following steps: connecting with the standard part parameter database; obtaining standard part information selected by a user; generating a corresponding relational expression; writing the generated relational expression into a Creo standard part model; when the relational expression is generated, setting parameter association rules according to relationships between parameters of the standard part and design requirements; in the Creo standard part model, monitoring changes of the standard part parameters in real time by registering an event listener; and an event processing function automatically updating other parameters associated with the parameter according to preset parameter association rules, so as to ensure consistency and accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hydraulic support design technology, and more specifically, to a method for automatically writing standard part relationships based on Creo. Background Technology

[0002] With the development of the coal industry, the demand for hydraulic supports in coal mines is increasing. However, in the design process of hydraulic support products, a large number of standard parts are used (such as box-type structure design, which generates a large number of plates for supporting the interior). Since the dimensions, shapes, specifications, and materials of these standard parts vary, it is necessary to input relational expressions for these standard parts to establish relationships during the modeling process. Currently, when using Creo software for design, there are still many problems in handling the relationships between standard parts: Manual input is cumbersome: Designers need to manually input numerous formulas for standard parts, a method that is not only inefficient but also highly prone to errors. For example, when designing a sheet metal component, the material specifications, length, width, height, and thickness need to be input, resulting in a huge workload and frequent data inconsistencies throughout the design process. Furthermore, due to market factors, the design cycle for hydraulic supports is constantly shrinking, leading to a continuous increase in design pressure and further increasing the error rate among designers. This situation not only increases the workload for designers but also causes problems such as interference in the overall structure due to incorrect formula input. Lack of correlation and automatic updates: The relationships between different standard parts are independent of each other. When the parameters of a standard part change, the related parameters cannot be updated in real time, requiring designers to make manual modifications, which affects design efficiency and accuracy. It is not conducive to standardization and normalization: the lack of a unified standard part relationship writing mechanism leads to differences in how different designers handle standard parts, which is not conducive to design standardization and normalization management.

[0003] In order to solve the above problems, people have been seeking an ideal technological solution. Summary of the Invention

[0004] Therefore, it is necessary to provide a method for automatically writing standard part relationships based on Creo to address the above-mentioned technical problems, in order to solve the problems of cumbersome processing of standard part relationships, lack of correlation and automatic updating, and unfavorable standardization management in the existing hydraulic support design.

[0005] Based on the above technical solution, the present invention can effectively solve the problems of cumbersome input of standard parts relational formulas, lack of correlation updates, and difficulty in achieving standardized management in the design process of hydraulic supports, and provides reliable technical support for rapid product development in the coal mining industry.

[0006] To achieve the above objectives, a first aspect of the present invention provides a method for automatically writing standard part relationships based on Creo, comprising: (1) Establish a relational database for standard parts; 1) Obtain detailed parameter information for standard parts, including plate thickness, length, width, chamfer, and fillet. 2) Use a relational database management system to build a standard parts parameter database: Based on different standard parts, corresponding standard part relational documents are created and stored in a fixed local path in Creo; the created standard part relations are as follows: cname=“Board δ”+itos(δ)+“*”+itos(a)+“*”+itos(b)+“*”+itos(a1)+“*”+itos(b1)) Where δ represents the plate thickness; a and b represent the length and width; a1 and b1 represent the dimensions related to the length and width; The relationships between different standard parts together form a standard part parameter database document, which is stored in a fixed path in the Creo file.

[0007] By using a unified relational database to structurally store the design elements such as geometric dimensions, chamfers, and fillets of all standard parts, centralized data management and rapid retrieval are achieved. This provides a reliable data source for subsequent automatic generation and writing of relational expressions, eliminating errors and inconsistencies caused by manual recording.

[0008] (2) Develop a program to automatically write relational expressions: 1) Obtain the secondary development interface for the Creo software; 2) Develop an automatic relational expression writing program based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard parts model.

[0009] By leveraging Creo's API to automate the entire process—from database reading and user interaction to relational structure construction and writing—design efficiency is significantly improved, and the tediousness and errors of manual input are avoided.

[0010] (3) Implement parameter association and data update: 1) Set parameter association rules: When generating relational expressions, set parameter association rules according to the relationships between parameters of standard parts and design requirements; 2) Monitor parameter changes: In the Creo standard part model, event listeners are registered to monitor changes in standard part parameters in real time; when a parameter of the standard part changes, the event handling function is triggered. 3) Automatically update related parameters: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model.

[0011] By embedding event listeners within the model, parameter changes are captured instantly; the automatic update mechanism driven by association rules ensures that all affected dimensions are adjusted synchronously, thereby eliminating geometric conflicts or design inconsistencies caused by single-point modifications and meeting the needs of rapid iteration of hydraulic supports.

[0012] Based on the above, the method for establishing a relational database for standard parts is as follows: First, read the 3D model of the standard part designed by the user, and read the geometric features and reference information in the 3D model to form feature parameters; Secondly, read the dimension annotation information, annotation information, dimensions, and tolerances from the 3D model to form annotation parameters; Finally, based on the annotation relationship of the 3D model, the feature parameters and annotation parameters are combined into standard part relationships. These information together form the data required for a standard part. In the standard part relationship document, standard part relationships are created again, and multiple standard part relationships together form a standard part library document.

[0013] By automatically parsing the geometric and annotation information of the CAD model, a data stream that directly generates relational expressions from the design documents is realized, eliminating the need for manual data entry, significantly reducing the workload of preliminary data preparation, and ensuring the consistency between the model and the relational expressions.

[0014] Based on the above, when writing the generated relational expression into the Creo standard part model, a write verification is also performed: Determine if the Creo standard part model has the relational expression for generation; If the generated relation exists, compare the relation with the standard parts relation database. If the comparison is inconsistent, modify the relation parameters and then compare the relation with the standard parts relation database again. If the comparison is consistent, determine whether the relation is correct. If the relation is incorrect, modify the relation parameters and then return to compare the relation with the standard parts relation database. If the relation is correct, the generated relation will be written into the Creo standard part model; If the generated relation does not exist, parameter identification is performed, and the identified parameters are matched with the standard parts relation database to obtain the relation. The obtained relation is validated to determine if it satisfies the requirements. If not, the relation parameters are modified to obtain a new relation before returning the validated relation. If satisfied, the satisfied relation is written into the Creo standard parts model.

[0015] By incorporating bidirectional comparison and cyclic correction mechanisms, mismatched or erroneous relationships can be identified and corrected before being written, ensuring that the parameter expressions within the model always remain consistent with the database, thereby improving data integrity and design reliability.

[0016] A second aspect of the present invention provides a system for automatically writing standard part relationships based on Creo, comprising: The standard parts relational database creation module is used for: Obtain detailed parameter information for standard parts; A standard parts parameter database is built using a relational database management system, and corresponding data tables are created to store the parameter information of the standard parts. The relational auto-write module is used for: Obtain the secondary development interface for Creo software; A relational expression auto-writing program was written based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard part model; The parameter association and data update module is used for: Set parameter association rules: When generating relational expressions, set parameter association rules based on the relationships between parameters of standard parts and design requirements.

[0017] Monitoring parameter changes: In the Creo standard part model, event listeners are registered to monitor changes in standard part parameters in real time. When a parameter of the standard part changes, the event handler function is triggered.

[0018] Automatic parameter updates: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model.

[0019] A third aspect of the present invention provides a computer device, comprising: One or more processors; Memory, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors perform the steps of the Creo-based method for automatically writing standard part relationships as described above.

[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method for automatically writing standard part relationships based on Creo as described.

[0021] A fourth aspect of the present invention provides a computer program product comprising a computer program / instructions which, when executed by a processor, implement the steps of the method for automatically writing standard part relationships based on Creo as described above.

[0022] The beneficial effects of this invention are as follows: This invention constructs a closed-loop relational processing system for standard parts through four key technologies: unified database management, automatic writing via Creo secondary development interface, real-time event-driven parameter linkage, and complete pre-write verification. Compared to traditional manual input methods, it can: 1. Significantly Improved Efficiency: The entire process, from user selection to formula input, is automated, reducing the workload of manual input for designers and greatly improving design efficiency. For example, when designing a complex part, it used to take a lot of time to manually input the standard part formula; with the method of this invention, it can be completed in just a few minutes, increasing efficiency several times over.

[0023] 2. Enhanced design accuracy: Through parameter association and automatic updates, design errors caused by inconsistent manual parameter modifications are avoided, thus improving the accuracy and reliability of the design.

[0024] 3. Reduce error rate: The verification and event listening mechanism captures and corrects inconsistencies in real time, keeping the error within an acceptable range.

[0025] 4. Enable parameter linkage: Modifying a single dimension can trigger automatic updates of related dimensions, ensuring the overall geometric consistency of the model.

[0026] 5. Supports standardized management: All relational expressions are stored in a database document with a unified path, which facilitates version control, auditing and cross-project reuse. Detailed Implementation

[0027] The technical solution of the present invention will be further described in detail below through specific embodiments.

[0028] To facilitate understanding, the interactive parties and / or terms and / or custom terms involved in this invention will first be explained in conjunction with the technical solution of this invention: Example 1

[0029] This embodiment provides a method for automatically writing standard part relationships based on Creo, including: (1) Establish a relational database for standard parts; 1) Obtain detailed parameter information of standard parts, including plate thickness, length, width, chamfer, and fillet.

[0030] 2) Use a relational database management system to build a standard parts parameter database: Based on different standard parts, corresponding standard part relational documents are created and stored in a fixed local path in Creo; the created standard part relations are as follows: cname=“Board δ”+itos(δ)+“*”+itos(a)+“*”+itos(b)+“*”+itos(a1)+“*”+itos(b1)) Where δ represents the plate thickness; a and b represent the length and width; a1 and b1 represent the dimensions related to the length and width; The relationships between different standard parts together form a standard part parameter database document, which is stored in a fixed path in the Creo file.

[0031] The method for establishing a relational database for standard parts is as follows: First, read the 3D model of the standard part designed by the user, and read the geometric features and reference information in the 3D model to form feature parameters; Secondly, read the dimension annotation information, annotation information, dimensions, and tolerances from the 3D model to form annotation parameters; Finally, based on the annotation relationship of the 3D model, the feature parameters and annotation parameters are combined into standard part relationships. These information together form the data required for a standard part. In the standard part relationship document, standard part relationships are created again, and multiple standard part relationships together form a standard part library document.

[0032] (2) Develop a program to automatically write relational expressions: 1) Obtain the secondary development interface of Creo software.

[0033] 2) Develop an automatic relational expression writing program based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Specifically, using the tools in Creo's built-in model intent, the standard parts parameter configuration table in a local fixed path is read, thereby connecting Creo with the relational database of the standard parts.

[0034] Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Specifically, based on the user-designed 3D model, standard part information such as drawing number PLM_ID, material property CMAT, lumped mass CMASS, and connection identifier CID in the 3D model is read and matched with the standard part relationship formula in the database document in a fixed path.

[0035] Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Preset relation generation rules: Match the relation in the database document in the fixed path with the information such as PLM_ID, CMAT, CMASS, and CID in the 3D model; the two are matched according to the drawing number, PLM_ID, and name information to obtain the corresponding relation.

[0036] Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard part model; For example: CMASS=ceil(mp_mass(""),3) CID=rel_model_name cmat="Q460δ"+itos(δ) cname="Board δ"+itos(δ)+"*"+itos(a)+"*"+itos(b) a1 = a / 2 + 10 The tools developed in Creo are used to match the designed 3D model information with the database and then write it into the 3D model relation.

[0037] When the generated relation is written into the Creo standard part model, a write validation is also performed: Determine if the Creo standard part model has the relational expression for generation; If the generated relation exists, compare the relation with the standard parts relation database. If the comparison is inconsistent, modify the relation parameters and then compare the relation with the standard parts relation database again. If the comparison is consistent, determine whether the relation is correct. If the relation is incorrect, modify the relation parameters and then return to compare the relation with the standard parts relation database. If the relation is correct, the generated relation will be written into the Creo standard part model; If the generated relation does not exist, parameter identification is performed, and the identified parameters are matched with the standard parts relation database to obtain the relation. The obtained relation is validated to determine if it satisfies the requirements. If not, the relation parameters are modified to obtain a new relation before returning the validated relation. If satisfied, the satisfied relation is written into the Creo standard parts model.

[0038] (3) Implement parameter association and data update: 1) Set parameter association rules: When generating relational expressions, set parameter association rules according to the relationship between the parameters of standard parts and design requirements.

[0039] Based on the parameter relationships in the 3D model information, the relationships between length, width, chamfer, fillet, and other information are derived. The corresponding formulas are then written into the relational expressions. When one variable changes, the other related parameters change accordingly. For example: When beveling on one side, a plate thickness of 20mm is beveled at 18mm; a plate thickness of 25mm is beveled at 23mm. CMASS=ceil(mp_mass(""),3) CMAT="Q690δ"+itos(d24) CID=rel_model_name P=δ-2 cname="Board δ"+itos(δ)+"*"+itos(a)+"*"+itos(b)+"P"+itos(P) With double-sided beveling, the plate thickness is 40mm and the double-sided beveling is 19mm. CMASS=ceil(mp_mass(""),3) CMAT="Q690δ"+itos(d24) CID=rel_model_name P=δ / 2-1 cname="Board δ"+itos(δ)+"*"+itos(a)+"*"+itos(b)+"P"+itos(P) When the plate thickness δ changes, the bevel P changes accordingly.

[0040] 2) Monitoring parameter changes: In the Creo standard part model, by registering event listeners, changes in standard part parameters are monitored in real time; when a parameter of the standard part changes, the event handling function is triggered.

[0041] When modifying part dimensions based on a 3D model skeleton, since parameters such as length and width are already written into the standard part parameters, if these parameters change, the relationships in the model will be inconsistent with the model. In this case, the parameter table can be automatically rematched based on the relationships in the parameters.

[0042] 3) Automatically update related parameters: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model. Example 2

[0043] Based on the same inventive concept, this application also provides a system for automatically writing standard part relationships based on Creo. The solution provided by this Creo-based system for automatically writing standard part relationships is similar to the solution described in the method of Embodiment 1. Therefore, the specific limitations of one or more Creo-based system embodiments for automatically writing standard part relationships provided below can be found in the limitations of the method in Embodiment 1, and will not be repeated here.

[0044] In one exemplary embodiment, a Creo-based system for automatically writing standard part relationships is provided, comprising: The standard parts relational database creation module is used for: Obtain detailed parameter information for standard parts; A standard parts parameter database is built using a relational database management system, and corresponding data tables are created to store the parameter information of the standard parts. The relational auto-write module is used for: Obtain the secondary development interface for Creo software; A relational expression auto-writing program was written based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard part model; The parameter association and data update module is used for: Set parameter association rules: When generating relational expressions, set parameter association rules based on the relationships between parameters of standard parts and design requirements.

[0045] Monitoring parameter changes: In the Creo standard part model, event listeners are registered to monitor changes in standard part parameters in real time. When a parameter of the standard part changes, the event handler function is triggered.

[0046] Automatic parameter updates: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model. Example 3

[0047] Each module in the above system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0048] In an exemplary embodiment, a computer device is provided, which may be a terminal. The computer device further includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements the steps of a method for automatically writing standard part relationships based on Creo. The display unit of the computer device is used to form a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0049] Those skilled in the art will understand that the structure of the computer device described above is only a partial structure related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. A specific computer device may include more or fewer components, or combine certain components, or have different component arrangements.

[0050] In one exemplary embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of a method for automatically writing standard part relationships based on Creo.

[0051] In one exemplary embodiment, a computer program product is also provided, including a computer program / instructions, characterized in that, when executed by a processor, the computer program / instructions implement the steps of a method for automatically writing standard part relationships based on Creo.

[0052] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0053] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications can still be made to the specific implementation of the present invention or equivalent substitutions can be made to some technical features without departing from the spirit of the technical solutions of the present invention, and all such modifications and substitutions should be covered within the scope of the technical solutions claimed in the present invention.

Claims

1. A method for automatically writing standard part relationships based on Creo, characterized in that, include: (1) Establish a relational database for standard parts; 1) Obtain detailed parameter information of standard parts, including plate thickness, length, width, chamfer, and fillet. 2) Use a relational database management system to build a standard parts parameter database: Based on different standard parts, corresponding standard part relational documents are created and stored in a fixed local path in Creo; the created standard part relations are as follows: cname="Board δ"+itos(δ)+"*"+itos(a)+"*"+itos(b)+"*"+itos(a1)+"*"+itos(b1)) Where δ represents the plate thickness; a and b represent the length and width; a1 and b1 represent the dimensions related to the length and width; The relationships between different standard parts together form a standard part parameter database document, which is stored in a fixed path in the Creo file; (2) Develop a program to automatically write relational expressions: 1) Obtain the secondary development interface for the Creo software; 2) Develop an automatic relational expression writing program based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard part model; (3) Implement parameter association and data update: 1) Set parameter association rules: When generating relational expressions, set parameter association rules according to the relationships between parameters of standard parts and design requirements; 2) Monitor parameter changes: In the Creo standard part model, event listeners are registered to monitor changes in standard part parameters in real time; when a parameter of the standard part changes, the event handling function is triggered. 3) Automatically update related parameters: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model.

2. The method for automatically writing standard part relationships based on Creo according to claim 1, characterized in that, The method for establishing a relational database for standard parts is as follows: First, read the 3D model of the standard part designed by the user, and read the geometric features and reference information in the 3D model to form feature parameters; Secondly, read the dimension annotation information, annotation information, dimensions, and tolerances from the 3D model to form annotation parameters; Finally, based on the annotation relationship of the 3D model, the feature parameters and annotation parameters are combined into standard part relationships. These information together form the data required for a standard part. In the standard part relationship document, standard part relationships are created again, and multiple standard part relationships together form a standard part library document.

3. The method for automatically writing standard part relationships based on Creo according to claim 1, characterized in that, When the generated relation is written into the Creo standard part model, a write validation is also performed: Determine if the Creo standard part model has the relational expression for generation; If the generated relation exists, compare the relation with the standard parts relation database. If the comparison is inconsistent, modify the relation parameters and then compare the relation with the standard parts relation database again. If the comparison is consistent, determine whether the relation is correct. If the relation is incorrect, modify the relation parameters and then return to compare the relation with the standard parts relation database. If the relation is correct, the generated relation will be written into the Creo standard part model; If the generated relation does not exist, parameter identification is performed, and the identified parameters are matched with the standard parts relation database to obtain the relation. The obtained relation is validated to determine if it satisfies the requirements. If not, the relation parameters are modified to obtain a new relation before returning the validated relation. If satisfied, the satisfied relation is written into the Creo standard parts model.

4. A system for automatically writing standard part relationships based on Creo, characterized in that, include: The standard parts relational database creation module is used for: Obtain detailed parameter information for standard parts, including plate thickness, length, width, chamfer, and fillet. Use a relational database management system to build a standard parts parameter database: Based on different standard parts, corresponding standard part relational documents are created and stored in a fixed local path in Creo; the created standard part relations are as follows: cname="Board δ"+itos(δ)+"*"+itos(a)+"*"+itos(b)+"*"+itos(a1)+"*"+itos(b1)) Where δ represents the plate thickness; a and b represent the length and width; a1 and b1 represent the dimensions related to the length and width; The relationships between different standard parts together form a standard part parameter database document, which is stored in a fixed path in the Creo file; The relational auto-write module is used for: Obtain the secondary development interface for Creo software; A relational expression auto-writing program was written based on the Creo secondary development interface. The program mainly implements the following functions: Connection to standard parts parameter database: Through the database connection library, the program connects to the standard parts parameter database in order to read standard parts information from the database; Obtain information on standard parts selected by the user: In the Creo software interface, the type and specification information of the standard parts selected by the user are obtained through user interaction; Generate relational expressions: Based on the obtained standard part parameter information, generate the corresponding relational expressions according to the preset relational expression generation rules; Write the relational expression into the model: Use the functions provided by the Creo secondary development interface to write the generated relational expression into the Creo standard part model; The parameter association and data update module is used for: Set parameter association rules: When generating relational expressions, set parameter association rules according to the relationships between parameters of standard parts and design requirements; Monitoring parameter changes: In the Creo standard part model, changes in standard part parameters are monitored in real time by registering event listeners; when a parameter of the standard part changes, the event handling function is triggered. Automatic parameter updates: The event handling function automatically updates other related parameters according to the preset parameter association rules to ensure the consistency and accuracy of the model.

5. The system for automatically writing standard part relationships based on Creo according to claim 4, characterized in that, The method for establishing a relational database for standard parts is as follows: The method for establishing a relational database for standard parts is as follows: First, read the 3D model of the standard part designed by the user, and read the geometric features and reference information in the 3D model to form feature parameters; Secondly, read the dimension annotation information, annotation information, dimensions, and tolerances from the 3D model to form annotation parameters; Finally, based on the annotation relationship of the 3D model, the feature parameters and annotation parameters are combined into standard part relationships. These information together form the data required for a standard part. In the standard part relationship document, standard part relationships are created again, and multiple standard part relationships together form a standard part library document.

6. The system for automatically writing standard part relationships based on Creo according to claim 4, characterized in that, When the generated relation is written into the Creo standard part model, a write validation is also performed: Determine if the Creo standard part model has the relational expression for generation; If the generated relation exists, compare the relation with the standard parts relation database. If the comparison is inconsistent, modify the relation parameters and then compare the relation with the standard parts relation database again. If the comparison is consistent, determine whether the relation is correct. If the relation is incorrect, modify the relation parameters and then return to compare the relation with the standard parts relation database. If the relation is correct, the generated relation will be written into the Creo standard part model; If the generated relation does not exist, parameter identification is performed, and the identified parameters are matched with the standard parts relation database to obtain the relation. The obtained relation is validated to determine if it satisfies the requirements. If not, the relation parameters are modified to obtain a new relation before returning the validated relation. If satisfied, the satisfied relation is written into the Creo standard parts model.

7. A computer device, characterized in that, include: One or more processors; Memory, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors perform the steps of the Creo-based method for automatically writing standard part relationships as described in any one of claims 1-3.

8. A computer-readable storage medium storing a computer program, characterized in that, When the program is executed by the processor, it implements the steps of the method for automatically writing standard part relationships based on Creo as described in any one of claims 1-3.

9. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps of the method for automatically writing standard part relationships based on Creo as described in any one of claims 1-3.