Method and device for rapid reverse assembly structure tree of international standard model based on CATIA

By using root traversal and statistical information processing methods in CATIA, the problem of information loss and misidentification in the reverse creation of aircraft assembly models is solved, a fast and accurate international standard model assembly structure tree is achieved, and efficiency and accuracy are improved.

CN118378456BActive Publication Date: 2024-08-27ZHUHAI ANBO COMPOSITE MATERIALS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822046.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-27
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing technology cannot quickly and accurately create the reverse international standard model of the aircraft assembly model, resulting in the loss of secondary assembly information and misidentification of empty assemblies, affecting the accuracy of the product structure tree.

Method used

The fast reverse international standard model assembly structure tree method based on CATIA is used to traverse product files root-first, count component information and create product structure trees, eliminate repeated assembly of the same parts and detect empty assemblies to ensure information accuracy.

Benefits of technology

It achieves fast and accurate creation of assemblies, avoids repeated assembly of parts and misidentification of empty assemblies, and improves the accuracy and efficiency of the reverse product structure tree.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378456B
    Figure CN118378456B
Patent Text Reader

Abstract

The present application provides a method and device for fast reverse international standard model assembly structure tree based on CATIA, belonging to the field of aircraft modeling and design technology. The method comprises: traversing the product file in CATIA according to the hierarchical root; if the number of product sub-level Products of the current document is not less than 0, recording the component number and the number of levels plus 1; if the component number exists in the dictionary, recording the number of components plus 1; otherwise, storing the component number, the number of rows plus 1, storing the sequence number, recording the number of levels and the component number; if the number of product sub-level Products is equal to 0, judging whether there is a geometric body in the current document; if there is a geometric body in the current document, recording the type as a part; otherwise, recording the type as a component; if it is greater than 0, recording the type of the component as a component, judging whether the number of product sub-level Products of the next level document is greater than 0; creating a product structure tree in CATIA. The present invention can quickly and accurately create assemblies and eliminate empty assemblies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to aircraft modeling and design technology, and in particular to a method and device for quickly reversing an international standard model assembly structure tree based on CATIA. Background Art

[0002] With the development of computer-aided design software, different software systems have their own data formats, which increases the cost of data exchange and reduces product development efficiency. In response to this, the International Organization for Standardization has developed a standard for describing product data model exchange. Taking the STP data type as an example, the STP file is a three-dimensional image data with an exchange structure based on the text encoding of the ASCII format that complies with the STEP application protocol ISO10303-21 standard. Common industrial design software such as CATIA, UG, PRO-E, FreeCAD, Solidworks, etc. can exchange data through STP files. STP files can not only be used for data exchange between different software, but also for data conversion from high-version files to low-version files of the same software.

[0003] However, when the original software file is converted into an STP format file, the secondary product file (Product) will be converted into a component (Componet) that is not saved to disk. The entire digital model assembly file cannot be converted completely. Only the first-level assembly (Product) and part body (Part) files will be saved. Figure 1 For the assembly structure shown, after the built-in file format is converted into the STP file format and then converted into another built-in file format (such as converting the UG prt file into the STP file, and then converting the STP file into the CATIA CAT file), the second-level and third-level assemblies (Product) will not be saved. Only the first-level assembly (Product) and part body (Part) files will be saved.

[0004] Nowadays, the number of parts in a single aircraft assembly model is tens of thousands, and different secondary assemblies are needed to divide the entire model to improve the efficiency of model building and the speed of opening the model. After converting files of different formats, the secondary assembly relationship cannot be obtained, which will greatly affect the division of labor and work efficiency.

[0005] And because of the large number of aircraft components and complex assembly relationships, how to quickly and accurately reverse establish its product structure tree is plagued by many problems. For example, aircraft parts contain many identical standard parts. The positional relationships of these standard parts are generally saved in their parent components. Due to the loss of secondary components when converting formats, the traditional method of reverse structure tree will cause these standard parts to be loaded repeatedly in the same position. At the same time, there may be some empty assembly components in the aircraft components that have not yet been loaded with components. These empty assembly components may be identified as parts. All of these will affect the reverse creation of an accurate product structure tree. Summary of the invention

[0006] The present application provides a method and device for quickly reversing the international standard model assembly structure tree based on CATIA, so as to solve the technical problems that the prior art cannot quickly and accurately create assemblies and eliminate duplicate parts of empty assemblies that affect the reverse accuracy.

[0007] On the one hand, the present application provides a method for quickly reversing an international standard model assembly structure tree based on CATIA, comprising:

