Assembly punching method based on CATIA software secondary development and secondary development system

The assembly drilling method developed through secondary development of CATIA software automates the parameter and attribute settings of assembly holes, solving the problems of cumbersome operation and input errors, improving assembly efficiency and design quality, and expanding the application scope of the software in mechanical drawing.

CN121009643APending Publication Date: 2025-11-25ANHUI JEE AUTOMATION EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511070158.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

The existing assembly hole drilling method in CATIA software has a cumbersome operation process and is prone to parameter input errors, resulting in redundant manual operation steps and input errors.

Method used

The assembly drilling method based on CATIA software secondary development obtains the drilling specifications by reading the configuration file, determines the coordinate transformation matrix of the assembly and the parts to be assembled, and automatically sets the hole type, hole diameter, hole depth and color to achieve rapid assembly drilling.

Benefits of technology

It simplifies the assembly and drilling process, avoids human error, improves assembly efficiency and design quality, and expands the application scenarios of CATIA software in the field of mechanical drawing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121009643A_ABST
    Figure CN121009643A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of CATIA software application, and provides an assembly punching method based on CATIA software secondary development and a secondary development system.The method comprises the steps that an installation face of an assembly and a part to be assembled are selected; determining a reference diameter required by punching of the to-be-assembled part; determining hole data of the mounting surface of the assembly body; determining a coordinate transformation matrix between the mounting surface of the assembly body and the to-be-assembled part; determining hole data of the to-be-assembled part based on the coordinate transformation matrix, the reference diameter and the hole data of the mounting surface of the assembly body; and punching the surface of the to-be-assembled part based on the configuration file and the hole data of the to-be-assembled part. According to the method, the to-be-assembled part can be quickly assembled and punched, the hole type, the hole diameter, the hole depth, the color and the like matched with the holes in the assembly body are automatically set, the assembling and punching efficiency is improved, and possible parameter and attribute errors caused by manual assembling and punching are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of CATIA software application technology, and specifically relates to an assembly drilling method and secondary development system based on CATIA software secondary development. Background Technology

[0002] In automotive tooling design, bolt fastening is a common method for assembling parts, but the existing assembly hole drilling methods in CATIA software have significant drawbacks: First, the operation process is cumbersome. Each assembly hole needs to be drilled individually. To ensure that the hole position of the part to be assembled matches the corresponding hole position of the assembly, the two need to be measured multiple times to determine the hole position. When determining the hole diameter of the assembly hole, the hole diameter of the corresponding hole in the assembly also needs to be measured first. After drilling, the assembly hole also needs to be manually set with the corresponding color, resulting in redundant manual operation steps.

[0003] Secondly, parameter input is prone to errors. Parameters such as the diameter and depth of the assembly holes, as well as the distance between the hole and its two adjacent sides, all need to be entered manually. During the operation, it is very easy for human negligence to cause input errors. Summary of the Invention

[0004] To address the problems in the background art, this invention proposes an assembly drilling method and a secondary development system based on CATIA software secondary development.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: An assembly drilling method based on secondary development of CATIA software includes the following steps: Read the configuration file to obtain the project's punching specifications; Within the same project, select the mounting surface of the assembly and the parts to be assembled; Determine the reference diameter required for drilling holes in the parts to be assembled; Determine the hole data for the mounting surfaces of the assembly; Determine the coordinate transformation matrix between the mounting surface of the assembly and the parts to be assembled; The hole data of the part to be assembled is determined based on the coordinate transformation matrix, reference diameter, and hole data of the mounting surface of the assembly. Drill holes on the surface of the parts to be assembled based on the configuration file and the hole data of the parts to be assembled; The drilled parts to be assembled are displayed in the 3D model.

[0006] Preferably, determining the reference diameter required for drilling holes in the parts to be assembled includes the following steps: Select the mounting surface of the assembly and obtain the diameter of all holes on the mounting surface; Identify the parts to be assembled that mate with the mounting surfaces of the assembly; Determine the required reference hole diameter for the part to be assembled based on the hole diameters of all holes on the mounting surface.

[0007] Preferably, the number of holes on the part to be assembled is less than or equal to the number of holes on the mounting surface of the assembly.

