Method for changing graph numbers of process equipment products in batches based on Catia secondary development

By using Catia secondary development, batch changes to process equipment drawing numbers are achieved, solving the problems of low efficiency and error-proneness in existing technologies, improving change efficiency and accuracy, and ensuring the stability of reference links.

CN120873238APending Publication Date: 2025-10-31AVIC XIAN AIRCRAFT IND GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510800027.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

In the existing technology, the process of changing the drawing number of process equipment is inefficient and prone to errors, and there is a lack of effective batch change methods, which makes manual operation cumbersome for designers.

Method used

By adopting a Catia-based secondary development approach, the active window document object of the process equipment product is obtained, the assembly tree is traversed, product objects are collected, the original and modified drawing number names are input, and the product files are constructed and replaced using the file system object API, thus realizing batch modification of drawing numbers and reference links.

Benefits of technology

It improved the efficiency and accuracy of process equipment drawing number changes, ensured the stability of reference links, and shortened the design cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120873238A_ABST
    Figure CN120873238A_ABST
Patent Text Reader

Abstract

The invention discloses a method for changing graph numbers of technological equipment products in batches based on Catia secondary development. The method mainly solves the problems that the process of changing the graph numbers of the technological equipment products by means of an existing method is tedious, the efficiency is low, and errors are prone to occurring. The implementation method comprises the following steps: 1) arranging and opening process equipment products; (2) obtaining a Catia active window document object and carrying out non-null judgment on the Catia active window document object; 3) collecting all product objects on the process equipment product assembly tree; 4) inputting an original graph number, changing the name of the graph number, and performing non-null judgment; (5) the changed product file is constructed, and original product document objects are collected; the method comprises the steps of (1) collecting product items, (2) collecting the product items, (3) collecting the product items, (4) collecting the product items, (5) collecting the product items, (6) changing reference links, instance names and part numbers of all the collected product items, and (7) storing and closing movable window document objects, closing Catia software and deleting original product document objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer-aided design software information processing, and specifically relates to a method for batch modification of process equipment product drawing numbers in Catia software. Background Technology

[0002] Process equipment typically refers to equipment used in the production process for processing, inspecting, and transporting prepregs, parts, or components. It is widely used in aerospace, machinery, and automotive industries, and its types and quantities are rapidly increasing with product complexity. During the conceptual and preliminary design stages, because design requirements are not yet fully finalized, frequent changes to product information are often necessary. Drawing numbers, as one of the explicit characteristics of process equipment, are often used as unique identifiers and frequently need to be changed at this stage. Currently, due to the lack of effective methods for batch changing drawing numbers, process equipment designers often need to manually change the numbers and reference links of various sub-modules in the modeling tree, resulting in low efficiency and a high risk of errors. Summary of the Invention

[0003] The purpose of this invention is to address the problems of low efficiency and error-proneness in the process of changing process equipment drawing numbers using existing technologies. It proposes a method for batch changing process equipment product drawing numbers based on Catia secondary development, which can batch change the instance name, part number, and reference links of process equipment drawing numbers, thereby improving the efficiency of drawing number changes and further shortening the development cycle of the process equipment conceptual design stage.

