Steel structure material list generation method and device, equipment and medium

By parsing steel structure engineering files on the building information modeling platform, generating numbers and constructing a BOM tree, and combining the depth-first search algorithm and recursive transfer mechanism, the steel structure material list is automatically generated, solving the problem of low efficiency of traditional manual generation and achieving efficient and accurate material list generation.

CN120746459APending Publication Date: 2025-10-03CHINA CONSTR SCI & IND WUHAN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510873401.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

The traditional manual method of generating steel structure material lists is inefficient and error-prone, making it difficult to meet the efficiency and accuracy requirements of modern engineering projects. Especially in scenarios with frequent design changes, it is easy to cause data inconsistencies, affecting project progress and cost control.

Method used

Based on the building information modeling platform, steel structure engineering files are extracted, component attribute data and assembly relationships are analyzed, numbers are generated and a BOM tree is constructed. The depth-first search algorithm and recursive transfer mechanism are used to automatically generate the material list.

Benefits of technology

It achieves efficient and accurate generation of steel structure material lists, improves data processing efficiency, and is suitable for various steel structure engineering projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120746459A_ABST
    Figure CN120746459A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a steel structure material list generation method and device, equipment and a medium, which can generate the number of each steel structure zero component according to a configuration rule, and construct a BOM tree according to a zero component assembly relationship and the number of each steel structure zero component to provide a traversal basis. The steel structure material list generation instruction is analyzed to automatically obtain a traversal range, the BOM tree is screened according to the traversal range to obtain a target zero component number, preliminary screening of zero components is achieved, redundant information is removed, and therefore the traversal efficiency is improved; and sequentially traversing the target zero component numbers by adopting a depth-first search algorithm, processing the target attribute data based on a recursive transfer mechanism in the traversing process to obtain a plurality of BOM rows, and integrating the plurality of BOM rows to obtain a steel structure material list, therefore, the steel structure material list is automatically, comprehensively, accurately and quickly generated by combining a depth-first search algorithm and a recursive transfer mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method, device, equipment and medium for generating a steel structure material list. Background Art

[0002] In steel structure projects, the generation of a Bill of Materials (BOM) is a key step in project success. The steel structure BOM provides an important basis for material procurement, manufacturing, construction, and other aspects.

[0003] Traditional BOM generation relies heavily on manual labor, often requiring the manual extraction of component information from design drawings and entering it one by one into Excel or other spreadsheet tools. This manual process is not only inefficient but also prone to data errors, omissions, and duplications due to human negligence. This problem is particularly prominent when working with complex steel structure projects.

[0004] As steel structure projects continue to expand in scale and design complexity, traditional manual BOM generation methods are no longer able to meet the efficiency and accuracy requirements of modern engineering. Furthermore, manual processing struggles with frequent design changes, easily leading to inconsistencies between BOM data and design drawings, impacting project schedules and cost control.

[0005] Therefore, developing an efficient, accurate and automated BOM generation method has become a technical problem that needs to be solved urgently in the field of steel structure engineering. Summary of the Invention

[0006] In view of the above, it is necessary to provide a method, device, equipment and medium for generating a steel structure material list, aiming to solve the problem that a steel structure material list cannot be generated efficiently, accurately and automatically in the field of steel structure engineering.

[0007] A method for generating a steel structure material list, the method comprising: Extracting steel structure engineering files based on a designated building information model platform, and parsing the steel structure engineering files to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering files; Generate the number of each steel structure component according to the configuration rules; Establish a mapping relationship between the number of each steel structure component and the corresponding component attribute data; Constructing a BOM tree according to the assembly relationship of the parts and components and the number of each steel structure part and component; In response to a steel structure material list generation instruction, parsing the steel structure material list generation instruction to obtain a traversal range; Filter the BOM tree according to the traversal range to obtain the target component number; Acquire component attribute data corresponding to each target component number as target attribute data according to the mapping relationship; A depth-first search algorithm is used to sequentially traverse the target component numbers, and during the traversal process, the target attribute data is processed based on a recursive transfer mechanism to obtain a plurality of BOM lines; The multiple BOM rows are integrated to obtain a steel structure material list.