[0008] Preferably, determining the hole data of the mounting surface of the assembly includes the following steps: Obtain the inner edge of the circle on the mounting surface; Obtain all hole data for the part containing the mounting surface; Traverse the inner edge of the circular mounting surface and the hole data of the part on which the mounting surface is located. If any inner edge of the circular mounting surface coincides with the upper / lower arc of any hole, it means that the hole is a hole on the mounting surface, and store the hole data corresponding to the hole into the corresponding list.

[0009] Preferably, determining the coordinate transformation matrix between the mounting surface of the assembly and the parts to be assembled includes the following steps: Obtain the global coordinates A of the part containing the mounting surface, and obtain the inverse matrix A of the global position A of the part containing the mounting surface. -1 ; Obtain the global coordinates B of the part to be assembled; The coordinate transformation matrix C between the mounting surface and the part to be assembled satisfies: A×C=B; A -1 ×A×C=A -1 ×B; C=A -1 ×B.

[0010] Preferably, the hole data includes the diameter, the center coordinates of the end face arc, and the axis vector of the hole.

[0011] Preferably, determining the hole data of the part to be assembled based on the coordinate transformation matrix, reference diameter, and hole data of the mounting surface of the assembly includes the following steps: Select any hole on the mounting surface and determine whether its diameter in the hole data is the same as the reference diameter. If they are not the same, select other holes and re-determine. If they are the same, the selected hole is the one that needs to be transformed in coordinates. Convert the hole data of the mounting surface of the assembly into the hole data of the part to be assembled, wherein: The coordinates of the hole axis of the part to be assembled relative to the part to be assembled = the coordinates of the hole axis of the mounting surface relative to the mounting surface part multiplied by the coordinate transformation matrix; the hole axis is obtained based on the center coordinates of the end face arc and the axis vector of the hole in the hole data; Obtain the intersection point between the hole axis and the part to be assembled, and use the intersection point as the coordinates of the part to be assembled where holes need to be drilled; Drill holes at the coordinates based on the reference aperture.

[0012] Preferably, drilling holes on the surface of the parts to be assembled based on the configuration file and hole data of the parts to be assembled includes the following steps: Obtain the drilling plane and drilling points of the parts to be assembled; Create a hole feature at the punch point on the punched surface; The assembly holes are obtained by setting the parameters of the hole features based on the configuration file.

[0013] Preferably, setting the parameters and attributes of the hole feature based on the configuration file includes the following steps: Traverse the through-hole-threaded hole diameter matching list in the configuration file to find the threaded hole diameter specification corresponding to the hole diameter of the assembly hole. If the corresponding threaded hole diameter specification is found in the through-hole-threaded hole diameter matching list, the assembly hole is a threaded hole; if the corresponding threaded hole diameter specification is not found in the through-hole-threaded hole diameter matching list, the assembly hole is a pin hole, and the diameter should be the same as the current hole diameter. Set the diameter of the hole feature to the assembly hole diameter obtained in the previous step; Set the hole bottom limit offset value of the hole feature to the hole depth, and the hole bottom type to V-shape; if the assembly hole is a threaded hole, also set the thread mode of the hole feature to threaded hole, the thread type to metric coarse thread, and the thread depth to be equal to the hole depth. Based on the hole color data in the configuration file, if the assembly hole is a threaded hole, the color of the hole feature is set to the RGB value corresponding to the threaded hole color; if the assembly hole is a pin hole, the color of the hole feature is set to the RGB value corresponding to the pin hole color. Modify the name of the external object for the hole feature by adding a prefix.

[0014] A secondary development system for executing the above-mentioned assembly drilling method based on CATIA secondary development.

[0015] The beneficial effects of this invention are: 1. The method of the present invention is based on the mating relationship between the assembly and the parts to be assembled. First, the hole data is determined on the mounting surface of the assembly. Then, the coordinate transformation matrix is ​​determined according to the relationship between the assembly and the parts to be assembled. After that, the hole data of the parts to be assembled can be determined using the coordinate transformation matrix. Finally, the holes can be drilled according to the hole data of the parts to be assembled. In this process, no separate drilling is required. This method can quickly assemble and drill the parts to be assembled, and automatically set the hole type, hole diameter, hole depth and color, etc. that match the holes on the assembly, which greatly improves the efficiency of assembly and drilling, and avoids the parameter and attribute errors that may occur when manually assembling and drilling. 2. The method of the present invention realizes the rapid assembly drilling operation of CATIA and automatically sets various specifications and attributes of the assembly holes, including hole type, hole diameter, hole depth and hole color, which greatly simplifies the user's assembly drilling steps and improves efficiency. 3. When assembling and drilling parts, this invention automatically calculates the drilling position and sets various parameters such as the hole diameter according to the configuration file. After drilling is completed, the hole color is automatically set according to the hole type, avoiding input errors that may occur during manual operation, such as incorrect hole position, incorrect hole diameter, incorrect color, etc., effectively improving the design quality. 4. The method of this invention is deeply integrated into the CATIA secondary development system. Through innovative functions such as automated hole matching and parameter configuration, it significantly expands the application scenarios of the software in the field of mechanical drawing and breaks through its original functional boundaries.

