Assembly tree construction, access methods, apparatuses, devices, and computer storage media

By assigning ID information to assembly parts and constructing a linear list, the problem of slow operation and lag in drafting software with large data volume models is solved, achieving fast response and low hardware requirements.

CN114969055BActive Publication Date: 2026-01-16PERA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210759403.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-01-16
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing drafting software is slow to respond when processing large amounts of assembly part models, causing software lag, and has high hardware requirements.

Method used

Each assembly part is assigned a unique ID, and its hierarchical relationship in the assembly tree is recorded through a linear list. This constructs the assembly tree and linear list, reducing the amount of computation required for lookups and operations.

Benefits of technology

It improves the response speed of assembling parts in large data models, reduces hardware requirements, and avoids software lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114969055B_ABST
    Figure CN114969055B_ABST
Patent Text Reader

Abstract

The application relates to an assembly tree construction method, an assembly tree access method, an assembly tree construction device, an assembly tree access device, an assembly tree construction equipment, an assembly tree access equipment and a computer storage medium. The method comprises the following steps: assigning ID information to each assembly part; constructing an assembly tree with each assembly part as a node, and recording the ID information of the assembly part corresponding to each node in the assembly tree; and constructing an assembly part linear table based on the ID information of each assembly part, and recording the ID information of each assembly part, and the hierarchical relationship between the nodes corresponding to each assembly part in the assembly tree in the assembly part linear table. According to the embodiment of the application, each assembly part is assigned ID information, and the tree structure is displayed in the form of a linear table. When it is necessary to find or operate the assembly part, the entire structure tree does not need to be traversed, the software calculation amount is small, the response speed is also very fast for a large-amount-of-data structure model, and no lag occurs.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the computer technical field, and particularly relates to an assembly tree construction method, an assembly tree access method, an assembly tree construction device, an assembly tree access device, an equipment and a computer storage medium. BACKGROUND

[0002] With the rapid development of computer software technology, many engineering drawings can be completed by using computer software.

[0003] In the existing simulation software, assembly parts in a structure model are displayed in the form of an assembly tree. After the structure model is imported into the assembly model, each assembly part is represented by a tree structure, and the relationship between each assembly part is represented by the relationship between each node and its child node, parent node and sibling node. However, for a tree structure with a large amount of data, the three-dimensional modeling software reacts slowly when operating the tree nodes, which leads to software lag. When searching for the assembly part corresponding to the tree node, the entire tree structure needs to be traversed, which is a huge workload and also leads to slow software reaction and lag.

[0004] Therefore, the existing drawing software reacts slowly when operating the assembly parts of a model with a large amount of data, which leads to software lag and high demand for hardware. SUMMARY

[0005] To solve or partially solve the problems in the related art, the present application provides an assembly tree construction method, an assembly tree access method, an assembly tree construction device, an assembly tree access device, an equipment and a computer storage medium, which can effectively solve the problems of slow reaction and software lag when operating the assembly parts of a model with a large amount of data, and reduce the demand of software for hardware.

[0006] The first aspect of the present application provides an assembly tree construction method, comprising:

[0007] receiving an assembly model file, traversing assembly parts in the assembly model file, and assigning ID information to each assembly part;

[0008] taking each assembly part as a node, constructing an assembly tree according to the assembly relationship between each assembly part, wherein the ID information of the assembly part corresponding to each node in the assembly tree is recorded;

[0009] constructing an assembly part linear table based on the ID information of each assembly part, wherein the ID information of each assembly part and the hierarchical relationship between the nodes corresponding to each assembly part in the assembly tree are recorded in the assembly part linear table.

[0010] As a possible implementation manner of the present application, in the implementation manner, the traversing of the assembly parts in the assembly model file and the assignment of ID information to each assembly part comprises:

[0011] Traverse each assembly part in the assembly model according to the assembly sequence of each assembly part in the assembly model, and assign ID information to each assembly part according to the assembly sequence.