[0008] According to a preferred embodiment of the present invention, extracting steel structure engineering files based on a designated building information modeling platform includes: Establishing communication with the steel structure component database through the API interface of the designated building information model platform; The steel structure engineering file is extracted from the steel structure component database.

[0009] According to a preferred embodiment of the present invention, generating a number for each steel structure component according to the configuration rule includes: Check whether each steel structure component has been numbered; For each steel structure component that has a number, determine the existing number of each steel structure component as the number of each steel structure component; or For each unnumbered steel structure component, determine the type of each steel structure component; generate a number header for each steel structure component according to the type of each steel structure component; configure a self-incrementing ID for each steel structure component according to the numbering sequence of each steel structure component; combine the number header of each steel structure component and the corresponding self-incrementing ID to obtain the number of each steel structure component.

[0010] According to a preferred embodiment of the present invention, after establishing the mapping relationship between the serial number of each steel structure component and the corresponding component attribute data, the method further includes: The number of each steel structure component is determined as a key, and the corresponding component attribute data is determined as a value to construct a key-value pair; The key-value pairs are stored in memory based on a memory cache mechanism.

[0011] According to a preferred embodiment of the present invention, constructing a BOM tree based on the component assembly relationship and the number of each steel structure component includes: Initialize the project virtual root node as the top node; According to the component assembly relationship, the BOM tree is obtained by sequentially extending downward from the top node as a starting point to connect the numbers of each steel structure component; In the BOM tree, the number of each steel structure component is determined as each tree node, and the tree nodes are connected as directed edges between the tree nodes according to the component assembly relationship between the steel structure components.

[0012] According to a preferred embodiment of the present invention, the parsing of the steel structure material list generation instruction to obtain the traversal range includes: Parsing the steel structure material list to obtain user operations; Determine the three-dimensional coordinate range of the frame selection according to the user operation; The traversal range is determined according to the three-dimensional coordinate range.

[0013] According to a preferred embodiment of the present invention, the depth-first search algorithm is used to sequentially traverse the target component numbers, and the target attribute data is processed based on a recursive transfer mechanism during the traversal process to obtain multiple BOM lines including: Configure the initial state of the tree node corresponding to each target zero component number to the first state; Traverse the tree nodes corresponding to each target component number in order from smallest to largest depth; During the traversal process, for a current tree node traversed, the state of the current tree node is configured as the second state, the accumulated material item attribute values ​​up to the current tree node are calculated according to the recursive transfer mechanism, and the current BOM line is generated according to the material item attribute values; When it is detected that the states of all tree nodes are the second state, the traversal is stopped and the generated multiple BOM rows are obtained.

[0014] A device for generating a steel structure material list, comprising: a parsing unit, configured to extract a steel structure engineering file based on a designated building information model platform, and parse the steel structure engineering file to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering file; A generation unit, used to generate the number of each steel structure component according to the configuration rules; Establishing a unit for establishing a mapping relationship between the number of each steel structure component and the corresponding component attribute data; A construction unit, configured to construct a BOM tree according to the assembly relationship of the parts and components and the number of each steel structure part and component; The parsing unit is further configured to, in response to a steel structure material list generation instruction, parse the steel structure material list generation instruction to obtain a traversal range; A screening unit, configured to screen the BOM tree according to the traversal range to obtain a target component number; An acquiring unit, configured to acquire, according to the mapping relationship, component attribute data corresponding to each target component number as target attribute data; A traversal unit is used to sequentially traverse the target component numbers using a depth-first search algorithm, and process the target attribute data based on a recursive transfer mechanism during the traversal process to obtain a plurality of BOM lines; The integration unit is used to integrate the multiple BOM lines to obtain a steel structure material list.

[0015] A computer device, comprising: a memory storing at least one instruction; and The processor executes the instructions stored in the memory to implement the method for generating a steel structure material list.

[0016] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the method for generating a steel structure material list.

