A method for automatically generating an automatic drilling and riveting interface state digital file

By automatically generating digital models and drawings of the automatic drilling and riveting handover status on the CATIA platform, the problem of large workload in manually handling point and line elements is solved, achieving efficient process preparation and improved programming quality, thereby enhancing the operating efficiency and reliability of automatic drilling and riveting equipment.

CN115202734BActive Publication Date: 2025-12-05AVIC SAC COMML AIRCRAFT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210848396.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2025-12-05
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

During the generation of digital models and drawings for the automatic drilling and riveting handover process, the repetitive workload of manually handling point and line elements is large, which affects the efficiency of automatic drilling and riveting operation and is time-consuming, restricting the process preparation cycle and programming quality.

Method used

The secondary development is carried out by combining VB.NET and CATIA. By reading the original engineering component digital model, matching the point coordinates and fastener information, constructing the part structure tree, automatically rendering the color and changing the shape, generating two-dimensional drawings and adding numbered annotations.

Benefits of technology

It significantly shortened the process preparation cycle, improved the work efficiency and programming quality of process personnel, enhanced the efficiency of automatic drilling and riveting operations, and improved the readability of handover status and the reliability of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202734B_ABST
    Figure CN115202734B_ABST
Patent Text Reader

Abstract

The application discloses a method for automatically generating an automatic drilling and riveting handover state digital file, which comprises the following steps: firstly, establishing a point, line and coordinate associated data combination in CATIA; extracting component coordinate information of each layer, obtaining fastener coordinates, and establishing a fastener name and coordinate associated data combination; and then applying a coordinate matching algorithm to establish a point, line, coordinate and fastener associated data combination; secondly, newly establishing a part model, establishing a structure tree according to fastener names, and copying points and lines to the corresponding structure tree; adjusting and moving the structure tree according to a processing state to generate a handover state model; thirdly, newly establishing a drawing, and projecting to generate a view; finally, backing up a view connected with parts, disconnecting the backup view to obtain readable point element two-dimensional coordinates, and sequentially numbering and annotating according to the two-dimensional coordinates to complete generation of the handover state drawing. The application can shorten an automatic drilling and riveting process preparation period, improve equipment operation efficiency, improve readability of a handover state, ensure accuracy of process information, and improve reliability of equipment application.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the field of numerical control design, and provides a method for automatically generating an automatic drilling and riveting interface state numerical model and drawing. BACKGROUND

[0002] The automatic drilling and riveting interface state file is an instructive file for information exchange between the pre-riveting, automatic drilling and riveting and supplementary riveting three stations, and it includes a three-dimensional numerical model and a two-dimensional drawing. The generation process of the automatic drilling and riveting interface state is mostly as follows: first, a three-dimensional numerical model is made, the three-dimensional numerical model is projected to generate a two-dimensional drawing, and information is added to the two-dimensional drawing part. It can be seen that the core work of the automatic drilling and riveting interface state file is the making of the three-dimensional numerical model. The automatic drilling and riveting interface state numerical model needs to include two parts of information: one is the spatial information of the position coordinates and the direction vector, and the other is the process information of the processing state. The repetitive work of manually processing the point and line elements to match the processing state information is large. In order to improve the readability of the interface state drawing, the color and shape of the point elements need to be manually processed, and the point elements are numbered and annotated. The repetitive operation of this kind of work is large, boring, time-consuming, and restricts the improvement of the operation efficiency of the automatic drilling and riveting. SUMMARY

[0003] In order to overcome the above technical difficulties of the prior art, the application provides a method for automatically generating an automatic drilling and riveting interface state numerical model and drawing. The application uses VB.NET and combines CATIA for secondary development, reads the original engineering component numerical model, matches the point coordinate of the skin with the fastener information of the engineering component, and then forms a part structure tree, automatically renders and fills color and changes shape after adding the processing state, then projects to generate a two-dimensional drawing, and finally automatically adds numbered annotations.