[0012] As a possible implementation of the present application, in this implementation, after the assembly part linear table is constructed, further comprising:

[0013] When receiving an assembly part update operation, update the nodes in the assembly tree based on the update operation, and update the assembly parts and ID information in the assembly part linear table.

[0014] As a possible implementation of the present application, in this implementation, when the update operation of the assembly part is an assembly part addition operation, the updating of the nodes in the assembly tree and the updating of the assembly parts and ID information in the assembly part linear table comprise:

[0015] Based on the assembly part addition operation, assign ID information to the newly added assembly part, add the tree node corresponding to the newly added assembly part in the assembly tree, and record the ID information of the newly added assembly part;

[0016] In the assembly part linear table, add the ID information of the newly added assembly part, and record the hierarchical relationship between the tree node corresponding to the newly added assembly part in the assembly tree and other tree nodes.

[0017] As a possible implementation of the present application, in this implementation, when the update operation of the assembly part is an assembly part deletion operation, the updating of the nodes in the assembly tree and the updating of the assembly parts and ID information in the assembly part linear table comprise:

[0018] Based on the assembly part deletion operation, delete the tree node corresponding to the deleted assembly part in the assembly tree, and delete the ID information of the deleted assembly part and the hierarchical relationship between the tree node corresponding to the deleted assembly part and other tree nodes in the assembly part linear table.

[0019] The second aspect of the present application provides an assembly tree access method, which comprises:

[0020] Receive an assembly part access request, wherein the assembly part access request includes ID information of an accessed assembly part;

[0021] Based on the ID information of the accessed assembly part, find the corresponding assembly part in the assembly tree, and highlight the corresponding assembly part in the graphical display interface.

[0022] The third aspect of the present application provides an assembly tree construction device, comprising:

[0023] a file receiving module, configured to receive an assembly model file, and traverse assembly parts in the assembly model file to assign ID information to each assembly part;

[0024] an assembly tree construction module, configured to take each assembly part as a node, and construct an assembly tree according to assembly relationships between the assembly parts, wherein the assembly tree records ID information of the assembly part corresponding to each node;

[0025] a linear table construction module, configured to construct an assembly part linear table based on the ID information of each assembly part, wherein the assembly part linear table records ID information of each assembly part and a hierarchical relationship between nodes corresponding to each assembly part in the assembly tree.

[0026] The fourth aspect of the present application provides an assembly tree access device, comprising:

[0027] a request receiving module, configured to receive an assembly part access request, wherein the assembly part access request includes ID information of an accessed assembly part;

[0028] an access module, configured to find a corresponding assembly part in the assembly tree based on the ID information of the accessed assembly part, and highlight the corresponding assembly part on a graphical display interface.

[0029] The fifth aspect of the present application provides an electronic device, comprising:

[0030] a processor; and

[0031] a memory having executable code stored thereon, wherein the executable code, when executed by the processor, causes the processor to perform the method described above.

[0032] The sixth aspect of the present application provides a computer readable storage medium having executable code stored thereon, wherein the executable code, when executed by a processor of an electronic device, causes the processor to perform the method described above.

[0033] The embodiments of the present application assign ID information to each assembly part, and display the tree structure in the form of a linear table. When an assembly part needs to be found or operated, the entire structure tree does not need to be traversed, the software calculation amount is small, the response speed is also fast for a large amount of data structure model, and there is no lag. When an assembly part in the structure model needs to be added or deleted, the corresponding ID information of the assembly part can be directly added or deleted in the linear table, and the corresponding tree node in the assembly tree is added or deleted, which makes the update of the assembly part more convenient.

[0034] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application, as claimed. BRIEF DESCRIPTION OF DRAWINGS

[0035] The above and other objects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which like reference characters refer to like elements throughout the figures, and in which:

[0036] Figure 1 is a flowchart of an assembly tree construction method according to an embodiment of the present application;

[0037] Figure 2 is a schematic diagram of an assembly tree structure according to an embodiment of the present application;

[0038] Figure 3 is a schematic diagram of a tree structure according to an embodiment of the present application;

