A method and system for detecting spacing of welding standard parts
Through the software system, the spacing of welding standard parts is automatically detected, which solves the problems of low efficiency and missed detection and error detection in traditional methods, and achieves efficient and accurate spacing detection.
Patent Information
- Application Number
- CN202510517798.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2045-04-24
AI Technical Summary
The spacing detection method of traditional welding standard parts is inefficient, with risks of missed or missed inspection, and is a large number of repetitive manual operations.
The software system automatically identifies the nodes of the welding standard parts, generates axis, group inspection, realizes automatic spacing inspection, and outputs qualified results.
Simplifies operational steps, improves inspection efficiency and accuracy, and reduces designer workload and costs.
Smart Images

Figure CN120027751B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of automobile automation design, and in particular relates to a spacing detection method and system for welding standard parts. Background Art
[0002] In the body-in-white assembly, to ensure the qualified rate of welding studs and reduce shunting and deformation of welded parts, it is necessary to ensure sufficient space and reasonable spacing between welding studs and other standard welding parts, and to ensure that the distance between two standard parts meets the actual process production requirements. Therefore, designers are required to test the spacing of studs and other standard welding parts during structural design to determine whether the distance between welding standard parts meets welding requirements. Studs and other welding standard parts that meet the requirements can be excluded from the statistics, but studs and other welding standard parts that do not meet the requirements must be counted and their positions adjusted.
[0003] The traditional method for detecting the spacing between standard welding parts (taking studs as an example) is: open the digital model whose stud spacing needs to be measured - select the "Measure Spacing" command, select the detection mode - identify the two stud axes for detection - and determine whether the spacing meets the requirements. This method is still a manual operation method, with long detection time and low efficiency. In particular, there are hundreds of welding standard parts similar to studs in the white body assembly. The process of manual detection involves a lot of repetitive operations. Not only is the operation process cumbersome and inefficient, but there is also a risk of missed detection and wrong detection. Summary of the Invention
[0004] The present invention provides a method and system for detecting the spacing of welding standard parts, which simplifies the operation process and improves the detection efficiency and accuracy.
[0005] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0006] A method for detecting the spacing of welding standard parts, comprising:
[0007] S1. Read the part node in the structure tree of the digital model file and select the welding standard parts with the spacing to be tested;
[0008] S2. generating an axis for the welding standard part through surface processing;
[0009] S3. Detect parts that have an interference relationship with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together;
[0010] S4. Perform distance detection on each pair of welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified.
[0011] Furthermore, the screening method in step S1 includes screening nodes whose part feature attribute information meets the requirements of welding standard parts.
[0012] Furthermore, the method for generating an axis for the welding standard component by surface processing in step S2 includes:
[0013] S201, identifying the outer surface of the welding standard part, and disassembling the outer surface into dispersed curved surfaces;
[0014] S202, generating an axis for each surface. If no axis can be generated, the process is abandoned until all surfaces are processed.
[0015] S203, counting the number of coaxial curved surfaces, and taking the axis with the largest number of coaxial curved surfaces as the primary axis;
[0016] S204: The primary axis is intersected with the welding standard component to obtain all intersection points, and the two intersection points with the farthest distance are connected as the final axis of the welding standard component.
[0017] Furthermore, in step S3, the interference relationship detection method includes:
[0018] Select the welding standard parts and the product assembly where the welding standard parts are located for collision detection, and detect the parts that have a collision relationship or contact relationship with the welding standard parts. If only one part is detected, it will be regarded as a part that has an interference relationship with the welding standard parts.
[0019] The judgment standard of the collision relationship is that the gap value between the two is less than 0 mm; the judgment standard of the contact relationship is that the gap value between the two is equal to 0 mm.
[0020] Furthermore, step S4 also includes: setting an output result screening value, and when the pairwise distance detection result is greater than or equal to the set distance standard, continuing to compare the pairwise distance detection result with the output result screening value; if the pairwise distance detection result is less than or equal to the output result screening value, then normally outputting information that the welding standard part is qualified; if the pairwise distance detection result is greater than the output result screening value, then not outputting the corresponding qualified information of the welding standard part.
[0021] Another aspect of the present invention further provides a spacing detection system for welding standard parts, comprising:
[0022] Reading module: reads the part node in the structure tree of the digital model file and selects the welding standard parts with the spacing to be tested;
[0023] Axis module: Generates the axis for the welding standard part through surface processing;
[0024] Grouping module: detects parts that interfere with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together.
[0025] Detection module: Perform distance detection on welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified.
[0026] Furthermore, the reading module includes: screening nodes whose part feature attribute information meets the requirements of welding standard parts.
[0027] Furthermore, the axis module includes:
[0028] Disassembly unit: identifies the outer surface of the welding standard part and disassembles the outer surface into scattered curved surfaces;
[0029] Surface axis unit: Generate axis for each surface. If axis cannot be generated, the process will be abandoned until all surfaces are processed.
[0030] Primary axis unit: count the number of coaxial surfaces and take the axis with the largest number of coaxial surfaces as the primary axis;
[0031] Final axis unit: The primary axis is intersected with the welding standard part to obtain all intersection points. The two intersection points with the farthest distance are connected as the final axis of the welding standard part.
[0032] Furthermore, the grouping module is provided with an interference relationship detection unit, and the interference relationship detection unit includes:
[0033] Select the welding standard parts and the product assembly where the welding standard parts are located for collision detection, and detect the parts that have a collision relationship or contact relationship with the welding standard parts. If only one part is detected, it will be regarded as a part that has an interference relationship with the welding standard parts.
[0034] The judgment standard of the collision relationship is that the gap value between the two is less than 0 mm; the judgment standard of the contact relationship is that the gap value between the two is equal to 0 mm.
[0035] Furthermore, the detection module also includes: setting an output result screening value, and when the pairwise distance detection result is greater than or equal to the set distance standard, continuing to compare the pairwise distance detection result with the output result screening value; if the pairwise distance detection result is less than or equal to the output result screening value, then normally outputting information that the welding standard part is qualified; if the pairwise distance detection result is greater than the output result screening value, then not outputting the corresponding qualified information of the welding standard part.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] The method of the present invention can identify the stud nodes through software and process them to obtain the axis; the stud interference is processed to obtain the parent part, and all the studs and other welding standard parts that have a welding relationship with the parent part are grouped; the axis of each stud is identified, and the studs in each group are measured in pairs to determine whether their spacing meets the requirements. At the same time, the stud and parent part information and their test results can be viewed on the software interface, and a report can be output for designers to view and download conveniently. It is also possible to not output the results that meet the requirements and have a spacing greater than a certain value, reducing the amount of data displayed on the interface. The present invention simplifies the operation steps, highlights the key points, and greatly reduces the operational workload of designers. Designers only need to set the distance standard and click a button to easily realize the spacing detection of hundreds of welding standard parts in the white body assembly. It avoids a lot of manual repetitive work, and the results obtained are faster and more accurate, while improving work efficiency and reducing design costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of the spacing detection method of the present invention;
[0039] Figure 2 1 is a schematic diagram of the software interface of Example 1 of the present invention;
[0040] Figure 3 2 is a flow chart of generating the stud axis in step 2 of embodiment 1 of the present invention;
[0041] Figure 4 2 is a schematic diagram of the curved surface disassembly of step 2 of embodiment 1 of the present invention;
[0042] Figure 5 is a schematic diagram of the curved axis in step 2 of Example 1 of the present invention;
[0043] Figure 6 is a schematic diagram of the final axis of step 2 of Example 1 of the present invention;
[0044] Figure 7 2 is a schematic diagram of stud interference detection in step 3 of embodiment 1 of the present invention;
[0045] Figure 8 2 is a schematic diagram of spacing detection in step 4 of embodiment 1 of the present invention;
[0046] Figure 9 This is a schematic diagram of the output review result of step 4 of Example 1 of the present invention;
[0047] Figure 10 It is a schematic diagram of the system structure of Example 2 of the present invention. DETAILED DESCRIPTION
[0048] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0049] The design concept of this invention is to realize the automatic spacing detection of welding standard parts through the software system, simplify the operation process and automatically realize the content that originally required a lot of manual repetitive operations through code. After setting the corresponding parameters, the results can be output with one click.
[0050] According to the design concept, the method for detecting the spacing between welding standard parts proposed by the present invention is as follows: Figure 1 As shown, including:
[0051] S1. Read the part node in the structure tree of the digital model file and select the welding standard parts with the spacing to be tested;
[0052] S2. generating an axis for the welding standard part through surface processing;
[0053] S3. Detect parts that have an interference relationship with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together;
[0054] S4. Perform distance detection on each pair of welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified.
[0055] Based on the above method, the present invention will be further described below with reference to the accompanying drawings, taking the detection of stud spacing as a specific embodiment.
[0056] Example 1:
[0057] The method implemented in this embodiment specifically includes:
[0058] 1. Get the model file:
[0059] Open the digital model file of the body-in-white assembly that needs to be tested in the local folder. You can also use the automatic acquisition method in this embodiment. For example, when multiple CATIA interfaces are opened, the user selects the interface where the product needs to be tested, then opens the software and enters the gap detection function area. The gap detection function area software interface is as follows: Figure 2 As shown, the software can connect to CATIA and automatically read the product model through the "Automatically obtain product model" button.
[0060] 2. Parameter settings:
[0061] like Figure 2 As shown, in the "Detection Model Parameters" of the software interface, the initial setting default value of "Detection Spacing" is displayed. It is configured and the user can modify it in the database. In this embodiment, it is set to 22.5mm.
[0062] "Output Result Filter - Spacing" means that spacing results above this value will not be output, and the page and report will only display results below this value. This interface shows the initial setting value, which can be modified as needed. In this example, it is set to 100mm.
[0063] 3. Stud spacing detection:
[0064] After clicking the "Stud Spacing Detection" button, the software searches the CATIA selected product model nodes one by one according to the stud identification set in the database, and identifies the studs with corresponding characters;
[0065] The software detects and reviews the spacing between studs according to the set detection logic.
[0066] IV. Review Results:
[0067] The review results generated by the software after the spacing detection are as follows Figure 2 As shown in the list, when the user clicks on a row of data in the list, the data in CATIA interacts with it, showing the corresponding stud position and highlighting the "center" of the figure.
[0068] The review results will display "Unqualified" and "Awaiting Review" by default, and a screenshot of the corresponding stud position will be taken.
[0069] The review results can be corrected. After correcting "qualified" to "unqualified", you need to add a screenshot of the unqualified position.
[0070] The review results can be accumulated and the list data can be checked. Click the [Export Report] button to add the comprehensive information of the stud inspection to the EXCEL file. After opening the EXCEL file, the user can download it to a custom path.
[0071] Among them, the logic of spacing detection and review is as follows Figure 3 As shown, including the following:
[0072] Step 1: Screen the studs.
[0073] By default, the software reads the "part" node in the model structure tree and selects nodes whose part feature attributes meet the requirements of the automotive standard parts manual. For example, welding standard parts starting with Q110, Q198, and Q199 in the standard parts library are used as studs for testing spacing. Identification codes are created as configuration files and stored in the database to accommodate changes made by certain automakers using corporate logos.
[0074] Step 2: Generate the stud axis.
[0075] Step 2 method is as follows Figure 3 As shown, including:
[0076] S201, identifying the outer surface of the stud, and disassembling the outer surface into dispersed curved surfaces;
[0077] This step is performed by driving CATIA software. Figure 4 As shown, Figure 4 The middle left picture is a stud diagram, and the right picture is a schematic diagram of part of the curved surface obtained by disassembly.
[0078] S202, generating an axis for each surface. If no axis can be generated, the process is abandoned until all surfaces are processed.
[0079] like Figure 5 Shown is a schematic diagram of the axis of the curved surface 6 in this embodiment.
[0080] S203. Count the number of coaxial surfaces, and take the axis with the largest number of coaxial surfaces as the primary axis.
[0081] S204: The primary axis is intersected with the welding standard component to obtain all intersection points, and the two intersection points with the farthest distance are connected as the final axis of the welding standard component.
[0082] like Figure 6 The figure shows the schematic diagram of the final axis obtained by intersecting the primary axis with the welding standard part and connecting the two intersection points with the greatest distance.
[0083] Step 3: Group parts.
[0084] The software drives CATIA to detect parts that have an interference relationship with the studs as the parent parts of the studs, and then detects the interference relationship between the parent parts and other studs. The studs that have an interference relationship with the same parent part are all located on the same parent part and are therefore grouped together.
[0085] The detection of parts that interfere with the studs is achieved by detecting collisions. The operation interface is as follows: Figure 7 As shown, "Select 1" selects the target measurement stud, "Select 2" selects the product assembly, and performs collision detection to detect whether there are parts that have a collision or contact relationship with the welding standard part. The judgment standard for the collision relationship is that the gap value between the two is <0mm; the judgment standard for the contact relationship is that the gap value between the two is =0mm.
[0086] If only one part is detected, it will be considered as the part that interferes with the welding standard part; continue with the subsequent steps, otherwise output for review.
[0087] Step 4: Distance detection.
[0088] Perform distance detection on parts in the same group, such as Figure 8 shown.
[0089] according to Figure 2 The distance standard of "Detection Spacing" set in the interface is 22.5mm (configurable in the database):
[0090] The test result is greater than or equal to 22.5mm, and the output is qualified;
[0091] If the test result is less than 22.5mm, the output is unqualified. Figure 9 As shown, when the output is unqualified, the software takes a screenshot of the corresponding stud position.
[0092] According to the setting "Output Result Filter--Spacing", if the detection result is greater than 100mm, the corresponding stud information will not be output.
[0093] The method of this embodiment avoids a large amount of manual repetitive work, and the obtained stud spacing detection results are faster and more accurate, while improving work efficiency and reducing design costs.
[0094] Example 2:
[0095] In this embodiment 2, a spacing detection system for welding standard parts is proposed, such as Figure 10 As shown, including:
[0096] Reading module: reads the part node in the structure tree of the digital model file and selects the welding standard parts with the spacing to be tested;
[0097] Axis module: Generates the axis for the welding standard part through surface processing;
[0098] Grouping module: detects parts that interfere with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together.
[0099] Detection module: Perform distance detection on welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified.
[0100] The reading module includes: screening nodes whose part feature attribute information meets the requirements of welding standard parts.
[0101] The axis module includes:
[0102] Disassembly unit: identifies the outer surface of the welding standard part and disassembles the outer surface into scattered curved surfaces;
[0103] Surface axis unit: Generate axis for each surface. If axis cannot be generated, the process will be abandoned until all surfaces are processed.
[0104] Primary axis unit: count the number of coaxial surfaces and take the axis with the largest number of coaxial surfaces as the primary axis;
[0105] Final axis unit: The primary axis is intersected with the welding standard part to obtain all intersection points. The two intersection points with the farthest distance are connected as the final axis of the welding standard part.
[0106] The grouping module is provided with an interference relationship detection unit, and the interference relationship detection unit includes:
[0107] Select the welding standard parts and the product assembly where the welding standard parts are located for collision detection, and detect the parts that have a collision relationship or contact relationship with the welding standard parts. If only one part is detected, it will be regarded as a part that has an interference relationship with the welding standard parts.
[0108] The judgment standard of the collision relationship is that the gap value between the two is less than 0 mm; the judgment standard of the contact relationship is that the gap value between the two is equal to 0 mm.
[0109] The detection module also includes: setting an output result screening value, and when the pairwise distance detection result is greater than or equal to the set distance standard, continuing to compare the pairwise distance detection result with the output result screening value; if the pairwise distance detection result is less than or equal to the output result screening value, normally outputting information that the welding standard part is qualified; if the pairwise distance detection result is greater than the output result screening value, not outputting the corresponding qualified information of the welding standard part.
[0110] The spacing detection system for welding standard parts proposed in this embodiment can implement the spacing detection method for welding standard parts described in Example 1 and has the same technical effects as Example 1.
[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for detecting the spacing of welding standard parts, characterized in that: include: S1. Read the part node in the structure tree of the digital model file and select the welding standard parts with the spacing to be tested; S2. generating an axis for the welding standard part through surface processing; S3. Detect parts that have an interference relationship with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together; S4. Perform distance detection on each pair of welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified. The method for generating an axis for the welding standard component by surface processing in step S2 includes: S201, identifying the outer surface of the welding standard part, and disassembling the outer surface into dispersed curved surfaces; S202, generating an axis for each surface. If no axis can be generated, the process is abandoned until all surfaces are processed. S203, counting the number of coaxial curved surfaces, and taking the axis with the largest number of coaxial curved surfaces as the primary axis; S204: The primary axis is intersected with the welding standard component to obtain all intersection points, and the two intersection points with the farthest distance are connected as the final axis of the welding standard component.
2. The method for detecting the spacing of welding standard parts according to claim 1, characterized in that: The screening method in step S1 includes screening nodes whose part feature attribute information meets the requirements of welding standard parts.
3. The method for detecting the spacing of welding standard parts according to claim 1, wherein: In step S3, the interference relationship detection method includes: Select the welding standard parts and the product assembly where the welding standard parts are located for collision detection, and detect the parts that have a collision relationship or contact relationship with the welding standard parts. If only one part is detected, it will be regarded as a part that has an interference relationship with the welding standard parts. The judgment standard of the collision relationship is that the gap value between the two is less than 0 mm; the judgment standard of the contact relationship is that the gap value between the two is equal to 0 mm.
4. The method for detecting the spacing of welding standard parts according to claim 1, wherein: Step S4 also includes: setting an output result screening value, and when the pairwise distance detection result is greater than or equal to the set distance standard, continuing to compare the pairwise distance detection result with the output result screening value; if the pairwise distance detection result is less than or equal to the output result screening value, then normally outputting information that the welding standard part is qualified; if the pairwise distance detection result is greater than the output result screening value, then not outputting the corresponding qualified information of the welding standard part.
5. A spacing detection system for welding standard parts, characterized in that: include: Reading module: reads the part node in the structure tree of the digital model file and selects the welding standard parts with the spacing to be tested; Axis module: Generates the axis for the welding standard part through surface processing; Grouping module: detects parts that interfere with welding standard parts. As the parent parts of welding standard parts, welding standard parts located on the same parent part are grouped together. Detection module: Perform distance detection on each pair of welding standard parts in the same group. If the detection result is greater than or equal to the set distance standard, the welding standard parts are output as qualified; The axis module includes: Disassembly unit: identifies the outer surface of the welding standard part and disassembles the outer surface into scattered curved surfaces; Surface axis unit: Generate axis for each surface. If axis cannot be generated, the process will be abandoned until all surfaces are processed. Primary axis unit: count the number of coaxial surfaces and take the axis with the largest number of coaxial surfaces as the primary axis; Final axis unit: The primary axis is intersected with the welding standard part to obtain all intersection points. The two intersection points with the farthest distance are connected as the final axis of the welding standard part.
6. The spacing detection system for welding standard parts according to claim 5, characterized in that: The reading module includes: screening nodes whose part feature attribute information meets the requirements of welding standard parts.
7. The spacing detection system for welding standard parts according to claim 5, characterized in that: The grouping module is provided with an interference relationship detection unit, and the interference relationship detection unit includes: Select the welding standard parts and the product assembly where the welding standard parts are located for collision detection, and detect the parts that have a collision relationship or contact relationship with the welding standard parts. If only one part is detected, it will be regarded as a part that has an interference relationship with the welding standard parts. The judgment standard of the collision relationship is that the gap value between the two is less than 0 mm; the judgment standard of the contact relationship is that the gap value between the two is equal to 0 mm.
8. The spacing detection system for welding standard parts according to claim 5, characterized in that: The detection module also includes: setting an output result screening value, and when the pairwise distance detection result is greater than or equal to the set distance standard, continuing to compare the pairwise distance detection result with the output result screening value; if the pairwise distance detection result is less than or equal to the output result screening value, normally outputting information that the welding standard part is qualified; if the pairwise distance detection result is greater than the output result screening value, not outputting the corresponding qualified information of the welding standard part.
Citation Information
Patent Citations
Measurement method based on structural dimensions of central axis and central axis surface of reconstruction model
CN110763169A
Method and system for detecting distance from welding spot center to R angle
CN119845121A