[0004] To achieve the above objectives, the technical solution of the present invention includes the following steps: A method for batch changing the drawing numbers of process equipment products based on Catia secondary development includes the following: Step S1: Organize all process equipment products with drawing numbers to be changed, and open one of the process equipment products with drawing numbers to be changed in Catia. Step S2: Obtain the current active window document object of Catia. The current active window document object of Catia is the process equipment product document object with the drawing number to be changed that is currently open. Step S3: Determine whether the document object obtained in step S2 is empty. If it is empty, exit the implementation process to end. If it is not empty, proceed to step S4. Step S4: Obtain the root product object rootProduct from the process equipment product assembly tree; Step S5: Using the root product object rootProduct as the reference, recursively traverse the assembly tree, collect each product encountered, and obtain the collection container collectedProductItems containing all product objects. Step S6: Enter the name of the original drawing number and the name of the changed drawing number for the process equipment product whose drawing number is to be changed; Step S7: Determine whether the input content in step S6 is empty. If it is empty, exit the implementation process to end. If it is not empty, proceed to step S8. Step S8: Iterate through the product collection container collectedProductItems obtained in step S5. Based on the original drawing number name and the changed drawing number name mentioned in step S6, construct the product file after the change of each product through the file system object API. At the same time, collect the original product document object of each product to obtain the collection container deletedFileItems containing all product document objects to be deleted. Step S9: Traverse the collection container collectedProductItems described in step S5, and determine whether it is the root product node object. If it is the root product node object, skip the processing of the current product object. If it is not the root product node object, replace the reference links of the other product node objects in the assembly tree through the Catia secondary development interface. Step S10: Traverse the collection container collectedProductItems described in step S5, and determine whether it is a root product node object. If it is a root product node object, skip the processing of the current product object. If it is not a root product node object, obtain the instance name before the change through the Name property of the product node object, replace the instance name before the change with the original drawing number name and the changed drawing number name described in step S6, and bind the changed instance name to the product node object. Step S11: Traverse the collection container collectedProductItems described in step S5, obtain the part number before the change through the PartNumber property of the product node object, replace the part number before the change with the original drawing number name and the changed drawing number name described in step S6 as the basis, and bind the changed part number to the product node object. Determine if it is a root product node object. If it is, save the current product node. If it is not a root product node object, save the document objects of the current product node and its parent node, and complete the change of part number for each product node in the assembly tree. Step S12: Save and close the active window document object obtained in step S2; Step S13: For the collection container deletedFileItems containing the path information of the product documents to be deleted mentioned in step S8, delete each product document through the file system object API to complete the batch change of the process equipment product drawing number. Step S14: Open the next process equipment product with the drawing number to be changed in Catia; repeat S2-S13 to complete the drawing number change for all process equipment products with the drawing number to be changed.

[0005] Furthermore, in step S2, the document object of the currently active window is obtained, and the steps include the following: S2a, obtains the object instance catiaAppInstance of the Catia application's running process through the GetObject interface; S2b: Obtain the currently active window document object through the activeDocument property of the object instance catiaAppInstance described in step S2a; the root product object rootProduct mentioned in step S4 is obtained through the Product property of the currently active window document object described in step S2b.

[0006] Furthermore, in step S5, the collection container `collectedProductItems` containing all product objects is obtained. The implementation steps include the following: S5a, add the root product object rootProduct from step S4 to the collection container collectedProductItems; S5b: Obtain all child product object containers of the current product node through the Products property of the root product object rootProduct; traverse the child product object containers and add each item to the collection container collectedProductItems. S5c, taking each item of the sub-product object container described in step S5b as the current root node object, repeat steps S5a and S5b to collect all product node objects on the process equipment assembly tree, and obtain a collection container collectedProductItems containing all product objects.

[0007] Furthermore, in step S8, the modified product document is constructed through the file system object API, and the collection container `deletedFileItems` containing the path information of all product documents to be deleted is obtained. The implementation steps include the following: S8a, obtain the absolute position of the root product object in the resource manager, rootProductPath, through the ReferenceProduct.Parent.FullName property of the root product object rootProduct described in step S4; S8b, based on the absolute location rootProductPath described in step S8a, obtain the file directory where the process equipment product is located through the GetDirectoryName interface; S8c: Iterate through the collection container collectedProductItems described in step S5c. For each product item, obtain the document name before the change through the ReferenceProduct.Parent.Name property. Based on the original drawing number name and the changed drawing number name described in step S6, replace the document name before the change with the Replace interface. Concatenate the file directory and the changed document name described in step S8b through the Combine interface to obtain the absolute position of the changed product in the resource manager. Iterate through all file items in the file directory described in step S8b, find the file item object with the same document name as described in S8c, and obtain the document object of the product before the change. With the absolute position of the changed product as input, construct the document of the changed product through the Copy method of the file item object. S8d, add the document object of each product before the change as described in step S8c to the deletedFileItems container described in step S8, thereby collecting all document objects of products to be deleted.

[0008] Furthermore, the determination of whether the current product is the root product object mentioned in steps S9-S11 is obtained by obtaining the corresponding instance name and part number through the Name and PartNumber properties of the current product object. When the two values ​​are the same, the current product node is regarded as the root product object.