[0017] It can be seen from the above technical solutions that the present invention can generate the number of each steel structure component according to the configuration rules, and construct a BOM tree according to the component assembly relationship and the number of each steel structure component to provide a traversal basis; parse the steel structure material list generation instruction to automatically obtain the traversal range, filter the BOM tree according to the traversal range to obtain the target component number, realize the preliminary screening of the components, remove redundant information, and thus improve the traversal efficiency; adopt a depth-first search algorithm to traverse the target component number in sequence, and process the target attribute data based on the recursive transfer mechanism during the traversal process to obtain multiple BOM rows, integrate multiple BOM rows to obtain a steel structure material list, and thus combine the depth-first search algorithm and the recursive transfer mechanism to automatically, comprehensively, accurately and quickly generate a steel structure material list. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a preferred embodiment of the method for generating a steel structure material list of the present invention; Figure 2 This is a functional module diagram of a preferred embodiment of the device for generating a bill of materials for steel structures according to the present invention; Figure 3 It is a structural diagram of a computer device according to a preferred embodiment of the present invention for realizing a method for generating a steel structure material list. DETAILED DESCRIPTION

[0019] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0020] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of a method for generating a bill of materials for steel structures according to the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different requirements.

[0021] The steel structure material list generation method is applied to one or more computer devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Their hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0022] The computer device may be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0023] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.

[0024] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0025] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0026] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0027] The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0028] S10, extracting steel structure engineering files based on a designated building information modeling platform, and parsing the steel structure engineering files to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering files.

[0029] In this embodiment, the designated building information modeling platform may be a BIM platform (Building Information Modeling Platform). The designated building information modeling platform is a software system or online service platform based on BIM technology that integrates various building information and functions to provide support for the full life cycle management of construction projects.

[0030] In this embodiment, steel structure engineering documents refer to various types of documents and materials generated and used during the entire life cycle of a steel structure engineering project, from planning, design, construction to completion acceptance, operation and maintenance, etc., which are of great significance to the smooth progress of the project, quality assurance, and post-maintenance.

[0031] For example: the steel structure engineering documents may include, but are not limited to, preliminary documents such as project approval documents, construction land documents, survey and design documents (including geological survey reports, design drawings, design change documents, etc.), construction management documents (including construction organization design, construction log), engineering quality documents (including raw material quality certification documents, welding process assessment reports, weld flaw detection reports, high-strength bolt connection friction surface anti-slip coefficient test reports, component production inspection records, hidden engineering acceptance records), construction safety documents (including safety management plans, safety inspection records) and other construction process documents, as well as completion acceptance documents (including completion acceptance reports, engineering quality acceptance records, as-built drawings), operation and maintenance documents (including instruction manuals, maintenance plans, repair records), etc.

[0032] In this embodiment, extracting steel structure engineering files based on a designated building information model platform includes: Establishing communication with the steel structure component database via the API (Application Programming Interface) of the designated building information model platform; The steel structure engineering file is extracted from the steel structure component database.

[0033] The steel structure component database is used to centrally store and manage steel structure related component information.

[0034] In the above embodiment, by specifying the API interface of the building information model platform to communicate with the component database of the steel structure project, it can assist in achieving efficient, accurate and automatic generation of BOM (Bill of Materials), which is applicable to various steel structure engineering projects.

[0035] In this embodiment, the component attribute data of each steel structure component may include, but is not limited to, one or a combination of the following information: the component's global ID, quantity, cross-section, material, length, weight, and remarks.

[0036] In this embodiment, the component assembly relationship refers to the connection mode and subordinate relationship between the components.

[0037] S11, generate the number of each steel structure component according to the configuration rules.

[0038] In this embodiment, the step of generating a number for each steel structure component according to the configuration rule includes: Check whether each steel structure component has been numbered; For each steel structure component that has a number, determine the existing number of each steel structure component as the number of each steel structure component; or For each unnumbered steel structure component, determine the type of each steel structure component; generate a number header for each steel structure component according to the type of each steel structure component; configure a self-incrementing ID for each steel structure component according to the numbering sequence of each steel structure component; combine the number header of each steel structure component and the corresponding self-incrementing ID to obtain the number of each steel structure component.

[0039] The type of each steel structure component may include, but is not limited to, steel beams, steel columns, connecting plates, etc.

[0040] For example, for each unnumbered steel structural component, first count all component types (such as beams, columns, and connecting plates) and assign each type an auto-incrementing ID. The auto-incrementing ID is a consecutive positive integer starting at 1 and automatically incremented by 1 after each assignment. Furthermore, each steel structural component can be numbered by appending the first letter of the type name to the auto-incrementing ID. For example, a beam could be numbered "B-1." If a component already has an assigned number, the original number is used.