[0039] Figure 4 is a flowchart of an assembly part addition method according to an embodiment of the present application;

[0040] Figure 5 is a flowchart of an assembly tree access method according to an embodiment of the present application;

[0041] Figure 6 is a schematic diagram of an assembly tree construction apparatus according to an embodiment of the present application;

[0042] Figure 7 is a schematic diagram of an assembly tree access apparatus according to an embodiment of the present application;

[0043] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present application.

[0044] The above described and other features, advantages and aspects of the present disclosure will become more apparent as various embodiments of the present disclosure are described in conjunction with the following detailed description, which should be taken in conjunction with the accompanying drawings. Throughout the drawings, like reference numerals will be understood to refer to like elements throughout the description and the drawings, and in which: DETAILED DESCRIPTION

[0045] Embodiments of the present application will be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the application are shown. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.

[0046] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in this application and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "and / or," as used herein, refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0047] It should be understood that although the terms "first," "second," "third," etc. can be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one piece of information from another piece of information of the same type. For example, the first information can also be referred to as the second information without departing from the scope of the application, and similarly, the second information can also be referred to as the first information. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0048] For existing drawing software such as CAD, etc., after importing the assembly model, each assembly part is represented by a tree structure, and the relationship between each assembly part is represented by the relationship between each node and its child, parent node, and sibling node. For a tree structure with a large amount of data, when operating on a tree node, the reaction is slow, causing software to lag. When searching for the assembly part corresponding to the tree node, the entire tree structure needs to be traversed, which is a huge workload and also causes the software to react slowly and lag, etc.

[0049] To solve the above problems, the embodiment of the application provides an assembly tree construction and access method, which effectively solves the problems of slow reaction and software lag when operating on assembly parts in a large amount of data model, and reduces the demand of software on hardware.

[0050] The technical solutions of the embodiments of the application are described in detail below with reference to the drawings.

[0051] Figure 1 is a flowchart of the assembly tree construction method shown in the embodiments of the application.

[0052] Referring to Figure 1 The assembly tree construction method provided by the embodiments of the application includes:

[0053] In step S101, an assembly model file is received, and the assembly parts in the assembly model file are traversed, and each assembly part is given ID information.

[0054] In the embodiment of the present application, the assembly model file can be an engineering drawing file, such as a CAD file, a UG file, can be a two-dimensional graphic file, or a three-dimensional graphic file, such as a DWG file, a prt file, etc. At least one structure model is included in an assembly model file, and the assembly parts are parts constituting the structure model in the assembly model file. At least one assembly part is included in a structure model, and generally, a plurality of assembly parts are included in a structure model. The assembly parts are assembled together through assembly relationships to constitute a model. The assembly relationship refers to the assembly relationship between the assembly parts, including the positional relationship and the connection relationship, etc.

[0055] In the embodiment of the present application, the ID information is information indicating the assembly parts, each assembly part corresponds to unique ID information, and each ID information corresponds to a unique assembly part. In the embodiment of the present application, when assigning ID information to the assembly parts, all the assembly parts in the assembly model file are obtained by traversing all the assembly parts in the assembly model file, and ID information is assigned to each assembly part.

[0056] As a possible implementation manner of the present application, for the convenience of description, a specific embodiment is taken as an example, and for a certain assembly model file, all the assembly parts in the assembly model file are traversed, and it is obtained that the structure model in the assembly model file is composed of four assembly parts. The four assembly parts are sequentially assigned ID information. Optionally, the specific representation method of the ID information can be set by the operator, such as using Arabic numerals, or using other ways, and the present application does not limit this. In the embodiment of the present application, if the ID information is identified by letters, four assembly parts with ID 1, 2, 3 and 4 can be obtained. Optionally, in the specific implementation process, the number of assembly parts generally exceeds four, and the present application does not give more examples for the convenience of description.

[0057] In step S102, each assembly part is taken as a node, and an assembly tree is constructed according to the assembly relationship between each assembly part. The ID information of the assembly part corresponding to each node in the assembly tree is recorded.