[0009] Furthermore, step S9 involves modifying the reference links of the product node objects. The steps include the following: S9a, the document name of the parent node of the current product item can be obtained through the Parent.Parent.ReferenceProduct.Parent.Name property; S9b, obtain the Catia document set object through the Documents property of the object instance catiaAppInstance described in step S2a; S9c, taking the document name of the parent node product of the current product item as described in step S9a as input, obtain the document object of the parent node product of the current product item through the Item method of the Catia document set object described in step S9b, and obtain all the product sets of the parent node product document object of the current product item through the Product.Products property; S9d, taking the absolute positions of the current product and the modified product in the resource manager as input, uses the ReplaceComponent method of all product sets of the parent node product document object of the current product item as described in step S9c to change the reference link of the product node object.

[0010] Furthermore, in step S10, the product object instance name is changed and the changed instance name is rebound to the product node object. The implementation steps include the following: S10a, obtain the instance name of the product object before the change through the Name property of the current product object; S10b: Using the original drawing number name and the changed drawing number name described in step S6 as input, the instance name of the changed product is obtained through the Replace method of the product instance name before the change described in step S10a; S10c, rebind the changed product instance name described in step S10b to the Name property of the current product object to realize the change of the product instance name.

[0011] Furthermore, in step S11, the part number of the product object is changed and the changed part number is rebound to the product node object. The steps to achieve this include the following: S11a, obtain the part number of the product object before the change through the PartNumber property of the current product object; S11b, using the original drawing number name and the changed drawing number name as described in step S6 as input, the part number of the changed product is obtained through the Replace method of the part number before the change described in step S11a; S11c, Rebind the part number of the changed product described in step S11b to the PartNumber property of the current product object to realize the change of the product part number; The saving of the current product node mentioned in step S11 is achieved through the Save method of the current product node object. The saving of the document object of its parent node mentioned in step S11 is achieved through the Save method of the product document object of the parent node of the current product item as described in step S9c.

[0012] Furthermore, the saving and closing of the active window document object mentioned in step S12 is achieved through the Save and Close methods of the active window document object described in step S2b.

[0013] Furthermore, in step S13, each item in the collection container deletedFileItems, which contains all product document objects to be deleted, is deleted using the file system object API. The steps include the following: S13a, Traverse the collection container deletedFileItems described in step S8d to obtain each document object to be deleted; S13b: By using the Delete method of each document object to be deleted as described in step S13a, the deletion operation of all product document objects to be deleted is realized.

[0014] Compared with existing technologies, the present invention has the following advantages: First, the efficiency and accuracy of changing process equipment drawing numbers are high.

[0015] The method of this invention uses the instance names of each product node in the process equipment modeling tree as a reference benchmark. Based on the Catia secondary development interface, it modifies the drawing number and reference link of each product node, ensuring that all nodes in the modeling tree are processed accurately and efficiently, and improving the efficiency and accuracy of process equipment drawing number changes.

[0016] Second, the reference links for changes to process equipment drawing numbers are stable.

[0017] The method of this invention, in the process of processing the reference links of each product node on the process equipment modeling tree, first constructs and replaces the modified product documents to ensure that the reference links of each product node are rebound, and then deletes the product documents before the change. This ensures that the modified reference links are correctly mounted on the corresponding product nodes, and improves the stability of reference links when the process equipment drawing number is changed. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating the implementation of the present invention; Figure 2 This is the document directory of the model product before the changes in this embodiment of the invention; Figure 3 This is the assembly tree of the model product before the modification in this embodiment of the invention; Figure 4 This is the document directory after the new product documentation is constructed in this embodiment of the invention; Figure 5 This is the assembly tree of the modified model product according to an embodiment of the present invention; Figure 6This is the document directory for the modified model product according to the embodiments of the present invention. Detailed Implementation

[0019] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] Catia, as a computer-aided design tool, has become the preferred tool for process equipment design in industries such as aerospace, automotive, and shipbuilding due to its superior performance in surface product design. It boasts powerful secondary development capabilities, allowing for the development of corresponding plugins through Catia's automated interfaces to improve the efficiency and quality of process equipment drawing number changes. Batch changes to process equipment drawing numbers based on Catia's secondary development can significantly improve the efficiency of batch drawing number changes for process equipment products, further supporting efficient process equipment design and drawing number standardization.

