A method and system for detecting the protruding length of fasteners in drawings

By automatically detecting the matching condition and protruding length between bolts and nuts, the problem of irregular detection of bolts and nuts in the drawings is solved, efficient automatic detection is achieved, and work costs and error rates are reduced.

CN113592840BActive Publication Date: 2025-03-28CHINA SHIPBUILDING IND GRP DIESEL ENGINE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110901749.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-06
Publication Date
2025-03-28
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently detect and verify the protruding lengths of bolts and nuts in drawings, resulting in irregular designs and errors, increasing problems and work costs in production.

Method used

By obtaining the names of the bolts and nuts and their corresponding coordinate values, the matching between the bolts and nuts is calculated, and the protruding length of the bolts is calculated based on the characteristic parameters to achieve automatic detection.

Benefits of technology

Automatic detection of the protruding lengths of bolts and U-bolts in three-dimensional drawings is realized, saving manual inspection costs and avoiding missed and missed inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113592840B_ABST
    Figure CN113592840B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for detecting the protruding length of a fastener in a drawing, comprising the following steps: obtaining the name of a bolt and the name of its corresponding nut; obtaining the name of a component navigator file; if the name of the bolt corresponds to the file name, calculating the coordinate value of the midpoint of the central axis of the bolt (x1, y1, z1) and the coordinate value of the center of a top surface (x2, y2, z2); if the name of the nut corresponds to the file name, calculating the coordinate value of the midpoint of the central axis of the nut (x3, y3, z3) and the coordinate value of the center of a top surface (x4, y4, z4); judging whether the bolt and the nut match, and if they do match, calculating the protruding length L of the bolt.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of bolt protrusion length detection, and in particular relates to a method and system for detecting the protrusion length of a fastener in a drawing. Background Art

[0002] The statements herein merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] At present, there are many new models of ship main engines being produced, and the design drawings often contain errors or non-standard situations.

[0004] In assembly, the length of the bolt protruding from the nut is generally defined as 2-4mm as a standard design, but the length of the bolt protruding from the nut in the design drawings often appears to be 7mm or more, or the bolt does not protrude from the nut, which is a non-standard design. In some design drawings, the bolts are not designed with corresponding assembly nuts, which is a design error. Both of these situations will cause problems in the subsequent production equipment, so they need to be tested, but there are thousands of bolts / U-bolts on the entire host. If each drawing is checked manually, it will take too much time, greatly increasing the work cost. Summary of the invention

[0005] In view of the deficiencies in the prior art, an object of the present invention is to provide a method and system for detecting the protruding length of fasteners in drawings.

[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0007] In a first aspect, the present invention provides a method for detecting the protruding length of a fastener in a drawing, comprising the following steps:

[0008] Get the name of the bolt and its corresponding nut;

[0009] Get the component navigator file name;

[0010] If the name of the bolt corresponds to the file name, the coordinates of the center point of the bolt axis (x1, y1, z1) and the center of the top surface (x2, y2, z2) are calculated;

[0011] If the name of the nut corresponds to the file name, calculate the coordinates of the midpoint of the nut's central axis (x3, y3, z3) and the center of the top surface (x4, y4, z4);

[0012] Determine whether the bolt and nut match. If they do, calculate the protruding length L of the bolt.

[0013] As a further technical solution, the process of judging whether the bolt and nut match is as follows:

[0014] Calculate the distance between the midpoint of the bolt axis and the center of the bolt top surface:

[0015] L1=sqrt[(x1-x2)^2+(y1-y2)^2+(z1-z2)^2];

[0016] Calculate the distance between the center point of the bolt axis and the center point of the nut axis:

[0017] L2=sqrt[(x1-x3)^2+(y1-y3)^2+(z1-z3)^2];

[0018] Calculate the distance between the center of the bolt top surface and the midpoint of the nut center axis:

[0019] L3=sqrt[(x2-x3)^2+(y2-y3)^2+(z2-z3)^2];