[0016] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description and the drawings. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 The flowchart of the assembly drilling method based on secondary development of CATIA software according to the present invention is shown. Figure 2 A schematic diagram is shown illustrating the intersection point calculation between the assembly and the parts to be assembled. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] like Figure 1 As shown, an assembly drilling method based on secondary development of CATIA software includes the following steps: S1: Read the configuration file and obtain the drilling specifications for the project. S2: Within the same project, select the mounting surface of the assembly and the part to be assembled. S3: Determine the reference diameter required for drilling the part to be assembled. S4: Determine the hole data for the mounting surface of the assembly. S5: Determine the coordinate transformation matrix between the mounting surface of the assembly and the part to be assembled. S6: Determine the hole data for the part to be assembled based on the coordinate transformation matrix, the reference diameter, and the hole data for the mounting surface of the assembly. S7: Drill holes on the surface of the part to be assembled based on the configuration file and the hole data. S8: Display the drilled part to be assembled in the 3D model.

[0021] It should be noted that the above method can be implemented through CATIA's secondary development system, which can quickly perform assembly drilling on the parts to be assembled and automatically set the hole type, diameter, depth, and color to match the holes on the assembly, greatly improving the efficiency of assembly drilling and avoiding parameter and attribute errors that may occur during manual assembly drilling. This method can be widely applied to assembly drilling of all 3D digital models within CATIA.

[0022] The process from S1 to S8 will be further explained below in conjunction with the development ecosystem of CATIA software, where the mounting surface of the assembly is the bolt mounting surface.

[0023] In S1, the acquired configuration file mainly includes the hole color data and hole diameter data. The path to the configuration file is needed in the CATIA secondary development system for subsequent calls. Therefore, the specific operation requires creating a status command in the CATIA secondary development system, creating a user interface window, gaining focus and canceling other commands, and then performing the following operations: (1) Obtain the path to the configuration file for the project's hole diameter specifications.

[0024] (2) Add callback functions for the window's cancel, close, and confirm operations. If a cancel or close operation notification is received, exit the program. If a confirm operation notification is received, execute the assembly punching operation function.

[0025] In S3, each step needs to be performed manually in the CATIA software, including the following steps: S301: Select the mounting surface of the assembly and obtain the hole diameters of all holes on the mounting surface. Specifically, the user manually selects the bolt mounting surface of the assembly, and the system obtains the detailed path of this mounting surface feature through the path element proxy and displays it on the window; then the system obtains the hole diameters of all holes on the mounting surface and adds them to the drop-down menu of the program window.

[0026] S302: Identify the parts to be assembled that mate with the assembly's mounting surfaces. Specifically, S202 mainly identifies the parts to be assembled with the assembly. Therefore, in CATIA software, the user needs to manually select the parts to be assembled. Afterward, the system obtains the detailed path of the parts to be assembled through path element proxies and displays it in the window.

[0027] S303: Determine the reference hole diameter required for the part to be assembled based on the hole diameters of all holes on the mounting surface. Specifically, the CATIA interface will display the diameters of the holes on the mounting surface of the assembly. To ensure that the part to be assembled can mate with the assembly, this step requires selecting the hole diameter required when drilling the part to be assembled, which is the reference hole diameter. Therefore, the number of holes on the part to be assembled is less than or equal to the number of holes on the mounting surface of the assembly.

[0028] S304: The user modifies the drilling depth in the window. If this step is skipped, the default value (20mm) will be used.

[0029] S305: When the user clicks the "OK" button on the window, the system will execute the assembly drilling operation function to perform drilling operations on the parts to be assembled.