[0041] S12, establishing a mapping relationship between the serial number of each steel structure component and the corresponding component attribute data.

[0042] In this embodiment, after establishing the mapping relationship between the serial number of each steel structure component and the corresponding component attribute data, the method further includes: The number of each steel structure component is determined as a key, and the corresponding component attribute data is determined as a value to construct a key-value pair; The key-value pairs are stored in memory based on a memory cache mechanism.

[0043] Through the memory caching mechanism, component information can be quickly accessed, repeated database queries can be avoided, and data retrieval efficiency can be significantly improved.

[0044] S13, constructing a BOM tree according to the component assembly relationship and the number of each steel structure component.

[0045] In this embodiment, constructing a BOM tree according to the component assembly relationship and the number of each steel structure component includes: Initialize the project virtual root node as the top node; According to the component assembly relationship, the BOM tree is obtained by sequentially extending downward from the top node as a starting point to connect the numbers of each steel structure component; In the BOM tree, the number of each steel structure component is determined as each tree node, and the tree nodes are connected as directed edges between the tree nodes according to the component assembly relationship between the steel structure components.

[0046] Specifically, a virtual root node for the project can be generated by default as the top-level node of the BOM tree, connecting all first-level component nodes. Furthermore, the assembly relationships between components are determined, and directed edges connect parent nodes and child nodes, forming a tree structure with component numbers as nodes (i.e., components as tree nodes) and assembly relationships as edges, which serves as the BOM tree.

[0047] By constructing a BOM tree, the parent-child relationship between components can be displayed more clearly in a hierarchical manner.

[0048] S14 , in response to the steel structure material list generation instruction, parsing the steel structure material list generation instruction to obtain a traversal range.

[0049] In this embodiment, the steel structure material list generation instruction can be automatically triggered when a relevant operation on a designated user interaction interface is detected.

[0050] In this embodiment, the traversal range obtained by parsing the steel structure material list generation instruction includes: Parsing the steel structure material list to obtain user operations; Determine the three-dimensional coordinate range of the frame selection according to the user operation; The traversal range is determined according to the three-dimensional coordinate range.

[0051] Through the above embodiments, the traversal range can be automatically determined, redundant information can be eliminated, and the traversal efficiency can be improved.

[0052] S15, screening the BOM tree according to the traversal range to obtain a target component number.

[0053] In this embodiment, the target part number can be filtered out from the BOM tree according to the three-dimensional coordinate range defined by the traversal range.

[0054] S16: Acquire component attribute data corresponding to each target component number as target attribute data according to the mapping relationship.

[0055] In this embodiment, each target component number can be used to perform a matching query in the mapping relationship, thereby obtaining component attribute data corresponding to each target component number as the target attribute data.

[0056] S17, using a depth-first search algorithm to traverse the target component numbers in sequence, and processing the target attribute data based on a recursive transfer mechanism during the traversal process to obtain multiple BOM rows.

[0057] In this embodiment, the depth-first search algorithm is used to sequentially traverse the target component numbers, and the target attribute data is processed based on a recursive transfer mechanism during the traversal process to obtain multiple BOM lines including: Configure the initial state of the tree node corresponding to each target zero component number to the first state; Traverse the tree nodes corresponding to each target component number in order from smallest to largest depth; During the traversal process, for a current tree node traversed, the state of the current tree node is configured as the second state, the accumulated material item attribute values ​​up to the current tree node are calculated according to the recursive transfer mechanism, and the current BOM line is generated according to the material item attribute values; When it is detected that the states of all tree nodes are the second state, the traversal is stopped and the generated multiple BOM rows are obtained.

[0058] For example, the initial access state of the filtered zero-component nodes is configured as False, that is, the first state, and the tree nodes are sorted in order of depth from small to large. The specific traversal method is as follows: ① Update the access status of the currently traversed tree node to True, which is the second state; ② Recursively traverse all child nodes of the current tree node, and in the traversal process, calculate the weight, area and other calculated attributes of the component (i.e., the attribute value of the material item) through recursive transfer, and generate the corresponding BOM row set based on the number and attribute data; ③ Determine the access status of the tree nodes corresponding to all zero-components. If all are True, then all zero-component nodes have been visited. If there is False, then the first node with a False access status is configured as the current node. ④ Repeat steps ①-③ until all tree nodes have been visited, that is, the visit status of all nodes is True.