[0020] If L1=L2+L3 holds, it means that the bolt and nut match.

[0021] As a further technical solution, calculate the distance between the midpoint of the nut center axis and the center of the nut top surface:

[0022] L4=sqrt[(x3-x4)^2+(y3-y4)^2+(z3-z4)^2];

[0023] Then the protruding length L of the bolt = L3 - L4.

[0024] As a further technical solution, if L1=L2+L3 does not hold, it means that the bolt and the nut do not match.

[0025] As a further technical solution, it is determined whether the protruding length of the bolt is greater than a first set value, or whether the protruding length of the bolt is less than a second set value; when the protruding length of the bolt is greater than the first set value, or the protruding length of the bolt is less than the second set value, the background color attribute of the corresponding bolt is set to the set color, and the name of the bolt, the name of the matching nut, and the protruding length information are output and stored.

[0026] As a further technical solution, if the bolt and nut do not match, the background color attribute of the corresponding bolt is set to a set color, and the corresponding information is output and stored.

[0027] As a further technical solution, if the name of the bolt does not correspond to the file name, the bolt will not be included in the drawing.

[0028] As a further technical solution, the names of the bolts to be queried and the corresponding nuts are stored in designated files respectively, and the names of the bolts and the nut are obtained from the files.

[0029] As a further technical solution, it is identified in the drawing whether the bolt is selected, and when selected, the name of the bolt is obtained, and the name of the corresponding nut is obtained from the name of the bolt in the component navigator file.

[0030] In a second aspect, the present invention further provides a system for detecting the protruding length of fasteners in drawings, comprising:

[0031] The first module is used to obtain the name of the bolt and the name of its corresponding nut;

[0032] The second module is used to obtain the component navigator file name;

[0033] The third module is used to calculate the coordinate value of the midpoint of the bolt center axis (x1, y1, z1) and the coordinate value of the center of the top surface (x2, y2, z2) if the name of the bolt corresponds to the file name;

[0034] The fourth module is used to calculate the coordinate value of the midpoint of the central axis of the nut (x3, y3, z3) and the coordinate value of the center of the top surface (x4, y4, z4) if the name of the nut corresponds to the file name;

[0035] The fifth module is used to determine whether the bolt and the nut match. If they match, the protruding length L of the bolt is calculated.

[0036] The beneficial effects of the present invention are as follows:

[0037] The detection method of the present invention can find the nut corresponding to the bolt to be detected by the names of the bolt and the nut, and then determine whether the two match by the characteristic parameters of the bolt and the nut. If they match, the protruding length of the bolt is calculated, and the automatic detection of the protruding length of the bolt and U-bolt in the three-dimensional drawing can be realized, which greatly saves the cost of manual inspection and avoids missed detection and wrong detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0039] Figure 1 is a schematic flow chart of a detection method according to one or more embodiments of the present invention;

[0040] Figure 2 is a schematic diagram of automatic detection according to one or more embodiments of the present invention;

[0041] Figure 3 is a schematic diagram of manual detection according to one or more embodiments of the present invention;

[0042] Figure 4is a graph of automatic detection results according to one or more embodiments of the present invention;

[0043] In the figure: the distances or sizes between parts are exaggerated to show the positions of various parts, and the schematic diagram is for illustration only. DETAILED DESCRIPTION

[0044] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0045] In a typical embodiment of the present invention, Figure 1 As shown, a method for detecting the protruding length of a fastener in a drawing is proposed, which includes the following steps:

[0046] Get the name of the bolt and its corresponding nut;

[0047] Get the component navigator file name;

[0048] If the name of the bolt corresponds to the name of the component navigator file, the coordinates of the center point of the bolt axis (x1, y1, z1) and the center point of the top surface (x2, y2, z2) are calculated;