[0058] In the embodiment of the present application, the assembly tree is a tree structure used for representing the structural relationship between the assembly parts, wherein one tree node in the assembly tree corresponds to one assembly part, and optionally, one tree node can also correspond to a group of assembly parts, which form a structural component, and the child nodes under the tree node can correspond to the assembly parts in the structural component. In the embodiment of the present application, when the assembly tree is constructed, the assembly tree can be constructed according to the structural relationship between the assembly parts, such as constructing the assembly tree from top to bottom according to the time sequence of the assembly parts being added to the structural model, or constructing the assembly tree from top to bottom according to the hierarchical relationship of the assembly parts, wherein when the assembly tree is constructed, the ID information of the assembly part corresponding to each tree node is recorded.

[0059] As a possible implementation manner of the present application, in the implementation manner, the assembly model file includes six assembly parts, and the ID information of the assembly parts is 1, 2, 3, 4, 5 and 6 respectively, wherein A represents the entire assembly model, the assembly model includes a structural component B and an assembly part C, the structural component B includes assembly parts D, E and F, and when the assembly tree is constructed, the assembly tree as shown in Figure 2 can be constructed. When the tree structure is displayed on the graphical display interface, the ID information of the corresponding assembly part can be recorded for each tree node in a manner as shown in Figure 3 .

[0060] In step S103, an assembly part linear table is constructed based on the ID information of each assembly part, and the ID information of each assembly part, the hierarchical relationship between the nodes corresponding to each assembly part in the assembly tree are recorded in the assembly part linear table.

[0061] In the embodiment of the present application, the assembly part linear table is used for recording the ID information of each assembly part and the hierarchical relationship between the tree node corresponding to each assembly part and other nodes in the tree structure, wherein the hierarchical relationship includes parent-child relationship and brother relationship. In the embodiment of the present application, the ID information of the assembly parts is recorded in the assembly part linear table in sequence according to the order of the assembly part ID information, and the hierarchical relationship between the tree node corresponding to the assembly part and other tree nodes in the tree structure is recorded, including the ID information of the parent node of the tree node corresponding to the assembly part, the ID information of the first child node, the ID information of the last child node, the ID information of the elder brother node and the ID information of the younger brother node. In the embodiment of the present application, the ID information of each node can be recorded in the form of index, wherein the index can be defined in the form of ID information minus 1, and the present application does not limit this.

[0062] As a possible implementation of the present application, for the convenience of description, a specific example is taken as an example, as shown in Table 1, a linear table of the assembly model in the above embodiment is shown, the assembly model is composed of six assembly parts, wherein the ID information of each assembly part, the ID information of the parent node of the tree node corresponding to each assembly part, the first child node ID information, the last child node ID information, the elder brother node and the younger brother node ID information are recorded in the linear table.

[0063] Table 1: Assembly tree linear table

[0064]

[0065] The embodiment of the present application assigns ID information to each assembly part and displays the tree structure in the form of a linear table. When it is necessary to find or operate the assembly parts, it is not necessary to traverse the entire structure tree, the software calculation amount is small, the response speed is also fast for a large amount of data structure model, and there is no lag. When it is necessary to add or delete the assembly parts in the structure model, the corresponding ID information of the assembly parts can be directly added or deleted in the linear table, and the corresponding tree nodes of the ID information in the assembly tree are added or deleted, and the update of the assembly parts is more convenient.

[0066] As a possible implementation of the present application, in the implementation, the traversing of the assembly parts in the assembly model file, the ID information of each assembly part is assigned, comprising:

[0067] According to the assembly sequence of each assembly part in the assembly model, each assembly part in the assembly model is traversed, and the ID information of each assembly part is assigned according to the assembly sequence.

[0068] In the embodiment of the present application, when the ID information of the assembly part is assigned, the ID information can be numbered by Arabic numerals, and the assembly parts are numbered according to the time sequence of the assembly parts added to the assembly model by traversing the assembly parts.