[0059] S18, integrating the multiple BOM rows to obtain a steel structure material list.

[0060] This embodiment has the advantages of high degree of automation, fast data processing efficiency and accurate BOM generation, which can significantly improve the efficiency of generating bills of materials in steel structure projects. It is suitable for various steel structure engineering projects and has broad application prospects and practical value.

[0061] It can be seen from the above technical solutions that the present invention can generate the number of each steel structure component according to the configuration rules, and construct a BOM tree according to the component assembly relationship and the number of each steel structure component to provide a traversal basis; parse the steel structure material list generation instruction to automatically obtain the traversal range, filter the BOM tree according to the traversal range to obtain the target component number, realize the preliminary screening of the components, remove redundant information, and thus improve the traversal efficiency; adopt a depth-first search algorithm to traverse the target component number in sequence, and process the target attribute data based on the recursive transfer mechanism during the traversal process to obtain multiple BOM rows, integrate multiple BOM rows to obtain a steel structure material list, and thus combine the depth-first search algorithm and the recursive transfer mechanism to automatically, comprehensively, accurately and quickly generate a steel structure material list.

[0062] like Figure 2 , which is a functional module diagram of a preferred embodiment of a steel structure material bill generation device according to the present invention. The steel structure material bill generation device 11 comprises a parsing unit 110, a generation unit 111, a creation unit 112, a construction unit 113, a screening unit 114, an acquisition unit 115, a traversal unit 116, and an integration unit 117. As used herein, a module / unit refers to a series of computer program segments that can be executed by a processor and perform fixed functions, and are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0063] The parsing unit 110 is configured to extract a steel structure engineering file based on a designated building information modeling platform, and parse the steel structure engineering file to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering file; The generating unit 111 is used to generate a number for each steel structure component according to the configuration rule; The establishing unit 112 is used to establish a mapping relationship between the serial number of each steel structure component and the corresponding component attribute data; The construction unit 113 is used to construct a BOM tree according to the component assembly relationship and the number of each steel structure component; The parsing unit 110 is further configured to, in response to a steel structure material list generation instruction, parse the steel structure material list generation instruction to obtain a traversal range; The screening unit 114 is configured to screen the BOM tree according to the traversal range to obtain a target component number; The acquiring unit 115 is configured to acquire, according to the mapping relationship, component attribute data corresponding to each target component number as target attribute data; The traversal unit 116 is used to sequentially traverse the target component numbers using a depth-first search algorithm, and process the target attribute data based on a recursive transfer mechanism during the traversal process to obtain multiple BOM lines; The integration unit 117 is used to integrate the multiple BOM lines to obtain a steel structure material list.

[0064] It can be seen from the above technical solutions that the present invention can generate the number of each steel structure component according to the configuration rules, and construct a BOM tree according to the component assembly relationship and the number of each steel structure component to provide a traversal basis; parse the steel structure material list generation instruction to automatically obtain the traversal range, filter the BOM tree according to the traversal range to obtain the target component number, realize the preliminary screening of the components, remove redundant information, and thus improve the traversal efficiency; adopt a depth-first search algorithm to traverse the target component number in sequence, and process the target attribute data based on the recursive transfer mechanism during the traversal process to obtain multiple BOM rows, integrate multiple BOM rows to obtain a steel structure material list, and thus combine the depth-first search algorithm and the recursive transfer mechanism to automatically, comprehensively, accurately and quickly generate a steel structure material list.

[0065] like Figure 3 FIG. 1 is a schematic diagram of the structure of a computer device according to a preferred embodiment of the present invention for implementing a method for generating a steel structure material list.

[0066] The computer device 1 may include a memory 12, a processor 13 and a bus (the arrow in the figure represents the bus), and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a steel structure material list generation program.

[0067] Those skilled in the art will understand that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may have either a bus structure or a star structure. The computer device 1 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.