[0049] If the name of the nut corresponds to the name of the component navigator file, the coordinates of the midpoint of the nut's central axis (x3, y3, z3) and the center of the top surface (x4, y4, z4) are calculated;

[0050] Calculate whether the bolt and nut match based on the coordinate value of the center axis of the bolt (x1, y1, z1), the coordinate value of the center of the top surface (x2, y2, z2) and the coordinate value of the center axis of the nut (x3, y3, z3). The calculation method is as follows:

[0051] Calculate the distance between the midpoint of the bolt axis and the center of the bolt top surface:

[0052] L1=sqrt[(x1-x2)^2+(y1-y2)^2+(z1-z2)^2];

[0053] Calculate the distance between the center point of the bolt axis and the center point of the nut axis:

[0054] L2=sqrt[(x1-x3)^2+(y1-y3)^2+(z1-z3)^2];

[0055] Calculate the distance between the center of the bolt top surface and the midpoint of the nut center axis:

[0056] L3=sqrt[(x2-x3)^2+(y2-y3)^2+(z2-z3)^2];

[0057] If L1=L2+L3, the bolt matches the nut. Then, the protruding length of the bolt is calculated based on the coordinates of the center of the bolt top surface (x2, y2, z2) and the center of the nut top surface (x4, y4, z4). The calculation method is as follows:

[0058] Calculate the distance between the midpoint of the nut's central axis and the center of the nut's top surface:

[0059] L4=sqrt[(x3-x4)^2+(y3-y4)^2+(z3-z4)^2];

[0060] Then the protruding length L of the bolt = L3 - L4.

[0061] If L1=L2+L3 does not hold, it means that the bolt and nut do not match.

[0062] This method is suitable for detecting the protruding length of bolts, U-bolts and nuts in 3D drawings such as UG, SolidWorks and Pro / E.

[0063] If the name of the bolt does not correspond to the name of the component navigator file, the bolt does not exist in the assembly drawing. If the bolt does not exist in the assembly drawing, there is no need to process the no result output, and you can match the next bolt with the same name.

[0064] In this solution, the file name of the component navigator contains corresponding bolt names, nut names and other component names. When performing the method steps, the bolt name is matched with the corresponding bolt name in the file name of the component navigator, and the nut name is matched with the corresponding nut name in the file name of the component navigator.

[0065] Since the names of various components in the 3D design drawings are unified, and the names of the nuts that match the bolts are also determined, the "bolt names correspond to the names in the component navigator file" in this method means that the bolt names are the same as the bolt names in the component navigator file. As long as the bolt names are checked to see if they correspond to the bolt names in the component navigator file, it is known whether the bolt exists in the corresponding drawing. Similarly, by judging whether the nut name corresponds to the nut name in the component navigator file, it is also known whether the nut exists in the drawing.

[0066] After the detection is completed, determine whether the protruding length of the bolt is greater than the first set value, or whether the protruding length of the bolt is less than the second set value; when the protruding length of the bolt is greater than the first set value, or the protruding length of the bolt is less than the second set value, set the background color attribute of the corresponding bolt to red, and output and store the name of the red-marked bolt, the name of the matching nut, and the protruding length information for easy search and analysis.

[0067] The protruding length of the bolt after the corresponding nut is connected has a certain standard range. This range is set according to the actual project needs. When the protruding length of the bolt is greater than the first set value, it indicates that the protruding length of the bolt is too long; when the protruding length of the bolt is less than the second set value, it indicates that the protruding length of the bolt is too short. The corresponding information needs to be output.

[0068] In a further solution, if the bolt and nut do not match, the background color attribute of the corresponding bolt is set to red, and "The bolt named: xxx has no matching nut!" is output to remind the staff to check.

[0069] In an optional implementation scheme, the detection process automatically detects the protruding lengths of all bolts. At this time, the names of the bolts and their corresponding nuts to be queried are respectively stored in designated files, and the names of the bolts and nuts are obtained from the files.