[0069] As a possible implementation of the present application, in the implementation, after the assembly part linear table is constructed, further comprising:

[0070] When the assembly part update operation is received, the nodes in the assembly tree are updated based on the update operation, and the assembly parts and the ID information in the assembly part linear table are updated.

[0071] In the embodiment of the present application, for the structure model in the assembly model file, the assembly parts in the structure model can be updated. When the assembly part update operation is received, the nodes in the assembly tree are updated based on the update operation, the ID information of the assembly parts is updated, and the assembly parts and the ID information in the assembly part linear list are updated.

[0072] In the embodiment of the present application, as shown in Figure 4 When the assembly part update operation is an assembly part addition operation, the nodes in the assembly tree are updated, and the assembly parts and the ID information in the assembly part linear list are updated, including:

[0073] In step S401, based on the assembly part addition operation, the ID information of the newly added assembly part is given, the tree node corresponding to the newly added assembly part is added in the assembly tree, and the ID information of the newly added assembly part is recorded.

[0074] In the embodiment of the present application, when the assembly part update operation is an assembly part addition operation, the ID information of the newly added assembly part is given, the tree node corresponding to the newly added assembly part is added in the assembly tree, and the ID information of the newly added assembly part is recorded.

[0075] In the embodiment of the present application, after the ID information of the newly added assembly part is assigned, the corresponding tree node is added in the assembly tree, and the corresponding ID information is recorded in the assembly tree. Optionally, the position of the tree node corresponding to the newly added assembly part in the assembly tree can be determined according to the structural relationship between the newly added assembly part and the original assembly part.

[0076] In step S402, the ID information of the newly added assembly part is added in the assembly part linear list, and the hierarchical relationship between the corresponding tree node of the newly added assembly part in the assembly tree and other tree nodes is recorded.

[0077] In the embodiment of the present application, when the assembly part linear list is updated, the ID information of the new assembly part can be directly added at the end of the assembly part linear list, and the hierarchical relationship between the corresponding tree node of the newly added assembly part and other tree nodes is added at the same time. As one possible implementation of the present application, as shown in Table 2, the newly added assembly part is G, the corresponding ID information is 7, and the tree node corresponding to the assembly part is the child node of node 2, the younger brother node of node 4, and the elder brother node of node 5. The record information of the assembly part linear list is as follows.

[0078] Table 1: Assembly tree linear table

[0079]

[0080] When the assembly part update information is received, the embodiment of the application allocates ID information for the newly added assembly part based on the adding operation of the assembly part, increases the corresponding node in the assembly tree when updating the assembly tree and the assembly part linear table, and records the corresponding ID information, increases the corresponding ID information and the hierarchical relationship between the corresponding nodes in the assembly part linear table, and the updating operation of the assembly tree is more convenient.

[0081] As a possible implementation of the application, when the update operation of the assembly part is a deletion operation of the assembly part, the updating of the node in the assembly tree and the updating of the assembly part and the ID information in the assembly part linear table include:

[0082] Based on the deletion operation of the assembly part, the tree node corresponding to the deleted assembly part is deleted in the assembly tree, and the ID information of the deleted assembly part and the hierarchical relationship between the tree node corresponding to the deleted assembly part and other tree nodes are deleted in the assembly part linear table.

[0083] In the embodiment of the application, when the update operation of the assembly part is a deletion operation of the assembly part, based on the deletion operation of the assembly part, the ID information of the corresponding assembly part is determined, based on the ID information, the corresponding tree node is directly deleted in the assembly tree, and the ID information is deleted in the linear table, and the deletion of the assembly part is completed.

[0084] In the embodiment of the application, based on the deletion operation of the assembly part, based on the ID information of the deleted assembly part, the assembly part to be deleted is determined, and the corresponding information is deleted in the assembly tree and the assembly part linear table, and the deletion operation of the assembly part is more convenient and fast.