[0021] Reference Figure 1 The present invention provides a method for batch changing the product drawing number of process equipment based on Catia secondary development, comprising the following steps: Step 1: Organize and open the process equipment products to be processed in Catia.

[0022] 1.1) This invention employs the following... Figure 2 The process equipment corresponding to the document directory shown is used as an example.

[0023] 1.2) Open the process equipment product with the drawing number to be changed using Catia software. Its corresponding assembly tree is as follows: Figure 3 As shown.

[0024] Step 2: Obtain the active window document object of Catia.

[0025] 2.1) Obtain the object instance of the Catia application running process through the GetObject interface.

[0026] 2.2) Obtain the active window document object of Catia through the activeDocument property of the above object instance.

[0027] Step 3: If the active window document object obtained in Step 2 is empty, exit the drawing number change process; otherwise, proceed to Step 4.

[0028] Step 4: Obtain a collection container containing all product objects on the process equipment product assembly tree.

[0029] 4.1) Obtain the root product object of the currently active form through the Product property of the active window document object obtained in step 2. Figure 3 (The product object corresponding to TS-0000-M1).

[0030] 4.2) Using the root node object mentioned above as the recursive entry point, and based on the Products property of each product node, recursively traverse all product nodes on the assembly tree, as shown in Table 1, and add each traversed product to the collection container collectedProductItems containing all product objects to obtain the collection container containing all product objects.

[0031] Table 1. Overview of all product item details

[0032] Step 5: In this embodiment, the original drawing number of the process equipment product is TS-0000-M1, and the changed drawing number is TS-1111-M2. Input the changed drawing number and proceed to step 6.

[0033] Step 6: If the original drawing number and the changed drawing number name entered in Step 5 are not empty, proceed to Step 7; otherwise, exit the changed drawing number processing process.

[0034] Step 7: Build the revised product documentation and collect the original product documentation objects.

[0035] 7.1) Obtain the absolute location of the root product object in the resource manager "D:\Test\TS-0000-M1.CATProduct" by using ReferenceProduct.Parent.FullName of the root node product object described in 4.1).

[0036] 7.2) Based on the absolute location mentioned above, obtain the file directory "D:\Test" where the process equipment product is located through the GetDirectoryName interface. 7.3) Iterate through the product object collection container `collectedProductItems` described in step 4. For each product item, obtain the corresponding document name before the change using the `ReferenceProduct.Parent.Name` property. Based on the original drawing number name and the changed drawing number name described in step 5, replace the document name before the change using the `Replace` interface. Concatenate the document directory "D:\Test" and the changed document name using the `Combine` interface to obtain the absolute position of the changed product in the file explorer. Iterate through all file items in the file directory described in step "D:\Test" and find the file item object with the same document name as described in 7.3), obtaining the document object of the product before the change. Using the absolute position of the changed product as input, construct the document of the changed product using the `Copy` method of the file item object. The comparison of the product document names before and after the change is shown in Table 2. The document directory after constructing the product document is as follows: Figure 4 As shown.

[0037] Table 2 Comparison of Product Document Names Before and After Changes to All Product Items

[0038] 7.4) Add the document object of each product before the change as described in 7.3) to the deletedFileItems container to collect all document objects of products to be deleted.

[0039] Step 8: Change the reference links, instance names, and part numbers of all product objects in the process equipment product assembly tree.

[0040] 8.1) Reference link for changing product objects.

[0041] 8.1.1) Traverse the product object collection container collectedProductItems described in step 4, and obtain the corresponding instance name and part number through the Name and PartNumber properties of the currently traversed product object. If the two values ​​are the same, it means that the current product node is the root product object, and the processing of the current product object is skipped. If the two values ​​are different, go to 8.1.2).

[0042] 8.1.2) For each product item traversed in 8.1.1), obtain the document name of the parent node product of the current product item through the Parent.Parent.ReferenceProduct.Parent.Name property.

[0043] 8.1.3) Obtain the Catia document set object through the Documents property of the Catia object instance described in 2.1).