[0004] In order to achieve the above purpose, the technical scheme adopted by the application is as follows:

[0005] A method for automatically generating an automatic drilling and riveting interface state digital file, comprising the following steps:

[0006] Firstly, the Activate method of CATIA is used to activate the skin part CATPart, and the selection method is used to read all point elements of the combination A and all line elements of the combination B.

[0007] Secondly, the point-line minimum distance measurement is used to establish the combination C of the point elements, the line elements and the point coordinates, and the specific method is as follows:

[0008] ① The selection method is used to select a point element A1 in the combination A;

[0009] ② The selection method is used to select a line element B1 in the combination B;

[0010] ③ Use the GetMinimumDistance method in CATIA software to measure the minimum distance between A1 and B1;

[0011] ④ If the measured distance is greater than 0.1mm, avoid B1 in combination B and repeat steps ② and ③. If all line elements in combination B are more than 0.1mm away from A1, delete A1 in combination A.

[0012] ⑤ If the measured distance is less than 0.1mm, use the GetCoordinates method to extract the coordinates of A1, then add a data linking A1, B1 and coordinates in combination C, then delete A1 in combination A and delete B1 in combination B;

[0013] ⑥ Repeat steps ① to ⑤ until there are no elements in combination A, and then combination C is complete.

[0014] The third step is to activate the current component CATProduct using CATIA's Activate method, extract the component's coordinate values ​​using the GetComponents method, and then record the coordinate matrix values. The specific method is as follows:

[0015] Use the GetComponents method to read a 12-dimensional vector.

[0016] (U x U y U z V x V y V z W x W y W z T x T y T z )

[0017] Then, read the coordinate matrix values ​​bit by bit in the following format:

[0018]

[0019] The fourth step is to apply the orthogonal matrix hierarchical algorithm to solve for the coordinate matrix value M of the fastener and the skin at the same level. G And establish the fastener name and coordinate combination D, as follows:

[0020] ① First, set:

[0021]

[0022] ② Read the coordinates of the parent component using the method in step 3, and obtain the coordinate matrix value M. A ;

[0023] ③ Then set M G = M G x M A

[0024] ④ Determine whether the current component of the upper component and the skin component of the upper component is consistent, if not consistent, repeat step ② and step ③, until consistent;

[0025] ⑤ Finally solve the coordinate matrix value M G , add a data including the fastener name, fastener coordinates in combination D.

[0026] ⑥ Repeat steps ①-⑤ for all fasteners, establish combination D complete.

[0027] Step 5, using coordinate matching method matching combination C and combination D, supplement the fastener name information in combination C, the specific method as follows:

[0028] ① Select a certain object C1 in combination C;

[0029] ② Select a certain object D1 in combination D;

[0030] ③ Calculate the coordinate difference between C1 and D1;

[0031] ④ If the difference is greater than 0.1mm, avoid D1 in combination D, and repeat steps ②③, if all coordinate difference in combination D is offset 0.1mm, delete C1 in combination C;

[0032] ⑤ If the difference is less than 0.1mm, record the fastener name in C1;

[0033] ⑥ Repeat steps ①-⑤, until the fastener information in combination C is completed.

[0034] Step 6, using CATIA to establish the initial model CATPart object E.

[0035] Step 7, distinguish in combination C with fastener name, using CATIA's HybridBodies.add method to establish structure tree object F in object E.

[0036] Step 8, using CATIA's Selection.Copy method to copy the point elements and line elements in combination C to F.

[0037] Step 9, according to the handover state, move the point elements and line elements in object F to the corresponding structure tree position.

[0038] Step 10, set the point element color and line element color using the SetRealColor method of CATIA, set the point element shape using the SetSymbolType method of CATIA, and complete the processing of the digital-analog object E.

[0039] Step 11, use CATIA to establish an initial drawing CATDrawing object G, and then use the projection method to generate a DrawingSheet view H1.