[0008] In CATIA, traverse the product files according to the hierarchical roots;

[0009] Read the number of products in the current document and determine whether it is greater than 0. If the number of products in the current document is greater than 0 or equal to 0, record the component number and level number of the current document plus 1.

[0010] Determine whether the component number exists in the dictionary,

[0011] If the component number exists in the dictionary, the number of the component plus 1 is recorded; if the component number does not exist in the dictionary, the component number is stored in the dictionary, the number of rows is increased by 1, and the number of rows is reduced by 1 in the corresponding row of the memory as the sequence number, and the number of levels and component number are recorded;

[0012] If the number of sub-level Products in the current document is 0, determine whether there is a geometric body in the current document;

[0013] If the current document has a geometric body, the record type is a part; if the current document does not have a geometric body, the record type is a component;

[0014] If the number of sub-level Products of the current document is greater than 0, the type of the component is recorded as a component, and it is determined whether the number of sub-level Products of the next level document of the current document is greater than 0.

[0015] According to the serial number and level in the memory, the component number, type and instance name, serial number, level and quantity of each component are read from small to large, and a product structure tree is created in CATIA.

[0016] On the other hand, the present invention also provides a device for quickly reversing the international standard model assembly structure tree based on CATIA, comprising:

[0017] The traversal unit is used to traverse the product files in CATIA according to the hierarchical precedence;

[0018] The first judgment unit is used to read the number of product sub-level products in the current document and judge whether it is greater than 0;

[0019] The first recording unit is used to record the component number and the level number of the current document plus 1 if the number of sub-level Products of the current document is greater than 0 or equal to 0;

[0020] The second judging unit is used to judge whether the component number exists in the dictionary.

[0021] A second recording unit is used to record the number of the component plus 1 if the component number exists in the dictionary; if the component number does not exist in the dictionary, store the component number in the dictionary, add 1 to the number of rows, and subtract 1 from the number of rows in the corresponding row of the memory as a sequence number, and record the number of levels and the component number;

[0022] The third judgment unit is used to judge whether there is a geometric body in the current document when the number of product sub-level Products in the current document is equal to 0;

[0023] The third recording unit is used to record the type of a part if the current document has a geometric body; if the current document does not have a geometric body, the type of the record is a component;

[0024] A polling unit, for recording the type of the component as a component if the number of the product sub-level Products of the current document is greater than 0, and determining whether the number of the product sub-level Products of the next level document is greater than 0;

[0025] The creation unit is used to read the component number, type and instance name, serial number, level and quantity of each component from small to large according to the serial number and level in the memory, and create a product structure tree in CATIA.

[0026] The method and device for the fast reverse assembly structure tree of the international standard model based on CATIA provided by the present invention eliminate the problem of inaccurate repeated assembly of the same parts and components by statistical information, because the position information of the same parts and components is stored in its parent assembly, and then because the secondary assembly cannot be saved during the file type conversion process, this part of the position information will be lost. If the same parts and components are not counted, it will assemble the same parts and components at the same position. This situation can be avoided by statistical information, and the number can be accurately counted; and the present invention can also detect empty assemblies. If an empty assembly without a child is found during the data conversion process, it is judged whether it is a part by judging whether there is a geometric body, thereby eliminating the influence of the empty assembly on the accuracy of information. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0028] Figure 1 It is the assembly structure tree;

[0029] Figure 2 A schematic diagram of a pre-root traversal provided in an embodiment of the present invention;

[0030] Figure 3 The product structure diagram of M3521H0000 after the STP file is opened by CATIA provided in the embodiment of the present invention;

[0031] Figure 4 This is a product structure diagram of M3521H0000 manually provided in an embodiment of the present invention;

[0032] Figure 5 It is a product structure tree generated by the method for quickly reversing the international standard model assembly structure tree based on CATIA provided by an embodiment of the present invention;

[0033] Figure 6 A flow chart of a method for quickly reversing an international standard model assembly structure tree based on CATIA provided in an embodiment of the present invention;

[0034] Figure 7 A flow chart of a method for quickly reversing an international standard model assembly structure tree based on CATIA provided in an embodiment of the present invention;

[0035] Figure 8 A structural diagram of a device for quickly reversing an international standard model assembly structure tree based on CATIA provided in an embodiment of the present invention;

[0036] Fig. 9 It is a structural diagram of a creation unit provided in an embodiment of the present invention.

[0037] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0039] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0040] In an embodiment of the present invention, it is recommended that a universal file format, such as an STP file, be selected as the file format of the product document. The STP file can be used not only for data exchange between different software, but also for data conversion from a high-version file to a low-version file of the same software.