[0068] It should be noted that the computer device 1 is only an example. Other existing or future electronic products that are suitable for the present invention should also be included in the scope of protection of the present invention and included here by reference.

[0069] The memory 12 includes at least one type of readable storage medium, including flash memory, a removable hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. In other embodiments, the memory 12 may also be an external storage device of the computer device 1, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 12 may include both an internal storage unit of the computer device 1 and an external storage device. The memory 12 can be used not only to store application software installed in the computer device 1 and various types of data, such as the code for the steel structure material list generation program, but also to temporarily store data that has been output or is about to be output.

[0070] In some embodiments, the processor 13 may be comprised of an integrated circuit, such as a single packaged integrated circuit or multiple packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (control unit) of the computer device 1, connecting the various components of the computer device 1 via various interfaces and circuits. It executes programs or modules stored in the memory 12 (e.g., a program for generating a bill of materials for steel structures) and accesses data stored in the memory 12 to perform various functions and process data.

[0071] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the method for generating a bill of materials for steel structures, for example Figure 1 Steps shown.

[0072] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a parsing unit 110, a generating unit 111, a establishing unit 112, a constructing unit 113, a screening unit 114, an acquiring unit 115, a traversing unit 116, and an integrating unit 117.

[0073] The integrated unit implemented as a software functional module can be stored in a computer-readable storage medium. The software functional module stored in the storage medium includes instructions for causing a computer device (which can be a personal computer, computer device, or network device, etc.) or a processor to execute portions of the method for generating a steel structure material bill according to various embodiments of the present invention.

[0074] If the modules / units integrated in the computer device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments.

[0075] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.

[0076] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0077] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks linked together using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product and service layer, and the application service layer.

[0078] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The figure shows that only one straight line is used, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13.

[0079] Although not shown, the computer device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 13 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management through the power management device. The power supply may also include one or more DC or AC power supplies, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components. The computer device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be further described here.

[0080] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the computer device 1 and other computer devices.

[0081] Optionally, the computer device 1 may further include a user interface, which may be a display or an input unit (such as a keyboard). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the computer device 1 and to display a visual user interface.

[0082] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0083] It will be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the computer device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0084] Combine Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement a method for generating a steel structure material list, and the processor 13 can execute the plurality of instructions to implement: Extracting steel structure engineering files based on a designated building information model platform, and parsing the steel structure engineering files to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering files; Generate the number of each steel structure component according to the configuration rules; Establish a mapping relationship between the number of each steel structure component and the corresponding component attribute data; Constructing a BOM tree according to the assembly relationship of the parts and components and the number of each steel structure part and component; In response to a steel structure material list generation instruction, parsing the steel structure material list generation instruction to obtain a traversal range; Filter the BOM tree according to the traversal range to obtain the target component number; Acquire component attribute data corresponding to each target component number as target attribute data according to the mapping relationship; A depth-first search algorithm is used to sequentially traverse the target component numbers, and during the traversal process, the target attribute data is processed based on a recursive transfer mechanism to obtain a plurality of BOM lines; The multiple BOM rows are integrated to obtain a steel structure material list.

[0085] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0086] It should be noted that the data involved in this case were all obtained legally. The software tools or components not produced by our company that appear in the embodiments of this application are merely examples and do not represent actual use.

[0087] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.

[0088] The present invention can be used in a wide variety of general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0089] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0090] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0091] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0092] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.

[0093] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in the present invention may also be implemented by a single unit or device through software or hardware. Terms such as first and second are used to indicate names and do not imply any particular order.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for generating a steel structure material list, characterized in that: The method for generating a steel structure material list comprises: Extracting steel structure engineering files based on a designated building information model platform, and parsing the steel structure engineering files to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering files; Generate the number of each steel structure component according to the configuration rules; Establish a mapping relationship between the number of each steel structure component and the corresponding component attribute data; Constructing a BOM tree according to the assembly relationship of the parts and components and the number of each steel structure part and component; In response to a steel structure material list generation instruction, parsing the steel structure material list generation instruction to obtain a traversal range; Filter the BOM tree according to the traversal range to obtain the target component number; Acquire component attribute data corresponding to each target component number as target attribute data according to the mapping relationship; A depth-first search algorithm is used to sequentially traverse the target component numbers, and during the traversal process, the target attribute data is processed based on a recursive transfer mechanism to obtain a plurality of BOM lines; The multiple BOM rows are integrated to obtain a steel structure material list.