[0070] In an optional implementation scheme, the detection process can manually select a bolt to detect its protruding length. At this time, it is identified in the drawing whether the bolt is selected. When it is selected, it means that the current bolt is selected and its protruding length needs to be detected. When it is identified that the current bolt is selected, the name of the bolt is obtained, and the coordinate value of the midpoint of the bolt center axis (x1, y1, z1) and the coordinate value of the center of the top surface (x2, y2, z2) are calculated; according to the name of the bolt, the name of the nut corresponding to the bolt is obtained in the component navigator file, and the coordinate value of the midpoint of the nut center axis (x3, y3, z3) and the coordinate value of the center of the top surface (x4, y4, z4) are calculated according to the name;

[0071] Calculate whether the bolt and nut match based on the coordinate value of the center axis of the bolt (x1, y1, z1), the coordinate value of the center of the top surface (x2, y2, z2) and the coordinate value of the center axis of the nut (x3, y3, z3). The calculation method is as follows:

[0072] Calculate the distance between the midpoint of the bolt axis and the center of the bolt top surface:

[0073] L1=sqrt[(x1-x2)^2+(y1-y2)^2+(z1-z2)^2];

[0074] Calculate the distance between the center point of the bolt axis and the center point of the nut axis:

[0075] L2=sqrt[(x1-x3)^2+(y1-y3)^2+(z1-z3)^2];

[0076] Calculate the distance between the center of the bolt top surface and the midpoint of the nut center axis:

[0077] L3=sqrt[(x2-x3)^2+(y2-y3)^2+(z2-z3)^2];

[0078] If L1=L2+L3, the bolt matches the nut. Then, the protruding length of the bolt is calculated based on the coordinates of the center of the bolt top surface (x2, y2, z2) and the center of the nut top surface (x4, y4, z4). The calculation method is as follows:

[0079] Calculate the distance between the midpoint of the nut's central axis and the center of the nut's top surface:

[0080] L4=sqrt[(x3-x4)^2+(y3-y4)^2+(z3-z4)^2]

[0081] The protruding length L of the bolt is L3-L4.

[0082] If L1=L2+L3 does not hold, it means that the bolt and nut do not match.

[0083] In another typical embodiment of the present invention, a system for detecting the protruding length of a fastener in a drawing is provided, comprising:

[0084] The first module is used to obtain the name of the bolt and the name of its corresponding nut;

[0085] The second module is used to obtain the component navigator file name;

[0086] The third module is used to calculate the coordinate value of the midpoint of the bolt center axis (x1, y1, z1) and the coordinate value of the center of the top surface (x2, y2, z2) if the name of the bolt corresponds to the file name;

[0087] The fourth module is used to calculate the coordinate value of the midpoint of the central axis of the nut (x3, y3, z3) and the coordinate value of the center of the top surface (x4, y4, z4) if the name of the nut corresponds to the file name;

[0088] The fifth module is used to determine whether the bolt and the nut match. If they match, the protruding length L of the bolt is calculated.

[0089] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the technical solution of the present application will be described in detail below in conjunction with specific embodiments.

[0090] Embodiment 1:

[0091] This embodiment takes UG three-dimensional drawings as an example for explanation. When operating, select automatic detection. Figure 2 , select "Automatic Detection" under the "Measurement Method Selection" list, click "Apply" or "OK", and the length of all bolts / U-bolts protruding from their matching nuts in the assembly will be automatically detected.

[0092] This embodiment automatically detects the protruding lengths of all bolts in the assembly according to the names of the bolts, and outputs the detection results in the order in the component navigator. Figure 3 , required for rapid detection.

[0093] The specific steps of the method for detecting the protruding length of the bolt in this embodiment are as follows:

[0094] 1. Save the names of the standard bolts / U-bolts and their corresponding nuts to be queried into the specified files respectively;

[0095] 2. Read the names of standard bolts / U-bolts and their corresponding nuts in the file;