[0040] Step 12, use the Selection.Copy method of CATIA to backup H2, and then use the VisProperties.SetShow(1) method to hide H1.

[0041] Step 13, use the Isolate method to disconnect H2 from the skin object, form a coordinate readable mode, and use the Search("CATDrwSearch.2DPoint&(Visibility=Visible),all") method of CATIA to extract all 2D point coordinate combinations G in H2.

[0042] Step 14, add numbering information in H2 according to the coordinate numbering label method (method), the specific method is as follows:

[0043] ① select a coordinate information G1 in combination G;

[0044] ② use the GetCoordinates method to read the coordinate information of G1;

[0045] ③ use the DrawingText method of CATIA to make a number K;

[0046] ④ delete G1 in combination G, add number 1, and repeat steps ② and ③ to continue making labels until the making is completed.

[0047] Step 15, finally use the delete method to delete all 2D point elements in H2, use the VisProperties.SetShow(0) method to display H1, and complete the processing of the drawing G.

[0048] The key technical points of the present application are as follows:

[0049] 1) In CATIA software, the point element and line element are matched using the minimum distance measurement method of point element and line element, and a data combination of point, line, and coordinate association is established;

[0050] 2) In CATIA, the component coordinate information of each layer is extracted, and then converted into a 4×4 orthogonal matrix to obtain the fastener coordinates, and a data combination of fastener name and coordinate association is established;

[0051] 3) Apply coordinate matching algorithms to establish data combinations that associate points, lines, coordinates, and fasteners;

[0052] 4) Create a new part model in CATIA, categorize it by fastener name to create a structure tree, and then copy the points and lines to the corresponding structure tree;

[0053] 5) Adjust the moving structure tree according to the processing status, and then modify the point and line colors and shapes in CATIA to complete the generation of the handover status CAD model;

[0054] 6) Create a new drawing in CATIA and project it to generate a view;

[0055] 7) Backup the view of the connected parts, disconnect the backup view to read the two-dimensional coordinates of the point elements;

[0056] 8) Number and annotate each element according to the two-dimensional coordinates to complete the generation of the handover status drawings.

[0057] The beneficial effects of this invention are as follows:

[0058] (1) The automatic generation method of automatic drilling and riveting handover status digital model and drawings greatly shortens the preparation cycle of automatic drilling and riveting process, effectively improves the work efficiency of process personnel, ensures programming quality, is easy to operate, improves the operation efficiency of automatic drilling and riveting, and has good engineering application value.

[0059] (2) Improve the generation rate of digital models and drawings for automatic drilling and riveting handover status, and improve equipment operating efficiency;

[0060] (3) Improve the readability of the handover status;

[0061] (4) Improve the efficiency of offline programming, ensure the accuracy of process information, avoid operational errors, save human resources, and improve the reliability of equipment application. Attached Figure Description

[0062] Figure 1 This is a flowchart of the process architecture of the present invention. Detailed Implementation

[0063] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings and technical solutions.

[0064] like Figure 1 The flowchart shown illustrates a method for automatically generating digital models and drawings of automatic drilling and riveting handover states, comprising the following implementation steps:

[0065] 1) Use CATIA's Activate method to activate the skinned part CATPart, and use the selection method to read and create a combination A of all point elements and a combination B of all line elements.

[0066] 2) Using the point line minimum distance measurement (Method A) to establish the point element, line element, the combination C of point coordinates, the specific method is as follows:

[0067] ① Use the selection method to select a certain point element A1 in combination A;

[0068] ② Use the selection method to select a certain line element B1 in combination B;

[0069] ③ Use the CATIA software GetMinimumDistance method to measure the minimum distance of A1 and B1;

[0070] ④ If the measured distance is greater than 0.1mm, avoid B1 in combination B, and repeat steps ②③, if all line elements in combination B are greater than 0.1mm from A1, delete A1 in combination A;