[0044] 8.1.4) Using the document name of the parent node product of the current product item as described in 8.1.2) as input, the document object of the parent node product of the current product item is obtained through the Item method of the Catia document set object described in step S9b, and all item product sets of the parent node product document object of the current product item are obtained through the Product.Products property.

[0045] 8.1.5) Taking the current product object and the absolute position of the modified product in the resource manager as described in 8.1.4) as input, call the ReplaceComponent method of all product sets of the parent node product document object of the current product item as described in 8.1.2) to change the reference link of the product node object.

[0046] 8.2) Change the instance name of the product object.

[0047] 8.2.1) Traverse the product object collection container collectedProductItems described in step 4, and obtain the corresponding instance name and part number through the Name and PartNumber properties of the currently traversed product object. If the two values ​​are the same, it means that the current product node is the root product object, and the processing of the current product object is skipped. If the two values ​​are different, go to 8.2.2).

[0048] 8.2.2) Obtain the instance name of the current product object before the change by using the Name property of each product item traversed in 8.2.1).

[0049] 8.2.3) Using the original drawing number name and the changed drawing number name described in step 5 as input, obtain the changed product instance name through the Replace method of the product instance name before the change described in 8.2.2).

[0050] 8.2.4) Rebind the changed product instance name to the Name property of the current product object to change the product instance name.

[0051] 8.3) Change the part number of the product object.

[0052] 8.3.1) Obtain the part number of the current product object before the change by using the PartNumber property of each product item traversed in 8.2.1).

[0053] 8.3.2) Using the original drawing number name and the changed drawing number name described in step 5 as input, the part number of the changed product is obtained through the Replace method of the product part number before the change described in 8.2.2).

[0054] 8.3.3) Rebind the part number of the modified product to the PartNumber property of the current product object to change the product part number. The assembly trees of the model product before and after the change are as follows: Figure 4 and Figure 5 As shown.

[0055] 8.3.4) Obtain the corresponding instance name and part number through the Name and PartNumber properties of the current traversed product object. When the two values ​​are the same, it indicates that the current product node is the root product object. Call the Save method of the node object to save the root product object. When the two values ​​are different, call the Save method of the parent node product document object of the current product item as described in 8.1.2) to save the parent node product document object of the current product item.

[0056] Step 9: Save and close the active window document object, close the Catia software, and delete the original product document object.

[0057] 9.1) The Save and Close methods of the active window document object described in 2.2) are used to save and close the active window document object.

[0058] 9.2) The Catia software can be shut down by using the Quit method of the Catia application running process object instance described in 2.1).

[0059] 9.3) Iterate through the collection container `deletedFileItems` described in 7.4) to obtain each document object to be deleted. Call the `Delete` method of the document object to delete all product document objects to be deleted, and obtain the document directory of the modified model product, such as... Figure 6 As shown.

[0060] The above description is merely a specific example of the present invention and does not constitute any limitation on the present invention. The numbering of each step is only for clear description of the technical solution of the present invention, and the order of the numbers is not limited. Obviously, those skilled in the art, after understanding the content and principle of the present invention, can make various modifications and changes in form and detail without departing from the principle and structure of the present invention. However, these modifications and changes based on the concept of the present invention are still within the scope of protection of the claims of the present invention. This invention discloses a method for batch changing the drawing numbers of process equipment products based on Catia secondary development, mainly solving the problems of cumbersome, inefficient, and error-prone processes in changing the drawing numbers of process equipment products using existing methods. The implementation method is as follows: 1) Organize and open the process equipment products; 2) Obtain the document objects in the Catia active window and perform a non-empty check; 3) Collect all product objects on the process equipment product assembly tree; 4) Enter the original drawing number and change the name of the drawing number, and perform a non-empty check; 5) Build the modified product file and collect the original product document objects; 6) Change the reference links, instance names, and part numbers of all collected product items; 7) Save and close the active window document objects, close the Catia software, and delete the original product document objects. This invention can perform batch modification processing of process equipment product drawing numbers and can be used to assist in the efficient design of process equipment.

[0061] Compared with existing technologies, the present invention has the following advantages: First, the efficiency and accuracy of changing process equipment drawing numbers are high.