[0041] Root-first traversal means visiting the root node first, then the first-level node, ..., N minus 1 level node, and N level node in sequence. N is greater than 1.

[0042] Parts refer to the smallest unit that makes up a product. A functional unit formed by assembling several parts together is called a component; a complete system formed by several components is called a product. A product can also be composed of a group of sub-products to form a large product.

[0043] A dictionary is a mutable two-dimensional array space used to temporarily store data.

[0044] product is an assembly / product, products is a sub-collection of an assembly / product, and products are composed of secondary products.

[0045] Figure 2 FIG. 1 is a schematic diagram of a method for rapid reverse international standard model assembly structure tree based on CATIA according to an embodiment of the present invention. The order of the Arabic numerals in the figure is the order of the traversal according to the embodiment of the present invention. Figure 7As shown, the method for quickly reversing the international standard model assembly structure tree based on CATIA in an embodiment of the present invention includes:

[0046] In CATIA, traverse the product files according to the hierarchical roots;

[0047] like Figure 3 As shown, in CATIA, open the product file of M3521H0000 (the format of the product file is STP), and create a new EXCEL table to store data. Initialize the number of rows to 1 and the level to 0, and open the CATIA and EXCEL port.

[0048] like Figure 2 As shown, first run the script language to scan the product file in order from top to bottom according to the hierarchy using the pre-root traversal method, extract the type, component number, instance name, serial number in the structure tree, level in the structure tree and the number of components of each component (Product, Part, Component), and determine whether each component is a component file (Product) or a part file (Part) in the original file by judging whether there is a geometric body.

[0049] Read the number of products in the current document and determine whether it is greater than 0. If the number of products in the current document is greater than 0 or equal to 0, record the component number and level number of the current document plus 1.

[0050] Specifically, first determine whether the number of Products in the root document is greater than 0; if the number of Products in the root document is equal to 0, then record the component number and add 1 to the level;

[0051] Determine whether the component number exists in the dictionary;

[0052] If the component number exists in the dictionary, the number of components is recorded plus 1; if the component number does not exist in the dictionary, the current component number is stored in the dictionary, the number of rows is increased by 1, and the number of rows is reduced by 1 in the corresponding row in the memory (the memory of the present invention is an EXCEL table) as the sequence number, and the number of levels and component number are recorded;

[0053] If the number of sub-level Products in the current document is 0, determine whether there is a geometric body in the current document;

[0054] If the current document has a geometric body, the record type is a part; if the current document does not have a geometric body, the record type is a component.

[0055] The extracted and recorded EXCEL information is shown in Table 1:

[0056] Table 1:

[0057]

[0058] like Figure 3 As shown, the root component is M3521H0000. The number of rows in the initial arrangement is 1 and the level is 0;

[0059] Step 1: Determine if products>0 of M3521H0000, level +1, and record the component number of M3521H0000.

[0060] Step 2: Determine whether the M3521H0000 component exists in the dictionary;

[0061] Step 3: Now the M3521H0000 component does not exist in the dictionary, increase the number of rows by 1, and then cache the M3521H0000 component and row number 2 as a corresponding array in the dictionary, and then fill it in the Excel table according to the cached row number. Now the cached row is the second row, and then fill it in from the second row in the EXCEL table. The first column is the cached row number minus 1 as the serial number, the second column is filled with the current level as 1, the third column is the cached component number, the fourth column is filled with the component, and the fifth column is directly filled with the number as 1.

[0062] Finally, we get the following results as shown in Table 2:

[0063] Table 2:

[0064]

[0065] If the number of sub-level Products of the current document is greater than 0, the type of the component is recorded as a component, and it is determined whether the number of sub-level Products of the next level document of the current document is greater than 0.

[0066] According to the serial number and level in the memory, the component number, type and instance name, serial number, level and quantity of each component are read from small to large, and a product structure tree is created in CATIA.

[0067] like Figure 8 As shown, specifically, the creation of a product structure tree in CATIA includes:

[0068] Create a first-level root document based on all parameters of sequence number 1 and increase the sequence number by 1;

[0069] Whether the serial number is greater than the number of components;

[0070] If the sequence number is greater than the number of components, then end;

[0071] If the serial number is less than or equal to the number of components, the component number, name, level, type, and quantity of the current serial number are recorded, and the serial number is reduced by 1;

[0072] Determine whether the level of the current sequence number is equal to the level of the previous record minus 1;