[0071] ⑤ If the measured distance is less than 0.1mm, use GetCoordinates method to extract the coordinates of A1, then add a data associated with A1, B1 and coordinates in combination C, then delete A1 in combination A and delete B1 in combination B;

[0072] ⑥ Repeat steps ①~⑤ until there is no element in combination A, and combination C is established.

[0073] 3) Using the Activate method of CATIA to activate the current component CATProduct, using the GetComponents method to extract the component coordinate value, and then recording the coordinate matrix value, the specific method is as follows:

[0074] Using GetComponents method to read 12 dimensional vector as

[0075] (U x , U y , U z , V x , V y , V z , W x , W y , W z , T x , T y , T z )

[0076] Then read the coordinate matrix value in the following format:

[0077]

[0078] 4) Apply the orthogonal matrix layer recursive algorithm (Method B) to solve the coordinate matrix value M of the fastener and the skinG And establish fastener name, coordinate combination D, the specific method is as follows:

[0079] ①First set

[0080]

[0081] ②According to the method of step 3, read the coordinates of the upper assembly, and obtain the coordinate matrix value M A ;

[0082] ③Then set M G =M G ×M A

[0083] ④Judge whether the upper assembly of the current assembly is consistent with the upper assembly of the skin assembly, if not, repeat steps ② and ③ until consistent;

[0084] ⑤Finally solve the coordinate matrix value M G , add a data including fastener name, fastener coordinate in combination D.

[0085] ⑥Repeat steps ①-⑤ for all fasteners to complete combination D.

[0086] 5) Apply coordinate matching (method C) to match combination C and combination D, supplement the fastener name information in combination C, the specific method is as follows:

[0087] ①Select an object C1 in combination C;

[0088] ②Select an object D1 in combination D;

[0089] ③Calculate the coordinate difference value of C1 and D1;

[0090] ④If the difference value is greater than 0.1mm, avoid D1 in combination D, and repeat steps ②③, if all coordinate difference values in combination D are offset by 0.1mm, delete C1 in combination C;

[0091] ⑤If the difference value is less than 0.1mm, record the fastener name in combination C1;

[0092] ⑥Repeat steps ①-⑤ until the fastener information in combination C is supplemented.

[0093] 6) Use CATIA to establish initial model CATPart object E.

[0094] 7) Use the HybridBodies.add method of CATIA to establish structure tree object F in object E, which is distinguished by fastener name in combination C

[0095] 8) Use CATIA's Selection.Copy method to copy point elements and line elements in assembly C to F.

[0096] 9) Move point elements and line elements in object F to corresponding structure tree location according to handover state.

[0097] 10) Use CATIA's SetRealColor method to set point element color and line element color, and use CATIA's SetSymbolType method to set point element shape. The processing of handover digital object E is completed.

[0098] 11) Use CATIA to create initial drawing CATDrawing object G, and then use projection method to generate DrawingSheet view H1.

[0099] 12) Use CATIA's Selection.Copy method to backup H2, and then use VisProperties.SetShow(1) method to hide H1.

[0100] 13) Use Isolate method to disconnect H2 from the skin object, form coordinate readable mode, and use CATIA's Search("CATDrwSearch.2DPoint&(Visibility=Visible),all") method to extract all 2D point coordinate combinations G in H2.

[0101] 14) Number label method according to coordinate (method), add numbering information in H2, the specific method is as follows:

[0102] ① Select a coordinate information G1 in assembly G;

[0103] ② Use GetCoordinates method to read the coordinate information of G1;

[0104] ③ Use CATIA's DrawingText method to make number K;

[0105] ④ Delete G1 in assembly G, add number 1, and repeat steps ②③ to continue making labels until the making is completed.

[0106] 15) Finally, use delete method to delete all 2D point elements in H2, use VisProperties.SetShow(0) method to display H1, and the processing of drawing G is completed.