[0096] 3. Read the NX Part Navigator file names in sequence;

[0097] 4. Compare the standard bolt / U-bolt name read in step 2 with the file name read in step 3. If the same name exists, proceed to step 5. If not, it means that the standard bolt / U-bolt does not exist in the NX assembly drawing.

[0098] 5. According to the name of the standard bolt / U-bolt, calculate the coordinate value of the midpoint of the bolt center axis and the coordinate value of the top surface center;

[0099] 6. Compare the nut names corresponding to the standard bolt / U-bolt with the file names read in step 3. If the same names exist, proceed to step 7. If not, it means that there is no matching nut for the standard bolt / U-bolt in the NX assembly drawing.

[0100] 7. According to the name of the nut, calculate the coordinate value of the midpoint of the nut's central axis and the coordinate value of the center of the top surface;

[0101] 8. Calculate whether the bolt and nut match according to the coordinate values ​​of the midpoint of the central axis of the bolt, the coordinate values ​​of the center of the top surface, and the coordinate values ​​of the midpoint of the central axis of the nut, and the coordinate values ​​of the center of the top surface. If they match, calculate the protruding length of the bolt; if not, it means that the bolt and nut do not match;

[0102] 9. Based on the calculation results, the bolts with protruding length that is too long / too short or without matching nuts are marked in red to facilitate search and analysis.

[0103] Embodiment 2:

[0104] In this embodiment, UG three-dimensional drawings are used as an example for explanation. Manual detection is selected during operation. Figure 3, select "Manual selection" under the "Measurement method selection" list, select the bolt / U-bolt you want to detect, and then click "Apply" or "OK". The length of the selected bolt / U-bolt protruding from its matching nut will be automatically detected.

[0105] This embodiment manually selects a bolt / U-bolt to be inspected for inspection and outputs the inspection result, which is required for rapid inspection of the protruding length during local inspection.

[0106] The specific steps of the method for detecting the protruding length of the bolt in this embodiment are as follows:

[0107] 1. The bolts that need to be inspected are identified and selected in the NX assembly drawing;

[0108] 2. Get the name of the bolt and calculate the coordinates of the midpoint of the bolt's central axis and the center of the top surface;

[0109] 3. Query the corresponding nut name according to the bolt name;

[0110] 4. Read the NX Part Navigator file names in sequence;

[0111] 5. Compare the nut name with the file name read in step 4. If the same name exists, proceed to step 6. If not, it means that there is no matching nut for the standard bolt / U-bolt in the NX assembly drawing.

[0112] 6. According to the name of the nut, calculate the coordinate value of the midpoint of the nut's central axis and the coordinate value of the center of the top surface;

[0113] 7. Calculate whether the bolt and nut match based on the coordinate values ​​of the midpoint of the bolt's central axis, the coordinate values ​​of the top surface center, and the coordinate values ​​of the midpoint of the nut's central axis, and the coordinate values ​​of the top surface center. If they match, calculate the protruding length of the bolt; if not, it means that the bolt and nut do not match.

[0114] Describe the corresponding test result with one of the following names:

[0115] The "Information" box displays the inspection results in the order in which they appear in the assembly component navigator:

[0116] If there is a matching nut, the output is:

[0117] The name of the bolt is: EN226B77100.0;

[0118] The name of the matching nut is: EN91R12.0;

[0119] Bolt protrusion length: 3.81.

[0120] If there is no matching nut, the output is:

[0121] The bolts named: EN61V1640.0 have no matching nuts!