[0073] If the level of the current serial number is equal to the level of the previous record minus 1, according to the component number in the current serial number parameter, activate the corresponding component document, create the previously recorded component under the component document, add 1 to the previously recorded serial number, and determine whether the serial number is greater than the number of components;

[0074] If the level of the current sequence number is not equal to the level of the previous record minus 1, continue waiting until the level of the current sequence number is equal to the level of the previous record minus 1.

[0075] like Figure 5 As shown, Figure 5 It is a product structure tree generated by the method for quickly reversing the international standard model assembly structure tree based on CATIA provided by an embodiment of the present invention.

[0076] like Figure 4 As shown, Figure 4 This is a product structure diagram of M3521H0000 made manually according to an embodiment of the present invention;

[0077] The method for quickly reversing the international standard model assembly structure tree based on CATIA provided by the embodiment of the present invention cleverly implements data storage structure and data call, quickly realizes the reconstruction of the STP general model assembly structure tree, and has high practicality.

[0078] The method and device for the fast reverse international standard model assembly structure tree based on CATIA provided by the embodiment of the present invention eliminates the problem of inaccurate repeated assembly of the same parts and components by statistical information, because the position information of the same parts and components is stored in its parent assembly, and then because the secondary assembly cannot be saved during the file type conversion process, this part of the position information will be lost. If the same parts and components are not counted, it will assemble the same parts and components at the same position. This situation can be avoided by statistical information, and the number can be accurately counted; and the present invention can also detect empty assemblies. If an empty assembly without a child is found during the data conversion process, it is determined whether it is a part by judging whether there is a geometric body, thereby eliminating the influence of the empty assembly on the accuracy of information.

[0079] Figure 8 The structural diagram of the device for quickly reversing the international standard model assembly structure tree based on CATIA provided by the embodiment of the present invention is as follows: Figure 8As shown, an embodiment of the present invention provides a device for quickly reversing an international standard model assembly structure tree based on CATIA, comprising:

[0080] The traversal unit is used to traverse the product files in CATIA according to the hierarchical precedence;

[0081] The first judgment unit is used to read the number of product sub-level products in the current document and judge whether it is greater than 0;

[0082] The first recording unit is used to record the component number and the level number of the current document plus 1 if the number of sub-level Products of the current document is greater than 0 or equal to 0;

[0083] The second judging unit is used to judge whether the component number exists in the dictionary.

[0084] A second recording unit is used to record the number of the component plus 1 if the component number exists in the dictionary; if the component number does not exist in the dictionary, store the component number in the dictionary, add 1 to the number of rows, and subtract 1 from the number of rows in the corresponding row of the memory as a sequence number, and record the number of levels and the component number;

[0085] The third judgment unit is used to judge whether there is a geometric body in the current document when the number of product sub-level Products in the current document is equal to 0;

[0086] The third recording unit is used to record the type of a part if the current document has a geometric body; if the current document does not have a geometric body, the type of the record is a component;

[0087] A polling unit, for recording the type of the component as a component if the number of the product sub-level Products of the current document is greater than 0, and determining whether the number of the product sub-level Products of the next level document is greater than 0;

[0088] The creation unit is used to read the component number, type and instance name, serial number, level and quantity of each component from small to large according to the serial number and level in the memory, and create a product structure tree in CATIA.

[0089] like Fig. 9 As shown, the creation unit provided in the embodiment of the present invention includes:

[0090] A root creation unit, used to read the serial numbers in sequence, create a first-level root document according to all parameters of the serial number 1, and increase the serial number by 1;

[0091] A fourth judgment unit, used to judge whether the current serial number is greater than the number of components;

[0092] The fourth recording unit is used to record the component number, name, level, type, and quantity of the current serial number if the current serial number is less than or equal to the number of components, and to reduce the serial number by 1;

[0093] A fifth judgment unit, used to judge whether the level of the current sequence number is equal to the level previously recorded minus 1;

[0094] The activation unit is used to activate the corresponding component document according to the component number in the current serial number if the level of the current serial number is equal to the level recorded previously minus 1, create the previously recorded component under the component document, add 1 to the previously recorded serial number, and determine whether the serial number is greater than the number of components; if the level of the current serial number is not equal to the level recorded previously minus 1, continue to wait until the level of the current serial number is equal to the level recorded previously minus 1.