[0085] The embodiment of the application assigns ID information to each assembly part, and displays the tree structure in the form of a linear table, so that when the assembly part needs to be found or operated, the entire structure tree does not need to be traversed, the software calculation amount is small, the response speed is also very fast for a large amount of structural model data, and there is no lag, and when the assembly part in the structural model needs to be added or deleted, the corresponding ID information of the assembly part can be directly added or deleted in the linear table, and the tree node corresponding to the ID information is added or deleted, and the updating of the assembly part is more convenient.

[0086] As a possible implementation of the application, in this implementation, as shown in Figure 5 a method for accessing an assembly tree is provided, including:

[0087] Step S501, receiving an assembly part access request, wherein the assembly part access request includes ID information of an assembly part to be accessed.

[0088] In the embodiment of the application, the assembly part access request is a request of a user to view or operate an assembly part based on a graphical display interface of drawing software, and the access request at least includes ID information of the assembly part to be accessed.

[0089] Step S502, finding a corresponding assembly part in the assembly tree based on the ID information of the assembly part to be accessed, and highlighting the corresponding assembly part in the graphical display interface.

[0090] In the possible implementation of the application, when a user needs to view a certain assembly part, the user clicks a tree node corresponding to the assembly part in the assembly tree of the graphical display interface, and the corresponding assembly part is matched and highlighted in the graphical display interface based on ID information corresponding to the tree node, without traversing all assembly parts in the assembly tree, so that the software responds faster.

[0091] The embodiment of the application assigns ID information to each assembly part and displays a tree structure in the form of a linear table, so that when an assembly part needs to be found or operated, the entire structure tree does not need to be traversed, the software has a small amount of calculation, and for a structure model with a large amount of data, the response speed is also very fast, without lag. When an assembly part in the structure model needs to be added or deleted, the ID information corresponding to the assembly part can be directly added or deleted in the linear table, and the tree node corresponding to the ID information in the assembly tree is also added or deleted, so that the update of the assembly part is more convenient.

[0092] Corresponding to the foregoing application function implementation method embodiment, the application further provides an assembly tree construction and access device, an electronic device, and corresponding embodiments.

[0093] Figure 6 FIG. 1 is a structural schematic diagram of an assembly tree construction device according to an embodiment of the application.

[0094] Referring to FIG. 1, Figure 6 The assembly tree construction device provided in the embodiment of the application includes a file receiving module 610, an assembly tree construction module 620, and a linear table construction module 630, wherein:

[0095] The file receiving module 610 is configured to receive an assembly model file, traverse assembly parts in the assembly model file, and assign ID information to each assembly part.

[0096] The assembly tree construction module 620 is configured to construct an assembly tree with each assembly part as a node according to the assembly relationship between each assembly part, wherein the ID information of the assembly part corresponding to each node is recorded in the assembly tree.

[0097] The linear table construction module 630 is configured to construct an assembly part linear table based on the ID information of each assembly part, wherein the ID information of each assembly part and the hierarchical relationship between the nodes corresponding to each assembly part in the assembly tree are recorded in the assembly part linear table.

[0098] As a possible implementation of the present application, in this implementation, when the file receiving module 610 assigns ID information to each assembly part in the assembly model file, the file receiving module 610 is configured to:

[0099] traverse each assembly part in the assembly model according to the assembly sequence of each assembly part in the assembly model, and assign ID information to each assembly part according to the assembly sequence.

[0100] As a possible implementation of the present application, in this implementation, after the assembly part linear table is constructed, the assembly tree construction device is configured to:

[0101] when an assembly part update operation is received, update the nodes in the assembly tree and the assembly parts and ID information in the assembly part linear table based on the update operation.

[0102] As a possible implementation of the present application, in this implementation, when the update operation of the assembly part is an assembly part addition operation, the assembly tree construction device is configured to, when updating the nodes in the assembly tree and the assembly parts and ID information in the assembly part linear table,:

[0103] assign ID information to the newly added assembly part based on the assembly part addition operation, add a tree node corresponding to the newly added assembly part in the assembly tree, and record the ID information of the newly added assembly part;