2. The method for generating a steel structure material list according to claim 1, wherein: The extraction of steel structure engineering files based on the designated building information model platform includes: Establishing communication with the steel structure component database through the API interface of the designated building information model platform; The steel structure engineering file is extracted from the steel structure component database.

3. The method for generating a steel structure material list according to claim 1, wherein: The numbering of each steel structure component is generated according to the configuration rules, including: Check whether each steel structure component has been numbered; For each steel structure component that has a number, determine the existing number of each steel structure component as the number of each steel structure component; or For each unnumbered steel structure component, determine the type of each steel structure component; generate a number header for each steel structure component according to the type of each steel structure component; configure a self-incrementing ID for each steel structure component according to the numbering sequence of each steel structure component; combine the number header of each steel structure component and the corresponding self-incrementing ID to obtain the number of each steel structure component.

4. The method for generating a steel structure material list according to claim 1, wherein: After establishing the mapping relationship between the serial number of each steel structure component and the corresponding component attribute data, the method further includes: The number of each steel structure component is determined as a key, and the corresponding component attribute data is determined as a value to construct a key-value pair; The key-value pairs are stored in memory based on a memory cache mechanism.

5. The method for generating a steel structure material list according to claim 1, wherein: The step of constructing a BOM tree according to the component assembly relationship and the number of each steel structure component includes: Initialize the project virtual root node as the top node; According to the component assembly relationship, the BOM tree is obtained by sequentially extending downward from the top node as a starting point to connect the numbers of each steel structure component; In the BOM tree, the number of each steel structure component is determined as each tree node, and the tree nodes are connected as directed edges between the tree nodes according to the component assembly relationship between the steel structure components.

6. The method for generating a steel structure material list according to claim 1, wherein: The traversal range obtained by parsing the steel structure material list generation instruction includes: Parsing the steel structure material list to obtain user operations; Determine the three-dimensional coordinate range of the frame selection according to the user operation; The traversal range is determined according to the three-dimensional coordinate range.

7. The method for generating a steel structure material list according to claim 1, wherein: The depth-first search algorithm is used to sequentially traverse the target component numbers, and during the traversal process, the target attribute data is processed based on a recursive transfer mechanism to obtain multiple BOM lines including: Configure the initial state of the tree node corresponding to each target zero component number to the first state; Traverse the tree nodes corresponding to each target component number in order from smallest to largest depth; During the traversal process, for a current tree node traversed, the state of the current tree node is configured as the second state, the accumulated material item attribute values ​​up to the current tree node are calculated according to the recursive transfer mechanism, and the current BOM line is generated according to the material item attribute values; When it is detected that the states of all tree nodes are the second state, the traversal is stopped and the generated multiple BOM rows are obtained.

8. A device for generating a steel structure material list, characterized in that: The steel structure material list generating device comprises: a parsing unit, configured to extract a steel structure engineering file based on a designated building information model platform, and parse the steel structure engineering file to obtain component attribute data and component assembly relationships of each steel structure component in the steel structure engineering file; A generation unit, used to generate the number of each steel structure component according to the configuration rules; Establishing a unit for establishing a mapping relationship between the number of each steel structure component and the corresponding component attribute data; A construction unit, configured to construct a BOM tree according to the assembly relationship of the parts and components and the number of each steel structure part and component; The parsing unit is further configured to, in response to a steel structure material list generation instruction, parse the steel structure material list generation instruction to obtain a traversal range; A screening unit, configured to screen the BOM tree according to the traversal range to obtain a target component number; An acquiring unit, configured to acquire, according to the mapping relationship, component attribute data corresponding to each target component number as target attribute data; A traversal unit is used to sequentially traverse the target component numbers using a depth-first search algorithm, and process the target attribute data based on a recursive transfer mechanism during the traversal process to obtain a plurality of BOM lines; The integration unit is used to integrate the multiple BOM lines to obtain a steel structure material list.

9. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the method for generating a steel structure material list according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the method for generating a steel structure material list according to any one of claims 1 to 7.