[0095] The method and device for the fast reverse assembly structure tree of the international standard model based on CATIA provided by the present invention eliminate the problem of inaccurate repeated assembly of the same parts and components by statistical information, because the position information of the same parts and components is stored in its parent assembly, and then because the secondary assembly cannot be saved during the file type conversion process, this part of the position information will be lost. If the same parts and components are not counted, it will assemble the same parts and components at the same position. This situation can be avoided by statistical information, and the number can be accurately counted; and the present invention can also detect empty assemblies. If an empty assembly without a child is found during the data conversion process, it is judged whether it is a part by judging whether there is a geometric body, thereby eliminating the influence of the empty assembly on the accuracy of information.

[0096] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0097] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for quickly reversing the international standard model assembly structure tree based on CATIA, It is characterized in that include: In CATIA, traverse the product files according to the hierarchical roots; Read the number of products in the current document and determine whether it is greater than 0. If the number of products in the current document is greater than 0 or equal to 0, record the component number and level number of the current document plus 1. Determine whether the component number exists in the dictionary, If the component number exists in the dictionary, the number of the component plus 1 is recorded; if the component number does not exist in the dictionary, the component number is stored in the dictionary, the number of rows is increased by 1, and the number of rows is reduced by 1 in the corresponding row of the memory as the sequence number, and the number of levels and component number are recorded; If the number of sub-level Products in the current document is 0, determine whether there is a geometric body in the current document; If the current document has a geometric body, the record type is a part; if the current document does not have a geometric body, the record type is a component; If the number of sub-level Products in the current document is greater than 0, the type of the component is recorded as a component, and it is determined whether the number of sub-level Products in the next-level document is greater than 0; Read the component number, type and instance name, serial number, level and quantity of each component from small to large according to the serial number and level in the memory, and create a product structure tree in CATIA; The creation of a product structure tree in CATIA includes: Read the serial number in sequence, create the first-level root document according to all the parameters of serial number 1, and increase the serial number by 1; Determine whether the current serial number is greater than the number of components; If the current serial number is less than or equal to the number of components, the component number, name, level, type, and quantity of the current serial number are recorded, and the serial number is reduced by 1; Determine whether the level of the current sequence number is equal to the level of the previous record minus 1; If the level of the current serial number is equal to the level of the previous record minus 1, according to the component number in the current serial number, activate the corresponding component document, create the previously recorded component under the component document, add 1 to the previously recorded serial number, and determine whether the serial number is greater than the number of components; If the level of the current sequence number is not equal to the level of the previous record minus 1, continue waiting until the level of the current sequence number is equal to the level of the previous record minus 1.

2. A device for quickly reversing the international standard model assembly structure tree based on CATIA, It is characterized in that include: The traversal unit is used to traverse the product files in CATIA according to the hierarchical precedence; The first judgment unit is used to read the number of product sub-level products in the current document and judge whether it is greater than 0; The first recording unit is used to record the component number and the level number of the current document plus 1 if the number of sub-level Products of the current document is greater than 0 or equal to 0; The second judging unit is used to judge whether the component number exists in the dictionary. A second recording unit is used to record the number of the component plus 1 if the component number exists in the dictionary; if the component number does not exist in the dictionary, store the component number in the dictionary, add 1 to the number of rows, and subtract 1 from the number of rows in the corresponding row of the memory as a sequence number, and record the number of levels and the component number; The third judgment unit is used to judge whether there is a geometric body in the current document when the number of product sub-level Products in the current document is equal to 0; The third recording unit is used to record the type of a part if the current document has a geometric body; if the current document does not have a geometric body, the type of the record is a component; A polling unit, for recording the type of the component as a component if the number of the product sub-level Products of the current document is greater than 0, and determining whether the number of the product sub-level Products of the next level document is greater than 0; A creation unit is used to read the component number, type and instance name, serial number, level and quantity of each component from small to large according to the serial number and level in the memory, and create a product structure tree in CATIA; The creation unit comprises: The root creation unit is used to read the serial number in sequence, create the first-level root document according to all parameters of the serial number 1, and increase the serial number by 1; A fourth judgment unit, used to judge whether the current sequence number is greater than the number of components; The fourth recording unit is used to record the component number, name, level, type, and quantity of the current serial number if the current serial number is less than or equal to the number of components, and to reduce the serial number by 1; A fifth judgment unit, used to judge whether the level of the current sequence number is equal to the level previously recorded minus 1; The activation unit is used to activate the corresponding component document according to the component number in the current serial number if the level of the current serial number is equal to the level recorded previously minus 1, create the previously recorded component under the component document, add 1 to the previously recorded serial number, and determine whether the serial number is greater than the number of components; if the level of the current serial number is not equal to the level recorded previously minus 1, continue to wait until the level of the current serial number is equal to the level recorded previously minus 1.