[0030] S4 specifically includes the following steps: S401: Obtain the circular inner edge line on the mounting surface; specifically, in CATIA software, first obtain the two-dimensional topology cell of the mounting surface selected by the user, then extract all the neighborhood edges of the two-dimensional topology cell, and finally filter out the circular inner edge line from these edges and store it in a list, thereby completing the acquisition of the circular inner edge line on the mounting surface.

[0031] S402: Obtain all hole data of the part where the mounting surface is located; specifically, first obtain the list of topological entities of the part where the mounting surface is located; then traverse all topological entities in the previous step and obtain all their two-dimensional surface cells (CATFaceCell); finally traverse all two-dimensional surface cells in the previous step and determine whether they are inner cylindrical surfaces (holes). If so, obtain the upper / lower arc center and axial direction of the hole through its cylindrical surface measurement interface (arc angles less than 90 degrees are not calculated), and add this information to the hole data list to obtain all hole data of the part where the mounting surface is located.

[0032] S403: Traverse the inner edge of the circular edge of the mounting surface and the hole data of the part on which the mounting surface is located. If any inner edge of the circular edge on the mounting surface coincides with the upper / lower arc of any hole (the diameter and center position are the same), it means that the hole is a hole on the mounting surface, and store the corresponding hole data in the list.

[0033] The S5 includes the following steps: S501: Obtain the global coordinates A of the part containing the mounting surface, and obtain the inverse matrix A of the global position A of the part containing the mounting surface. -1 ; S502: Obtain the global coordinates B of the part to be assembled; S503: The coordinate transformation matrix C between the mounting surface and the part to be assembled satisfies: A×C=B; A -1 ×A×C=A -1 ×B; C=A -1 ×B.

[0034] The S6 includes the following steps: S601: Select any hole on the mounting surface and determine whether its diameter in the hole data is the same as the reference diameter. If they are not the same, select other holes and re-determine. If they are the same, the selected hole is the one that needs to be transformed in coordinates. S602: Converts the hole data of the mounting surface of the assembly into the hole data of the part to be assembled, wherein: The coordinates of the hole axis of the part to be assembled relative to the part to be assembled = the coordinates of the hole axis of the mounting surface relative to the mounting surface part multiplied by the coordinate transformation matrix; where the hole axis is obtained based on the center coordinates of the end face arc and the axis vector of the hole in the hole data.

[0035] S603: Obtain the intersection point of the hole axis and the part to be assembled, and use the intersection point as the coordinates of the part to be assembled where holes need to be drilled; S604: Drill holes at coordinates based on the reference aperture.

[0036] It should be noted that the hole data for any hole includes the diameter, the center coordinates of the end face arc, and the hole's axis vector. Therefore, before performing S601, it is generally necessary to obtain the center position of the upper arc (located on the mounting surface), the diameter, and the hole's axis vector for the current hole data.

[0037] It should be further explained that the functional relationship corresponding to the hole axis can be obtained by using the center coordinates of the end face arc and the axis vector of the hole. The center coordinates of the end face arc are the center coordinates of the arc corresponding to the hole on the surface (such as the mounting surface of the assembly and the surface of the part to be assembled that requires drilling). Therefore, the calculation principle of processes S601~S604 in CATIA software is as follows: 1. Obtain the coordinates of the mounting face axis relative to the mounting face part from the mounting face data.

[0038] 2. Since the absolute coordinates of the axis of the hole corresponding to the part to be assembled are the same as the axis of the hole of the mounting hole, we can calculate: The coordinates of the hole axis of the part to be assembled relative to the part to be assembled = the coordinates of the hole axis of the mounting surface relative to the mounting surface part multiplied by the coordinate transformation matrix.

[0039] 3. Find the intersection point of the "coordinates of the hole axis of the part to be assembled relative to the part to be assembled" and the part to be assembled. This intersection point is the drilling point of the hole in the part to be assembled. The coordinates of this drilling point relative to the part to be assembled are the drilling coordinates.

[0040] S7 includes the following steps: S701: Obtain the drilling plane and drilling point of the part to be assembled. Specifically, first, generate a straight line (hole axis) passing through the center of the arc on the hole and oriented towards its axis; then, obtain all the curved surfaces of the part to be drilled, find the intersection points of the hole axis line with these curved surfaces, and calculate the distance between the intersection point and the center of the arc on the hole, storing this distance in a list; finally, traverse the distance list from the previous step, find the minimum distance, and obtain its corresponding intersection point pPointOnSurface_min and the surface pSurface_min. Here, pSurface_min is the drilling plane on the part to be drilled, and pPointOnSurface_min is the drilling point.