[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for detecting the protruding length of fasteners in drawings, characterized in that: The following steps are involved: Get the name of the bolt and its corresponding nut; Get the component navigator file name; If the name of the bolt corresponds to the file name, the coordinates of the center point of the bolt axis (x1, y1, z1) and the center of the top surface (x2, y2, z2) are calculated; If the name of the nut corresponds to the file name, calculate the coordinates of the midpoint of the nut's central axis (x3, y3, z3) and the center of the top surface (x4, y4, z4); Determine whether the bolt and nut match. If they do, find the protruding length L of the bolt. The process of judging whether the bolt and nut match is as follows: Calculate the distance between the midpoint of the bolt axis and the center of the bolt top surface: L1=sqrt[(x1-x2)^2+(y1-y2)^2+(z1-z2)^2]; Calculate the distance between the center point of the bolt axis and the center point of the nut axis: L2=sqrt[(x1-x3)^2+(y1-y3)^2+(z1-z3)^2]; Calculate the distance between the center of the bolt top surface and the midpoint of the nut center axis: L3=sqrt[(x2-x3)^2+(y2-y3)^2+(z2-z3)^2]; If L1=L2+L3 holds, it means the bolt and nut match; Calculate the distance between the midpoint of the nut's central axis and the center of the nut's top surface: L4=sqrt[(x3-x4)^2+(y3-y4)^2+(z3-z4)^2]; Then the protruding length L of the bolt = L3 - L4.

2. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: If L1=L2+L3 does not hold, it means that the bolt and nut do not match.

3. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: Determine whether the protruding length of the bolt is greater than a first set value, or whether the protruding length of the bolt is less than a second set value; when the protruding length of the bolt is greater than the first set value, or the protruding length of the bolt is less than the second set value, set the background color attribute of the corresponding bolt to the set color, and output and store the name of the bolt, the name of the matching nut, and the protruding length information.

4. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: If the bolt and nut do not match, the background color attribute of the corresponding bolt is set to the set color, and the corresponding information is output and stored.

5. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: If the name of the bolt does not correspond to the file name, the bolt does not exist in the drawing.

6. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: The names of the bolts and their corresponding nuts to be queried are stored in the specified file respectively, and the names of the bolts and nuts are obtained from the file.

7. The method for detecting the protruding length of fasteners in drawings as claimed in claim 1, characterized in that: Identify whether the bolt is selected in the drawing. If selected, obtain the name of the bolt, and then obtain the name of the corresponding nut from the component navigator file based on the name of the bolt.

8. A system for detecting the protruding length of fasteners in drawings, characterized in that: include: The first module is used to obtain the name of the bolt and the name of its corresponding nut; The second module is used to obtain the component navigator file name; The third module is used to calculate the coordinate value of the midpoint of the bolt center axis (x1, y1, z1) and the coordinate value of the center of the top surface (x2, y2, z2) if the name of the bolt corresponds to the file name; The fourth module is used to calculate the coordinate value of the midpoint of the nut's central axis (x3, y3, z3) and the coordinate value of the center of the top surface (x4, y4, z4) if the name of the nut corresponds to the file name; The fifth module is used to determine whether the bolt and the nut match. If they match, the protruding length L of the bolt is calculated; The process of judging whether the bolt and nut match is as follows: Calculate the distance between the midpoint of the bolt axis and the center of the bolt top surface: L1=sqrt[(x1-x2)^2+(y1-y2)^2+(z1-z2)^2]; Calculate the distance between the center point of the bolt axis and the center point of the nut axis: L2=sqrt[(x1-x3)^2+(y1-y3)^2+(z1-z3)^2]; Calculate the distance between the center of the bolt top surface and the midpoint of the nut center axis: L3=sqrt[(x2-x3)^2+(y2-y3)^2+(z2-z3)^2]; If L1=L2+L3 holds, it means the bolt and nut match; Calculate the distance between the midpoint of the nut's central axis and the center of the nut's top surface: L4=sqrt[(x3-x4)^2+(y3-y4)^2+(z3-z4)^2]; Then the protruding length L of the bolt = L3 - L4.

Citation Information

Patent Citations

  • Method for detecting isocenter of linear accelerator and radius of sphere

    CN103776375A

  • Method for automatically identifying CAD (Computer-Aided Design) engineering drawing of bolts

    CN112434502A