[0104] add the ID information of the newly added assembly part in the assembly part linear table, and record the hierarchical relationship between the tree node corresponding to the newly added assembly part in the assembly tree and other tree nodes.

[0105] As a possible implementation of the present application, in this implementation, when the update operation of the assembly part is an assembly part deletion operation, the assembly tree construction device is configured to, when updating the nodes in the assembly tree and the assembly parts and ID information in the assembly part linear table,:

[0106] based on the assembly part deletion operation, deleting a tree node corresponding to the deleted assembly part in the assembly tree, and deleting ID information of the deleted assembly part and a hierarchical relationship between the tree node corresponding to the deleted assembly part and other tree nodes in the assembly part linear table.

[0107] Figure 7 is a structural schematic diagram of an assembly tree access device shown in an embodiment of the present application.

[0108] Referring to Figure 7 The assembly tree access device provided in the embodiment of the present application comprises a request receiving module 710 and an access module 720, wherein:

[0109] The request receiving module 710 is configured to receive an assembly part access request, wherein the assembly part access request comprises ID information of an accessed assembly part.

[0110] The access module 720 is configured to find a corresponding assembly part in the assembly tree based on the ID information of the accessed assembly part, and highlight the corresponding assembly part on a graphical display interface.

[0111] As to the device in the above embodiment, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and will not be described in detail here.

[0112] The embodiment of the present application assigns ID information to each assembly part, and displays a tree structure in the form of a linear table. When it is necessary to find or operate the assembly part, it is not necessary to traverse the entire structure tree, the software calculation amount is small, the response speed is also very fast for a large amount of structural model data, and there is no lag. When it is necessary to add or delete an assembly part in the structural model, the corresponding ID information of the assembly part can be directly added or deleted in the linear table, and the corresponding tree node in the assembly tree is added or deleted, which is convenient for updating the assembly part.

[0113] Figure 8 is a structural schematic diagram of an electronic device shown in an embodiment of the present application.

[0114] Referring to Figure 8 The electronic device 800 comprises a memory 810 and a processor 820.

[0115] The processor 820 can be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like. The general-purpose processor can be a microprocessor, or the processor can be any conventional processor.