[0062] The method of this invention uses the instance names of each product node in the process equipment modeling tree as a reference benchmark. Based on the Catia secondary development interface, it modifies the drawing number and reference link of each product node, ensuring that all nodes in the modeling tree are processed accurately and efficiently, and improving the efficiency and accuracy of process equipment drawing number changes.

[0063] Second, the reference links for changes to process equipment drawing numbers are stable.

[0064] The method of this invention, in the process of processing the reference links of each product node on the process equipment modeling tree, first constructs and replaces the modified product documents to ensure that the reference links of each product node are rebound, and then deletes the product documents before the change. This ensures that the modified reference links are correctly mounted on the corresponding product nodes, and improves the stability of reference links when the process equipment drawing number is changed.

Claims

1. A method for batch changing the product drawing number of process equipment based on Catia secondary development, characterized in that, Including the following: Step S1: Organize all process equipment products with drawing numbers to be changed, and open one of the process equipment products with drawing numbers to be changed in Catia. Step S2: Obtain the current active window document object of Catia. The current active window document object of Catia is the process equipment product document object with the drawing number to be changed that is currently open. Step S3: Determine whether the document object obtained in step S2 is empty. If it is empty, exit the implementation process to end. If it is not empty, proceed to step S4. Step S4: Obtain the root product object rootProduct from the process equipment product assembly tree; Step S5: Using the root product object rootProduct as the reference, recursively traverse the assembly tree, collect each product encountered, and obtain the collection container collectedProductItems containing all product objects. Step S6: Enter the name of the original drawing number and the name of the changed drawing number for the process equipment product whose drawing number is to be changed; Step S7: Determine whether the input content in step S6 is empty. If it is empty, exit the implementation process to end. If it is not empty, proceed to step S8. Step S8: Iterate through the product collection container collectedProductItems obtained in step S5. Based on the original drawing number name and the changed drawing number name mentioned in step S6, construct the product file after the change of each product through the file system object API. At the same time, collect the original product document object of each product to obtain the collection container deletedFileItems containing all product document objects to be deleted. Step S9: Traverse the collection container collectedProductItems described in step S5, and determine whether it is the root product node object. If it is the root product node object, skip the processing of the current product object. If it is not the root product node object, replace the reference links of the other product node objects in the assembly tree through the Catia secondary development interface. Step S10: Traverse the collection container collectedProductItems described in step S5, and determine whether it is a root product node object. If it is a root product node object, skip the processing of the current product object. If it is not a root product node object, obtain the instance name before the change through the Name property of the product node object, replace the instance name before the change with the original drawing number name and the changed drawing number name described in step S6, and bind the changed instance name to the product node object. Step S11: Traverse the collection container collectedProductItems described in step S5, obtain the part number before the change through the PartNumber property of the product node object, replace the part number before the change with the original drawing number name and the changed drawing number name described in step S6 as the basis, and bind the changed part number to the product node object. Determine if it is a root product node object. If it is, save the current product node. If it is not a root product node object, save the document objects of the current product node and its parent node, and complete the change of part number for each product node in the assembly tree. Step S12: Save and close the active window document object obtained in step S2; Step S13: For the collection container deletedFileItems containing the path information of the product documents to be deleted mentioned in step S8, delete each product document through the file system object API to complete the batch change of the process equipment product drawing number. Step S14: Open the next process equipment product with the drawing number to be changed in Catia; Repeat steps S2-S13 to complete the drawing number change for all process equipment products with drawing numbers to be changed.

2. The method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 1, characterized in that, Step S2 involves obtaining the document object of the currently active window, and the steps include the following: S2a, obtains the object instance catiaAppInstance of the Catia application's running process through the GetObject interface; S2b: Obtain the currently active window document object through the activeDocument property of the object instance catiaAppInstance described in step S2a; the root product object rootProduct mentioned in step S4 is obtained through the Product property of the currently active window document object described in step S2b.

3. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 2, characterized in that, Step S5 involves obtaining the collection container `collectedProductItems`, which contains all product objects. The steps include the following: S5a, add the root product object rootProduct from step S4 to the collection container collectedProductItems; S5b: Obtain all child product object containers of the current product node through the Products property of the root product object rootProduct; traverse the child product object containers and add each item to the collection container collectedProductItems. S5c, taking each item of the sub-product object container described in step S5b as the current root node object, repeat steps S5a and S5b to collect all product node objects on the process equipment assembly tree, and obtain a collection container collectedProductItems containing all product objects.

4. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 3, characterized in that, In step S8, the modified product documents are constructed using the file system object API, and the collection container `deletedFileItems` containing the path information of all product documents to be deleted is obtained. The implementation steps include the following: S8a, obtain the absolute position of the root product object in the resource manager, rootProductPath, through the ReferenceProduct.Parent.FullName property of the root product object rootProduct described in step S4; S8b, based on the absolute location rootProductPath described in step S8a, obtain the file directory where the process equipment product is located through the GetDirectoryName interface; S8c: Iterate through the collection container collectedProductItems described in step S5c. For each product item, obtain the document name before the change through the ReferenceProduct.Parent.Name property. Based on the original drawing number name and the changed drawing number name described in step S6, replace the document name before the change with the Replace interface. Concatenate the file directory and the changed document name described in step S8b through the Combine interface to obtain the absolute position of the changed product in the resource manager. Iterate through all file items in the file directory described in step S8b, find the file item object with the same document name as described in S8c, and obtain the document object of the product before the change. With the absolute position of the changed product as input, construct the document of the changed product through the Copy method of the file item object. S8d, add the document object of each product before the change as described in step S8c to the deletedFileItems container described in step S8, thereby collecting all document objects of products to be deleted.

5. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 4, characterized in that, The determination of whether the current product is the root product object mentioned in steps S9-S11 is achieved by obtaining the corresponding instance name and part number through the Name and PartNumber properties of the current product object. When the two values ​​are the same, the current product node is considered to be the root product object.

6. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 5, characterized in that, Step S9 involves changing the reference link of the product node object. The steps include the following: S9a, the document name of the parent node of the current product item can be obtained through the Parent.Parent.ReferenceProduct.Parent.Name property; S9b, obtain the Catia document set object through the Documents property of the object instance catiaAppInstance described in step S2a; S9c, taking the document name of the parent node product of the current product item as described in step S9a as input, obtain the document object of the parent node product of the current product item through the Item method of the Catia document set object described in step S9b, and obtain all the product sets of the parent node product document object of the current product item through the Product.Products property; S9d, taking the absolute positions of the current product and the modified product in the resource manager as input, uses the ReplaceComponent method of all product sets of the parent node product document object of the current product item as described in step S9c to change the reference link of the product node object.

7. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 6, characterized in that, Step S10 involves changing the product object instance name and rebinding the changed instance name to the product node object. The steps include the following: S10a, obtain the instance name of the product object before the change through the Name property of the current product object; S10b: Using the original drawing number name and the changed drawing number name described in step S6 as input, the instance name of the changed product is obtained through the Replace method of the product instance name before the change described in step S10a; S10c, rebind the changed product instance name described in step S10b to the Name property of the current product object to realize the change of the product instance name.

8. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 7, characterized in that, Step S11 involves changing the part number of the product object and rebinding the changed part number to the product node object. The steps include the following: S11a, obtain the part number of the product object before the change through the PartNumber property of the current product object; S11b, using the original drawing number name and the changed drawing number name as described in step S6 as input, the part number of the changed product is obtained through the Replace method of the part number before the change described in step S11a; S11c, Rebind the part number of the changed product described in step S11b to the PartNumber property of the current product object to realize the change of the product part number; The saving of the current product node mentioned in step S11 is achieved through the Save method of the current product node object. The saving of the document object of its parent node mentioned in step S11 is achieved through the Save method of the product document object of the parent node of the current product item as described in step S9c.

9. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 8, characterized in that, The saving and closing of the active window document object mentioned in step S12 is achieved through the Save and Close methods of the active window document object described in step S2b.

10. A method for batch changing process equipment product drawing numbers based on Catia secondary development according to claim 9, characterized in that, In step S13, each item in the collection container deletedFileItems, which contains all product document objects to be deleted, is deleted using the file system object API. The steps include the following: S13a, Traverse the collection container deletedFileItems described in step S8d to obtain each document object to be deleted; S13b: By using the Delete method of each document object to be deleted as described in step S13a, the deletion operation of all product document objects to be deleted is realized.