[0107] The above embodiments only express the implementation ways of the present application, and cannot be understood as the limitation to the scope of the present application patent. It should be pointed out that, for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. A method for automatically generating an automated drilling and riveting interface status digital file, characterized by, The method comprises the following steps: First, activate the skin part CATPart in CATIA, read the combination A of all point elements and the combination B of all line elements; Second, use the point-line minimum distance measurement to establish the combination C of point elements, line elements and point coordinates, the specific method is as follows: ①Use the selection method to select a point element A1 in the combination A; ②Use the selection method to select a line element B1 in the combination B; ③Measure the minimum distance between A1 and B1; ④If the measured distance is greater than 0.1mm, avoid B1 in the combination B, and repeat steps ② and ③, if all line elements in the combination B are greater than 0.1mm away from A1, delete A1 in the combination A; ⑤If the measured distance is less than 0.1mm, extract the coordinates of A1, then add a data associated with A1, B1 and the coordinates in the combination C, delete A1 in the combination A and B1 in the combination B; ⑥Repeat steps ①-⑤ until there is no element in the combination A, and the combination C is established; Third, activate the current assembly CATProduct in CATIA, extract the assembly coordinate value, and then record the coordinate matrix value; Fourth step, apply the orthogonal matrix layer recursive algorithm, solve the fastener and skin coordinate matrix value M G And establish the fastener name, coordinate combination D, the specific method is as follows: ①Firstly, set:

2. Read the coordinate of the upper assembly according to the method of step 3, and get the coordinate matrix value M A ; ③ Then set M G = M G x M A ④Judge whether the upper assembly of the current assembly is consistent with the upper assembly of the skin assembly, if not, repeat steps ② and ③ until they are consistent; • Final solution of the matrix of coordinates M G A data line including the name of the fastener, the coordinates of the fastener is added in the combination D; ⑥Repeat steps ①-⑤ for all fasteners to complete the establishment of combination D; Fifth, match combination C and combination D by using the coordinate matching method to supplement the fastener name information in combination C, the specific method is as follows: ①Select an object C1 in combination C; ②Select an object D1 in combination D; ③Calculate the coordinate difference value of C1 and D1; ④If the difference is greater than 0.1mm, avoid D1 in combination D, and repeat steps ② and ③, if all coordinate difference values in combination D are offset by 0.1mm, delete C1 in combination C; ⑤If the difference is less than 0.1mm, record the fastener name in C1; ⑥Repeat steps ①-⑤ until the fastener information in combination C is supplemented; Sixth, use CATIA to establish the initial model CATPart object E; Seventh, distinguish the fastener name in combination C, and establish the structure tree object F in object E; Eighth, copy the point elements and line elements in combination C to F; Ninth, move the point elements and line elements in object F to the corresponding structure tree position according to the handover state; Tenth, set the point element color and line element color, set the point element shape, and complete the processing of the handover model object E; Eleventh, use CATIA to establish the initial drawing object G, and then use the projection method to generate view H1; Twelfth, use CATIA to back up H2, and then use the method to hide H1; Thirteenth, use the Isolate method to disconnect H2 from the skin object to form a coordinate readable mode, and use CATIA to extract all two-dimensional point coordinate combinations G in H2; Fourteenth, add numbering information in H2 according to the coordinate numbering label method, the specific method is as follows: ①Select a coordinate information G1 in combination G; ② Use GetCoordinates method to read the coordinate information of G1; ③ Use CATIA's DrawingText method to make the number K; ④ Delete G1 in the combination G, add 1 to the number, and repeat steps ② and ③ to continue making labels until the making is completed; Fifteenth step, delete all two-dimensional point elements in H2, display H1, and complete the processing of the handover drawing G.

Citation Information

Patent Citations

  • Expression device and method for fastener model in fastener aided design system

    CN102236731A

  • Multifunctional drilling and riveting actuator and working method thereof

    CN104708322A