[0116] The memory 810 can include various types of storage units, such as a system memory, a read-only memory (ROM), and a permanent storage device. Among them, the ROM can store static data or instructions required by the processor 820 or other modules of the computer. The permanent storage device can be a read and write storage device. The permanent storage device can be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a mass storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device can be a removable storage device (such as a floppy disk, an optical drive). The system memory can be a read and write storage device or a volatile read and write storage device, such as a dynamic random access memory. The system memory can store some or all of the instructions and data required by the processor during runtime. In addition, the memory 810 can include a combination of any computer readable storage media, including various types of semiconductor memory chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks and / or optical disks. In some embodiments, the memory 810 can include a read and / or write removable storage device, such as a compact disc (CD), a read-only digital versatile disc (such as DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a min SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer readable storage medium does not include a carrier wave and a transient electronic signal transmitted through a wireless or wired transmission.

[0117] The memory 810 stores executable code, which, when processed by the processor 820, can cause the processor 820 to perform part or all of the above-mentioned methods.

[0118] Furthermore, the method according to the present application can also be implemented as a computer program or a computer program product, which comprises computer program code instructions for executing some or all of the steps of the above-mentioned method according to the present application.

[0119] Alternatively, the present application can also be implemented as a computer readable storage medium (or a non-transitory machine readable storage medium or a machine readable storage medium) having stored thereon executable codes (or computer programs or computer instruction codes) which, when executed by a processor of an electronic device (or a server, etc.), cause the processor to perform some or all of the steps of the above-mentioned method according to the present application.

[0120] The above has described the embodiments of the present application, the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those skilled in the art without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, practical application, or improvement to the technology in the market, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims

1. An assembly tree construction method, characterized by, The method comprises: receiving an assembly model file, traversing assembly parts in the assembly model file, and assigning ID information to each of the assembly parts, wherein the ID information is recorded in the form of an index, and the index is defined by subtracting 1 from the ID information; taking each of the assembly parts as a node, and constructing an assembly tree according to the assembly relationship between each of the assembly parts, wherein the ID information of the assembly part corresponding to each node in the assembly tree is recorded; based on the index of the ID information of each of the assembly parts, constructing an assembly part linear table, wherein the index of the ID information of each of the assembly parts and the hierarchical relationship between the nodes corresponding to each of the assembly parts in the assembly tree are recorded in the assembly part linear table; when an assembly part update operation is received, updating the nodes in the assembly tree based on the update operation, and updating the assembly parts and the index of the ID information in the assembly part linear table.

2. The assembly tree construction method of claim 1, wherein, When the update operation of the assembly part is an assembly part addition operation, the updating of the nodes in the assembly tree and the updating of the assembly parts and the index of the ID information in the assembly part linear table comprise: based on the assembly part addition operation, assigning ID information to the newly added assembly part, adding a tree node corresponding to the newly added assembly part in the assembly tree, and recording the ID information of the newly added assembly part; in the assembly part linear table, adding the index of the ID information of the newly added assembly part, and recording the hierarchical relationship between the tree node corresponding to the newly added assembly part in the assembly tree and other tree nodes.

3. The assembly tree construction method of claim 1, wherein, When the update operation of the assembly part is an assembly part deletion operation, the updating of the nodes in the assembly tree and the updating of the assembly parts and the index of the ID information in the assembly part linear table comprise: based on the assembly part deletion operation, deleting the tree node corresponding to the deleted assembly part in the assembly tree, and deleting the index of the ID information of the deleted assembly part and the hierarchical relationship between the tree node corresponding to the deleted assembly part and other tree nodes in the assembly part linear table.

4. An assembly tree access method, characterized by, The access method comprises: receiving an assembly part access request, wherein the assembly part access request comprises ID information of an accessed assembly part; based on the ID information of the accessed assembly part, finding the corresponding assembly part in the assembly tree, and highlighting the corresponding assembly part in a graphical display interface; wherein the assembly tree is constructed by using the method of any one of claims 1-3.

5. An assembly tree building apparatus characterized by comprising: The assembly tree construction device comprises: The file receiving module is configured to receive an assembly model file, and traverse assembly parts in the assembly model file to assign ID information to each of the assembly parts, including: traversing the assembly parts in the assembly model according to assembly sequences of the assembly parts in the assembly model, and assigning ID information to each of the assembly parts according to the assembly sequences, the ID information being recorded in an index form, and the index being defined by subtracting 1 from the ID information; The assembly tree construction module is configured to construct an assembly tree with each of the assembly parts as a node and according to assembly relationships between the assembly parts, and the ID information of the assembly part corresponding to each node in the assembly tree is recorded in the assembly tree; The linear table construction module is configured to construct an assembly part linear table based on the index of the ID information of each of the assembly parts, and the index of the ID information of each of the assembly parts, a hierarchical relationship between nodes corresponding to each assembly part in the assembly tree, and when an assembly part update operation is received, the nodes in the assembly tree are updated based on the update operation, and the assembly parts and the index of the ID information in the assembly part linear table are updated.

6. An assembly tree access device, characterized by The assembly tree access device includes: The request receiving module is configured to receive an assembly part access request, and the ID information of an accessed assembly part is included in the assembly part access request; The access module is configured to find the corresponding assembly part in the assembly tree based on the ID information of the accessed assembly part, and highlight the corresponding assembly part in a graphical display interface; and The assembly tree is constructed by using the method of any one of claims 1-3; or The assembly tree is constructed by using the assembly tree construction device of claim 5.

7. An electronic device, comprising: The device includes: a processor; and a memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method of any one of claims 1-4. The device includes:

8. A computer-readable storage medium, characterized in that, a processor; and a memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method of any one of claims 1-4.