[0041] S702: Create a hole feature at the punch point on the punched surface; specifically, this step requires obtaining the shape factory of the part to be assembled, then obtaining the reference of the punched surface, and finally creating a new hole feature at the punch point on the punched surface.

[0042] S703: Based on the configuration file, the parameters of the hole feature are set to obtain the assembly hole, specifically: S7031: Traverse the through-hole-threaded hole diameter matching list in the configuration file, find the threaded hole diameter specification corresponding to the hole diameter of the assembly hole. If the corresponding threaded hole diameter specification is found in the list, the assembly hole is a threaded hole; if the corresponding threaded hole diameter specification is not found in the list, the assembly hole is a pin hole, and the diameter should be the same as the current hole diameter.

[0043] S7032: Set the diameter of the hole feature to the assembly hole diameter obtained in the previous step; S7033: Set the hole bottom limit offset value of the hole feature to HoleDepth (hole depth), and the hole bottom type to V-shape; if the assembly hole is a threaded hole, also set the thread mode of the hole feature to threaded hole, the thread type to metric coarse thread, and the thread depth to HoleDepth; S7034: Based on the hole color data in the configuration file, if the assembly hole is a threaded hole, the color of the hole feature is set to the RGB value corresponding to vecThreadedHoleColor (threaded hole color); if the assembly hole is a pin hole, the color of the hole feature is set to the RGB value corresponding to vecPinHoleColor (pin hole color). S7035: Modify the external object name of the hole feature by adding a prefix.

[0044] It should be noted that, to ensure the execution of step S7034, CATIA's assembly drilling operation function will read the drilling diameter specification configuration file before drilling to obtain the hole color and the correspondence rule between through holes and threaded holes. The specific steps are as follows: 1) Get the colors of through holes, threaded holes, and pin holes, where the color object is a vector. <int>Data type that stores the Red, Green, and Blue values ​​of the color.

[0045] 2) Obtain the through hole-thread hole diameter specification matching list (the element type in the list is a structure, which contains two elements: one is the through hole diameter, such as 7, 9, etc.; the other is the thread hole specification, such as m6, m8, etc.).

[0046] S704: Drill holes on the drilling surface of the part to be assembled based on the parameters of the hole feature to obtain the assembly hole.

[0047] Combination Figure 2 In the S7 scenario, the holes and their vectors on the assembly are fixed values, which allows the functional expression of the hole axis line in the assembly mounting surface coordinate system to be uniquely determined. However, since the coordinate system of the part to be assembled differs from the coordinate system of the assembly mounting surface, a transformation matrix is ​​needed to transform the hole axis line from the assembly mounting surface coordinate system to the coordinate system of the part to be assembled. Finally, the intersection of the hole axis line with the part to be assembled (the part to be drilled) in the coordinate system of the part to be assembled is the coordinate of the center of the corresponding hole on that part.

[0048] As mentioned earlier, the CATIA software uses a secondary development system (tool). This system is used to execute the assembly drilling method based on the CATIA software secondary development. When performing secondary development, the user can open the corresponding interface and write the program so that the assembly drilling method runs according to the program.

[0049] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / int>

Claims

1. An assembly drilling method based on secondary development of CATIA software, characterized in that, Includes the following steps: Read the configuration file to obtain the project's punching specifications; Within the same project, select the mounting surface of the assembly and the parts to be assembled; Determine the reference diameter required for drilling holes in the parts to be assembled; Determine the hole data for the mounting surfaces of the assembly; Determine the coordinate transformation matrix between the mounting surface of the assembly and the parts to be assembled; The hole data of the part to be assembled is determined based on the coordinate transformation matrix, reference diameter, and hole data of the mounting surface of the assembly. Drill holes on the surface of the parts to be assembled based on the configuration file and the hole data of the parts to be assembled; The drilled parts to be assembled are displayed in the 3D model.

2. The assembly drilling method based on secondary development of CATIA software according to claim 1, characterized in that, Determine the reference diameter required for drilling holes in the parts to be assembled, including the following steps: Select the mounting surface of the assembly and obtain the diameter of all holes on the mounting surface; Identify the parts to be assembled that mate with the mounting surfaces of the assembly; Determine the required reference hole diameter for the part to be assembled based on the hole diameters of all holes on the mounting surface.

3. The assembly drilling method based on secondary development of CATIA software according to claim 2, characterized in that, The number of holes on the parts to be assembled is less than or equal to the number of holes on the mounting surface of the assembly.

4. The assembly drilling method based on secondary development of CATIA software according to claim 1, characterized in that, Determining the hole data for the mounting surfaces of the assembly includes the following steps: Obtain the inner edge of the circle on the mounting surface; Obtain all hole data for the part containing the mounting surface; Traverse the inner edge of the circular mounting surface and the hole data of the part on which the mounting surface is located. If any inner edge of the circular mounting surface coincides with the upper / lower arc of any hole, it means that the hole is a hole on the mounting surface, and store the hole data corresponding to the hole into the corresponding list.

5. The assembly drilling method based on secondary development of CATIA software according to claim 1, characterized in that, Determine the coordinate transformation matrix between the mounting surface of the assembly and the parts to be assembled, including the following steps: Obtain the global coordinates A of the part containing the mounting surface, and obtain the inverse matrix A of the global position A of the part containing the mounting surface. -1 ; Obtain the global coordinates B of the part to be assembled; The coordinate transformation matrix C between the mounting surface and the part to be assembled satisfies: A×C=B; A -1 ×A×C=A -1 ×B; C=A -1 ×B。 6. The assembly drilling method based on secondary development of CATIA software according to claim 1, characterized in that, The hole data includes the diameter, the center coordinates of the end face arc, and the axis vector of the hole.

7. The assembly drilling method based on secondary development of CATIA software according to claim 6, characterized in that, Determining the hole data of the part to be assembled based on the coordinate transformation matrix, reference diameter, and hole data of the mounting surface of the assembly includes the following steps: Select any hole on the mounting surface and determine whether its diameter in the hole data is the same as the reference diameter. If they are not the same, select other holes and re-determine. If they are the same, the selected hole is the one that needs to be transformed in coordinates. Convert the hole data of the mounting surface of the assembly into the hole data of the part to be assembled, wherein: The coordinates of the hole axis of the part to be assembled relative to the part to be assembled = the coordinates of the hole axis of the mounting surface relative to the mounting surface part multiplied by the coordinate transformation matrix; the hole axis is obtained based on the center coordinates of the end face arc and the axis vector of the hole in the hole data; Obtain the intersection point between the hole axis and the part to be assembled, and use the intersection point as the coordinates of the part to be assembled where holes need to be drilled; Drill holes at the coordinates based on the reference aperture.

8. The assembly drilling method based on CATIA software secondary development according to claim 1, characterized in that, Drilling holes on the surface of the parts to be assembled based on the configuration file and hole data of the parts to be assembled includes the following steps: Obtain the drilling plane and drilling points of the parts to be assembled; Create a hole feature at the punch point on the punched surface; The assembly holes are obtained by setting the parameters of the hole features based on the configuration file.

9. The assembly drilling method based on secondary development of CATIA software according to claim 8, characterized in that, Setting parameters and attributes for hole features based on configuration files includes the following steps: Traverse the through-hole-threaded hole diameter matching list in the configuration file to find the threaded hole diameter specification corresponding to the hole diameter of the assembly hole. If the corresponding threaded hole diameter specification is found in the through-hole-threaded hole diameter matching list, the assembly hole is a threaded hole; if the corresponding threaded hole diameter specification is not found in the through-hole-threaded hole diameter matching list, the assembly hole is a pin hole, and the diameter should be the same as the current hole diameter. Set the diameter of the hole feature to the assembly hole diameter obtained in the previous step; Set the hole bottom limit offset value of the hole feature to the hole depth, and the hole bottom type to V-shape; if the assembly hole is a threaded hole, also set the thread mode of the hole feature to threaded hole, the thread type to metric coarse thread, and the thread depth to be equal to the hole depth. Based on the hole color data in the configuration file, if the assembly hole is a threaded hole, the color of the hole feature is set to the RGB value corresponding to the threaded hole color; if the assembly hole is a pin hole, the color of the hole feature is set to the RGB value corresponding to the pin hole color. Modify the name of the external object for the hole feature by adding a prefix.

10. A secondary development system, characterized in that, The method for performing assembly drilling based on CATIA secondary development as described in any one of claims 1-9.