BOM generation method and device based on 3D modeling, equipment and medium
Through the BOM generation method based on 3D modeling, the algorithm is used to split and traverse the BOM, which solves the problems of low efficiency and disconnection in the existing technology and realizes efficient and accurate BOM generation and information construction.
Patent Information
- Application Number
- CN202511200154.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-26
- Publication Date
- 2025-10-17
AI Technical Summary
The existing BOM generation method is inefficient and disconnected from 3D modeling, resulting in manual operations relying on repetitive labor and lacking an integrated and unified design data source, which hinders the enterprise informatization process.
The BOM generation method based on 3D modeling parses the steel structure BOM generation instructions, splits the target model, uses the breadth-first and depth-first algorithms to traverse the component information, combines the hash table algorithm and mapping table to generate the initial BOM, and updates it according to the additional item attributes. Finally, it displays and exports the target BOM on the configuration interface.
It realizes the synchronous storage of component information, improves the efficiency and accuracy of BOM generation, builds a bridge between 3D models and BOM, meets customization needs, reduces labor costs, and promotes enterprise informatization construction.
Smart Images

Figure CN120806829A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a BOM generation method and device based on 3D modeling, equipment and medium. BACKGROUND
[0002] With the development of industrial software and CAD (Computer Aided Design) modeling, in the manufacturing industry, engineering construction field, aerospace and other fields, BOM (Billof Material) as the core data, is the key information carrier of product design, production, procurement, inventory management and other links, throughout the product life cycle, and provides accurate material list and structure information for each link. The steel structure BOM contains component code, part code, part specification, quantity, process note and other contents.
[0003] At present, the production of BOM mainly includes manual and simple BOM automatic generation scheme.
[0004] In the manual scheme, the design department uses design software to draw component drawings, and the drawings have a material specification table. The list department needs to manually transcribe the content of the specification table from the drawing to EXCEL. For example: for welded profiles, it needs to be manually disassembled into plate parts; for parts, it needs to manually obtain processing information such as corner cutting, hole punching, blanking, geometric shape from the drawing and input into the BOM, and at the same time, the parts that need to be punched and punched are integrated into a small plate drawing. Finally, the bolts and straight hair parts are counted and summarized. In the simple automatic BOM generation scheme, the materials used are exported to EXCEL.
[0005] However, the manual operation mode is highly dependent on manual operation, and is full of repetitive labor, which makes it difficult to improve work efficiency. Moreover, the current work flow makes the design model and the BOM disconnected, and the enterprise therefore lacks an integrated and unified design data source, which to a large extent hinders the continuous advancement of the enterprise informatization process and breaks the relationship between the design model and the BOM. The simple BOM automatic generation scheme lacks some basic data processing functions of BOM information and methods for dealing with multi-level steel structures. SUMMARY
[0006] In view of the above, it is necessary to provide a BOM generation method, device, equipment and medium based on 3D modeling, aiming to solve the problems of low BOM generation efficiency and disconnection with 3D modeling.
[0007] A BOM generation method based on 3D modeling, the BOM generation method based on 3D modeling comprises:
[0008] In response to a steel structure BOM generation instruction based on the target 3D model, at least one list type and a list storage location corresponding to each list type are obtained by analyzing the steel structure BOM generation instruction;
[0009] The target 3D model is split to obtain target component item information;
[0010] Reference component information stored in advance is obtained, and the target component item information is one-to-one mapped with the reference component information to obtain a mapping table;
[0011] According to each list type, the target component item information is traversed by using a breadth-first algorithm and a depth-first algorithm, and the component items traversed in the traversal process are processed according to a hash table algorithm and the mapping table to obtain an initial BOM corresponding to each list type;
[0012] Additional item attributes configured are obtained, and the initial BOM is updated according to the additional item attributes to obtain a target BOM;
[0013] In response to a preview instruction of the target BOM, a preview image of the target BOM is displayed on a configuration interface;
[0014] In response to an export instruction of the target BOM, the target BOM is output and displayed, and the target BOM is stored in a corresponding list storage location.
[0015] According to the preferred embodiment of the present application, the analysis of the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type comprises:
[0016] The user interaction interface triggering the steel structure BOM generation instruction is connected;
[0017] A behavior detection list maintained in advance is obtained; wherein the behavior detection list includes the user interaction interface, a user behavior record log, and a user behavior response module;
[0018] Based on the user behavior record log and the user behavior response module in the detection list, the user behavior generated on the user interaction interface is analyzed, and the at least one list type and the list storage location corresponding to each list type are determined according to the user behavior.
[0019] According to the preferred embodiment of the present application, the splitting of the target 3D model to obtain target component item information comprises:
[0020] A preset number of parent components in the target 3D model are obtained; wherein the parent components include sub-components and parts;
[0021] identifying a welding type component and a non-welding type component in the parent component;
[0022] for an H type component in the welding type component, splitting the H type component into a web plate and two flange plates;
[0023] for a plate type component in the welding type component, splitting the plate type component into a plurality of small plate pieces;
[0024] for a T type component in the welding type component, splitting the T type component into a web plate and a flange plate;
[0025] for an arc-shaped beam in the welding type component, splitting the arc-shaped beam into a main beam and a vice beam body, and separating from a support;
[0026] for a pipeline in the welding type component, splitting the pipeline into a main pipe and a branch pipe;
[0027] integrating all the split components to generate the target component entry information.
[0028] According to the preferred embodiment of the present application, the breadth-first algorithm and the depth-first algorithm are used to traverse the target component entry information according to each list type, which includes:
[0029] when the list type is a component parts list, an arbitrary component is randomly selected as a starting point for traversal by using the depth-first algorithm, and direct child components and / or child parts contained in the arbitrary component are recorded to a first list; for each child component and / or child part, the next level child component and / or child part is selected one by one to be recorded to the first list by using a recursive manner, and when all the child components and / or child parts are traversed, the current first list is determined as the component parts list;
[0030] when the list type is a selected component list, a parts attribution list or a material list, a queue including a top layer component is created by using the breadth-first algorithm; in each round of traversal, an arbitrary component is randomly taken out from the queue and whether the arbitrary component meets a configuration condition is detected; when the arbitrary component meets the configuration condition, the arbitrary component is added to a second list, and direct child components and / or child parts of the arbitrary component are added to the queue; until the queue is empty, the current second list is determined as the selected component list or the parts attribution list or the material list.
[0031] According to the preferred embodiment of the present application, the hash table algorithm and the mapping table are used to process the traversed component entries in the traversal process, and an initial BOM corresponding to each list type is obtained, which includes:
[0032] For each zero component traversed, the zero component is matched in the mapping table to obtain feature information of the zero component;
[0033] The feature information is calculated according to the hash table algorithm to obtain a calculation result;
[0034] The calculation result is sequentially added to a feature field corresponding to the zero component in each list type to obtain an initial BOM corresponding to each list type.
[0035] According to the preferred embodiment of the present application, the updating of the initial BOM according to the additional entry attribute to obtain a target BOM comprises:
[0036] At least one feature information corresponding to the additional entry attribute is obtained;
[0037] Feature information of each zero component belonging to the same zero component type is accumulated to obtain an accumulated value corresponding to each feature information;
[0038] Each accumulated value is added to the initial BOM to obtain the target BOM.
[0039] According to the preferred embodiment of the present application, the output and display of the target BOM comprises:
[0040] The target BOM is converted into a table;
[0041] The table is converted into a visual table through visual programming software;
[0042] The visual table is displayed on a designated interface.
[0043] A BOM generation device based on 3D modeling, comprising:
[0044] An analysis unit is configured to analyze a steel structure BOM generation instruction based on a target 3D model to obtain at least one list type and a list storage location corresponding to each list type;
[0045] A splitting unit is configured to split the target 3D model to obtain target zero component entry information;
[0046] A mapping unit is configured to obtain pre-stored reference zero component information and one-to-one map the target zero component entry information and the reference zero component information to obtain a mapping table;
[0047] The traversal unit is configured to traverse the target component item information according to each list type by using a breadth-first algorithm and a depth-first algorithm, and to process the traversed component items according to a hash table algorithm and the mapping table during the traversal process, so as to obtain an initial BOM corresponding to each list type.
[0048] The updating unit is configured to obtain a configured additional item attribute, and to update the initial BOM according to the additional item attribute to obtain a target BOM.
[0049] The display unit is configured to display a preview image of the target BOM on the configuration interface in response to a preview instruction of the target BOM.
[0050] The output unit is configured to output and display the target BOM in response to an export instruction of the target BOM, and to store the target BOM to a corresponding list storage location.
[0051] A computer device includes:
[0052] A memory configured to store at least one instruction; and
[0053] A processor configured to execute the instruction stored in the memory to implement the BOM generation method based on 3D modeling.
[0054] A computer readable storage medium having at least one instruction stored therein, the at least one instruction being executed by a processor in a computer device to implement the BOM generation method based on 3D modeling.
[0055] As can be seen from the above technical solutions, the target 3D model can be split to obtain target component item information, and the target component item information can be one-to-one mapped with reference component information to obtain a mapping table, so that the synchronous storage of component information can be realized when 3D modeling is completed. According to each list type, the target component item information is traversed by using a breadth-first algorithm and a depth-first algorithm, and the traversed component items are processed according to a hash table algorithm and the mapping table during the traversal process, so as to obtain an initial BOM corresponding to each list type. The traversal method can be selected according to different list types, so that the BOM can be generated more efficiently and accurately. The initial BOM is updated according to an additional item attribute to obtain a target BOM, so as to further meet the customized demand. The preview image of the target BOM is displayed on the configuration interface, and the target BOM is output and displayed after receiving an export instruction, so as to further ensure the accuracy of the generated BOM. BRIEF DESCRIPTION OF DRAWINGS
[0056] Figure 1is a flow chart of a preferred embodiment of the BOM generation method based on 3D modeling of the present application.
[0057] Figure 2 is a function module diagram of a preferred embodiment of the BOM generation device based on 3D modeling of the present application.
[0058] Figure 3 is a structural schematic diagram of a computer device implementing a preferred embodiment of the BOM generation method based on 3D modeling of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in detail below in combination with the drawings and specific embodiments.
[0060] As shown in Figure 1 is a flow chart of a preferred embodiment of the BOM generation method based on 3D modeling of the present application. The order of steps in the flow chart can be changed according to different needs, and some steps can be omitted.
[0061] The BOM generation method based on 3D modeling is applied in one or more computer devices, and the computer device is a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions, the hardware of which includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0062] The computer device can be any kind of electronic product that can interact with the user, such as personal computers, tablet computers, smart phones, personal digital assistants (PDAs), game consoles, interactive Internet protocol televisions (IPTVs), smart wearable devices, etc.
[0063] The computer device can also include network devices and / or user devices. The network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing.
[0064] The server can be a standalone server, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0065] Among them, artificial intelligence (AI) is to use 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. Theory, method, technology and application system.
[0066] The basic technology of artificial intelligence generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. The software technology of artificial intelligence mainly includes computer vision technology, robot technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc. Several major directions.
[0067] The network in which the computer device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0068] S10, in response to a steel structure BOM (Billof Material, bill of material) generation instruction based on the target 3D model, analyzing the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type.
[0069] In this embodiment, the target 3D model can be a 3D model of a steel structure.
[0070] In this embodiment, the steel structure BOM generation instruction can be triggered through a user interaction interface. For example, when it is detected that a 3D model is uploaded on a specified user interaction interface and a specified button is clicked, it can be determined that the steel structure BOM generation instruction is received.
[0071] The user interaction interface can be an interaction interface of a BOM generation system. Before generating a BOM by using the system, three main steps of registering a command, configuring an interface and implementing a command are sequentially executed to realize configuration of a system environment. Specifically, first, the system is registered by using an APP module through a registration command and a business program. Then, the interface is configured to allow a user to visually design through a command bar and a command configuration workbench. Finally, the implementation command stage involves UI (User Interface) registration, entry registration and execution of a core program. The BOM file generation part includes software environment adaptation, data structure definition and output file operation. The software environment adaptation stage ensures compatibility with a dynamic link library, and a VS (Visual Studio) + QT + Cpp (C++) development environment is used. The data structure definition stage involves setting of zero construction Key and zero construction Value. The output file operation stage realizes reading and writing of a file through IOstream and Fstream, and finally realizes BOM output function through compiling a DLL and starting ZWBIM.
[0072] In the embodiment, the parsing the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type includes:
[0073] Connecting to a user interaction interface triggering the steel structure BOM generation instruction;
[0074] Obtaining a pre-maintained behavior detection list; wherein the behavior detection list includes the user interaction interface, a user behavior record log and a user behavior response module;
[0075] Based on the user behavior record log and the user behavior response module in the detection list, analyzing user behaviors generated on the user interaction interface, and determining the at least one list type and the list storage location corresponding to each list type according to the user behaviors.
[0076] The list type can include, but is not limited to, a component part list, a selected component list, a part belonging list and a material list.
[0077] For example, when detecting that a user selects an operation behavior record of "material list" from a drop-down list, it can be determined that "material list" is selected as a list type.
[0078] S11, splitting the target 3D model to obtain target zero component entry information.
[0079] In the embodiment, the splitting the target 3D model to obtain target zero component entry information includes:
[0080] Obtaining a preset number of parent components in the target 3D model; wherein the parent component comprises a sub-component and a part;
[0081] Identifying a welding type component and a non-welding type component in the parent component;
[0082] For the H-shaped component in the welding type component, the H-shaped component is split into one web plate and two flange plates;
[0083] For the plate type component in the welding type component, the plate type component is split into a plurality of small plates;
[0084] For the T-shaped component in the welding type component, the T-shaped component is split into one web plate and one flange plate;
[0085] For the arc-shaped beam in the welding type component, the arc-shaped beam is split into a main beam and a vice beam body, and is separated from the support;
[0086] For the pipeline in the welding type component, the pipeline is split into a main pipe and a branch pipe;
[0087] Integrating all the split zero components to generate the target zero component item information.
[0088] The preset number can be configured according to actual BOM generation requirements. For example, the preset number can also be obtained by analyzing the steel structure BOM generation instruction.
[0089] In the above embodiment, the 3D model can be split according to different zero component types.
[0090] S12, obtaining the pre-stored reference zero component information, and one-to-one mapping the target zero component item information with the reference zero component information to obtain a mapping table.
[0091] For example, each zero component item in the target zero component item information can be one-to-one corresponding to the view name, view origin, specification, material, weight, etc. in the reference zero component information, so that the corresponding storage of the zero component information can be realized after the 3D modeling is completed.
[0092] S13, according to each list type, using breadth-first algorithm and depth-first algorithm to traverse the target zero component item information, and processing the traversed zero component item according to the hash table algorithm and the mapping table in the traversal process, to obtain an initial BOM corresponding to each list type.
[0093] In this embodiment, the traversal of the target zero component item information according to each list type using breadth-first algorithm and depth-first algorithm comprises:
[0094] When the list type is a parts list for a component, the depth-first algorithm is used to randomly select an arbitrary component as a traversal starting point, and the direct subcomponents and / or subparts contained in the arbitrary component are recorded in a first list; for each subcomponent and / or subpart, the next-level subcomponents and / or subparts are selected one by one in a recursive manner and recorded in the first list, until all subcomponents and / or subparts are traversed, and the currently obtained first list is determined as the parts list for the component;
[0095] When the list type is a selected component list, a parts ownership list, or a material list, the breadth-first algorithm is used to create a queue including top-level components; in each round of traversal, any component is randomly taken out from the queue and it is checked whether the arbitrary component meets the configuration conditions; when the arbitrary component meets the configuration conditions, the arbitrary component is added to the second list, and the direct sub-components and / or sub-parts of the arbitrary component are added to the queue; until the queue is empty, the currently obtained second list is determined as the selected component list, the parts ownership list, or the material list.
[0096] For example, taking the parts list of a component as an example, the traversal process is as follows:
[0097] 1. Select a component as the starting point.
[0098] 2. Access the component and record its direct child parts in the list.
[0099] 3. For each subpart, if it also contains the next level of subparts, recursively traverse its depth and repeat steps 2 and 3 until all subparts are visited.
[0100] 4. After traversing a component and all its sub-parts, continue to process the next component until all components that need to be processed are traversed.
[0101] For another example: Taking the selected component list as an example, the traversal process is as follows:
[0102] 1. Create a queue and add the top-level component of the model to the queue.
[0103] 2. Take a component from the queue, check if it meets the conditions, and add it to the list if it does.
[0104] 3. Add all direct subcomponents of this component to the queue.
[0105] 4. Repeat steps 2 and 3 until the queue is empty, that is, all components have been checked.
[0106] Through the above embodiments, more suitable traversal methods can be selected according to different list types to perform traversal, which can improve traversal efficiency while ensuring accuracy.
[0107] In the embodiment, the processing of the traversed zero-component entries according to the hash table algorithm and the mapping table during the traversal process obtains an initial BOM corresponding to each list type, which includes:
[0108] For each zero-component traversed, the zero-component is matched in the mapping table to obtain feature information of the zero-component;
[0109] The feature information is calculated according to the hash table algorithm to obtain a calculation result;
[0110] The calculation result is sequentially added to a feature field corresponding to the zero-component in each list type to obtain an initial BOM corresponding to each list type.
[0111] For example, the initial BOM can include component number, part number, part specification, quantity, cross-sectional profile, material, length, weight, process note, and other feature information.
[0112] The embodiment classifies and integrates all zero-components belonging to the same parent component in a systematic manner, and organizes these zero-components under the same product node, ensuring the relevance and logic between parts, and facilitating efficient management and traceability in subsequent processing, assembly, and quality control processes.
[0113] The embodiment realizes a substantial reduction in labor demand by comprehensively traversing, analyzing, and accurately annotating components in the 3D model and automatically generating a BOM covering various entries, thereby greatly improving work efficiency. In addition, the embodiment successfully builds a bridge between the 3D model and the BOM, effectively promoting the enterprise informatization construction to a deeper level.
[0114] S14, obtaining configured additional entry attributes, and updating the initial BOM according to the additional entry attributes to obtain a target BOM.
[0115] In the embodiment, the updating of the initial BOM according to the additional entry attributes to obtain a target BOM includes:
[0116] Obtaining at least one feature information corresponding to the additional entry attributes;
[0117] Adding up the feature information of each zero-component belonging to the same zero-component type to obtain an accumulated value corresponding to each feature information;
[0118] Add the corresponding cumulative value to the initial BOM to obtain the target BOM.
[0119] For example, when the total weight or total area is required as an additional item attribute, the weight or area of each component belonging to the same component type can be added, and the calculated total weight or total area can be added to the initial BOM to obtain the target BOM.
[0120] Of course, other information such as generation time can also be added.
[0121] Through the above embodiment, information expansion can be performed on the basis of the reference BOM to meet the customization requirements.
[0122] S15, in response to a preview instruction of the target BOM, displaying a preview image of the target BOM on the configuration interface.
[0123] In this embodiment, the user can preview the generated BOM to determine whether the generated BOM meets the requirements, thereby further ensuring the accuracy of the generated BOM.
[0124] S16, in response to an export instruction of the target BOM, outputting and displaying the target BOM and storing the target BOM to a corresponding list storage location.
[0125] In this embodiment, when the user triggers the export instruction of the target BOM based on the preview effect, the BOM can be finally output.
[0126] In this embodiment, the output and display of the target BOM include:
[0127] Converting the target BOM into a table;
[0128] Converting the table into a visual table through visual programming software;
[0129] Displaying the visual table on a designated interface.
[0130] For example, the target BOM can be first converted into an Excel table, and then the Excel table can be converted into a visual table through visual programming software. The output file operation stage can realize file reading and writing through IOstream and Fstream, and finally realize BOM output through compiled DLL and started ZWBIM.
[0131] Through the above embodiment, the BOM can be converted into a more clear visual table, thereby improving the user experience.
[0132] The present embodiment can be applied to various engineering design and manufacturing scenarios.
[0133] From the above technical solutions can be seen, the application can split the target 3D model to obtain target component item information, and one-to-one map the target component item information with the reference component information to obtain a mapping table, so that the synchronization storage of component information can be realized when the 3D modeling is completed; according to each list type, the breadth-first algorithm and the depth-first algorithm are used to traverse the target component item information, and the component items traversed are processed according to the hash table algorithm and the mapping table in the traversal process, so that the initial BOM corresponding to each list type is obtained, the traversal mode can be selected according to different list types, so that the BOM can be generated more efficiently and accurately; the initial BOM is updated according to the additional item attribute to obtain the target BOM, further meeting the customized demand; the preview image of the target BOM is displayed on the configuration interface, and the target BOM is output and displayed after receiving the export instruction, so that the accuracy of the generated BOM is further ensured.
[0134] As Figure 2 shown is a functional module diagram of a preferred embodiment of a BOM generation device based on 3D modeling of the application. The BOM generation device based on 3D modeling 11 comprises an analysis unit 110, a splitting unit 111, a mapping unit 112, a traversal unit 113, an updating unit 114, a display unit 115, and an output unit 116. The module / unit referred to by the application refers to a series of computer program segments that can be executed by a processor and can complete a fixed function, which are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in the subsequent embodiments.
[0135] The analysis unit 110 is configured to analyze at least one list type and a list storage location corresponding to each list type in response to a steel structure BOM generation instruction based on a target 3D model.
[0136] The splitting unit 111 is configured to split the target 3D model to obtain target component item information.
[0137] The mapping unit 112 is configured to obtain pre-stored reference component information, and one-to-one map the target component item information with the reference component information to obtain a mapping table.
[0138] The traversal unit 113 is configured to traverse the target component item information according to each list type by using the breadth-first algorithm and the depth-first algorithm, and process the component items traversed according to the hash table algorithm and the mapping table in the traversal process, to obtain an initial BOM corresponding to each list type.
[0139] The updating unit 114 is configured to acquire an additional entry attribute configured, and update the initial BOM according to the additional entry attribute to obtain a target BOM.
[0140] The display unit 115 is configured to display a preview image of the target BOM on a configuration interface in response to a preview instruction of the target BOM.
[0141] The output unit 116 is configured to output and display the target BOM in response to an export instruction of the target BOM, and store the target BOM to a corresponding list storage location.
[0142] From the above technical solutions, it can be seen that the target 3D model can be split to obtain target component entry information, and the target component entry information is one-to-one mapped with reference component information to obtain a mapping table, so that the synchronous storage of component information can be realized when 3D modeling is completed; according to each list type, the target component entry information is traversed by using a breadth-first algorithm and a depth-first algorithm, and the component entries traversed in the traversal process are processed according to a hash table algorithm and the mapping table, to obtain an initial BOM corresponding to each list type, so that the traversal mode can be selected for different list types, thereby more efficiently and accurately generating a BOM; the initial BOM is updated according to an additional entry attribute to obtain a target BOM, further meeting the customized demand; a preview image of the target BOM is displayed on a configuration interface, and the target BOM is output and displayed after receiving an export instruction, so as to further ensure the accuracy of the generated BOM.
[0143] As Figure 3 shown is a structural schematic diagram of a computer device of a preferred embodiment of the BOM generation method based on 3D modeling.
[0144] The computer device 1 can include a memory 12, a processor 13 and a bus (the arrow in the figure is the bus), and can further include a computer program stored in the memory 12 and executable on the processor 13, such as a BOM generation program based on 3D modeling.
[0145] Those skilled in the art can understand that the schematic diagram is only an example of the computer device 1, and does not constitute a limitation on the computer device 1, the computer device 1 can be a bus type structure or a star type structure, and the computer device 1 can further include more or less other hardware or software, or different component arrangements, for example, the computer device 1 can further include an input / output device, a network access device, etc.
[0146] It should be noted that the computer device 1 is only an example, and other existing or future electronic products can also be applicable to the present application and should be included in the protection scope of the present application.
[0147] The memory 12 includes at least one type of readable storage medium, such as a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 12 can be an internal storage unit of the computer device 1 in some embodiments, such as a mobile hard disk of the computer device 1. The memory 12 can also be an external storage device of the computer device 1 in other embodiments, such as a plug-in mobile hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 12 can include both an internal storage unit and an external storage device of the computer device 1. The memory 12 can be used to store application software and various data installed in the computer device 1, such as the code of the BOM generation program based on 3D modeling, and can also be used to temporarily store data that has been output or will be output.
[0148] The processor 13 can be composed of an integrated circuit in some embodiments, such as a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including one or more combinations of a central processing unit (CPU), a microprocessor, a digital processing chip, a graphics processor, and various control chips, etc. The processor 13 is a control unit of the computer device 1, which connects various components of the computer device 1 through various interfaces and lines, executes programs or modules stored in the memory 12 (e.g., the BOM generation program based on 3D modeling, etc.), and calls data stored in the memory 12 to perform various functions and process data of the computer device 1.
[0149] The processor 13 executes an operating system and various application programs installed in the computer device 1. The processor 13 executes the application programs to implement the steps in each of the above BOM generation methods based on 3D modeling, such as Figure 1 the steps shown in the above embodiments.
[0150] By way of example, the computer program can be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units can be a series of computer-readable instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program can be divided into an analysis unit 110, a splitting unit 111, a mapping unit 112, a traversal unit 113, an updating unit 114, a display unit 115, and an output unit 116.
[0151] The integrated units implemented in the form of software functional modules described above can be stored in a computer-readable storage medium. The software functional modules described above stored in a storage medium include a plurality of instructions for causing a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute part of the BOM generation method based on 3D modeling described in various embodiments of the present application.
[0152] The modules / units integrated in the computer device 1, if implemented in the form of software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on such understanding, the present application can also be implemented by instructing related hardware devices to complete all or part of the processes of the above-mentioned embodiments by a computer program, which can be stored in a computer-readable storage medium and executed by a processor.
[0153] The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms. The computer-readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.
[0154] Further, the computer-readable storage medium can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc.; and the data storage area can store data created according to the use of the blockchain node, etc.
[0155] The blockchain referred to in the present application is a new application mode of distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm and other computer technologies. Blockchain, in essence, is a decentralized database, which is a series of data blocks associated using cryptographic methods, each data block contains a batch of network transaction information, used to verify the validity of the information (anti-fake) and generate the next block. The blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer, etc.
[0156] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one straight line is used in Figure 3 , but it does not mean that there is only one bus or one type of bus. The bus is arranged to realize the connection and communication between the memory 12, the at least one processor 13, etc.
[0157] Although not shown, the computer device 1 can also include a power supply (such as a battery) for powering the various components. Preferably, the power supply can be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charge management, discharge management, and power consumption management. The power supply can also include one or more direct current or alternating current power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 1 can also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described here.
[0158] Further, the computer device 1 can also include a network interface, which can optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.
[0159] Optionally, the computer device 1 can further comprise a user interface, which can be a display, an input unit such as a keyboard, and optionally a standard wired interface, a wireless interface. Optionally, in some embodiments, the display can be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, etc. The display can also be appropriately referred to as a display screen or a display unit, for displaying information processed in the computer device 1 and for displaying a visualized user interface.
[0160] It should be understood that the embodiments are only for illustration and do not limit the scope of the patent application.
[0161] It can be understood by those skilled in the art that, Figure 3 The structure shown does not constitute a limitation on the computer device 1, which can include fewer or more components than shown, or combine certain components, or different component arrangements.
[0162] In combination Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement a 3D modeling-based BOM generation method, and the processor 13 can execute the plurality of instructions to implement:
[0163] In response to a steel structure BOM generation instruction based on a target 3D model, parsing the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type;
[0164] Splitting the target 3D model to obtain target component item information;
[0165] Obtaining pre-stored reference component information, and one-to-one mapping the target component item information with the reference component information to obtain a mapping table;
[0166] According to each list type, traversing the target component item information using a breadth-first algorithm and a depth-first algorithm, and processing the traversed component item according to a hash table algorithm and the mapping table during the traversal process to obtain an initial BOM corresponding to each list type;
[0167] Obtaining configured additional item attributes, and updating the initial BOM according to the additional item attributes to obtain a target BOM;
[0168] In response to a preview instruction of the target BOM, displaying a preview of the target BOM on a configuration interface;
[0169] In response to the export instruction of the target BOM, the target BOM is output and displayed, and the target BOM is stored to a corresponding list storage location.
[0170] Specifically, the processor 13 can refer to the specific implementation method of the above instruction Figure 1 The description of the related steps in the corresponding embodiment will not be repeated here.
[0171] It should be noted that the data involved in the case are all legally obtained. The non-company software tools or components appearing in the embodiments of the application are only examples for introduction and do not represent actual use.
[0172] In several embodiments provided by the present application, it should be understood that the disclosed system, device and method can be implemented by other manners. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner.
[0173] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor 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, etc. The present application 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 application can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected by a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0174] The modules described as separate components can or can not be physically separated, and the components shown as modules can or can not be physical units, i.e. they can be located in one place or distributed to multiple network units. Some or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs.
[0175] In addition, the functional modules in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional modules.
[0176] It is apparent to a person skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that it can be implemented in other concrete forms without departing from the spirit or essential characteristics of the present application.
[0177] Therefore, the embodiments should be considered in all respects as illustrative and not restrictive, the scope of the application being defined by the appended claims rather than the above description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. No reference signs in the claims shall be construed as limiting the claim being referred to.
[0178] Furthermore, it is clear that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Multiple units or devices also can be presented by a single unit or device, for example by means of software or hardware. The use of relative terms like "first", "second" and the like is used for naming without necessarily implying any specific order.
[0179] Finally, it should be noted that the above-mentioned embodiments illustrate rather than limit the application, since the scope of the application is defined by the appended claims.
Claims
1. A BOM generation method based on 3D modeling, characterized in that: The BOM generation method based on 3D modeling includes: In response to a steel structure BOM generation instruction based on the target 3D model, parsing the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type; Splitting the target 3D model to obtain target component item information; Acquire pre-stored reference component information, and perform one-to-one mapping between the target component entry information and the reference component information to obtain a mapping table; According to each bill type, the target component item information is traversed using a breadth-first algorithm and a depth-first algorithm, and the traversed component items are processed according to a hash table algorithm and the mapping table during the traversal process to obtain an initial BOM corresponding to each bill type; Obtaining the configured additional item attributes, and updating the initial BOM according to the additional item attributes to obtain the target BOM; In response to the preview instruction of the target BOM, displaying a preview image of the target BOM on the configuration interface; In response to the export instruction for the target BOM, the target BOM is output and displayed, and the target BOM is stored in a corresponding list storage location.
2. The BOM generation method based on 3D modeling according to claim 1, characterized in that: The step of parsing the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type includes: Connected to a user interaction interface that triggers the steel structure BOM generation instruction; Obtaining a pre-maintained behavior detection list; wherein the behavior detection list includes the user interaction interface, the user behavior record log, and the user behavior response module; Based on the user behavior record log in the detection list, the user behavior response module analyzes the user behavior generated on the user interaction interface, and determines the at least one list type and the list storage location corresponding to each list type according to the user behavior.
3. The BOM generation method based on 3D modeling according to claim 1, characterized in that: The target 3D model is split to obtain target component item information including: Obtaining a preset number of parent components in the target 3D model; wherein the parent components include child components and parts; Identifying welded components and non-welded components in the parent component; For the H-shaped member among the welded members, the H-shaped member is split into a web plate and two flange plates; For the plate-type component in the welded component, split the plate-type component into multiple small plates; For the T-shaped member in the welded member, the T-shaped member is split into a web plate and a flange plate; For the arc-shaped beam in the welded component, the arc-shaped beam is split into a main beam and a secondary beam body, and separated from the support; For the pipes in the welded component, the pipes are divided into main pipes and branch pipes; All the components obtained after the splitting are integrated to generate the target component item information.
4. The BOM generation method based on 3D modeling according to claim 1, characterized in that: The traversal of the target component item information using a breadth-first algorithm and a depth-first algorithm according to each list type includes: When the list type is a parts list for a component, the depth-first algorithm is used to randomly select an arbitrary component as a traversal starting point, and the direct subcomponents and / or subparts contained in the arbitrary component are recorded in a first list; for each subcomponent and / or subpart, the next-level subcomponents and / or subparts are selected one by one in a recursive manner and recorded in the first list, until all subcomponents and / or subparts are traversed, and the currently obtained first list is determined as the parts list for the component; When the list type is a selected component list, a parts ownership list, or a material list, the breadth-first algorithm is used to create a queue including top-level components; in each round of traversal, any component is randomly taken out from the queue and it is checked whether the arbitrary component meets the configuration conditions; when the arbitrary component meets the configuration conditions, the arbitrary component is added to the second list, and the direct sub-components and / or sub-parts of the arbitrary component are added to the queue; until the queue is empty, the currently obtained second list is determined as the selected component list, the parts ownership list, or the material list.
5. The BOM generation method based on 3D modeling according to claim 1, characterized in that: During the traversal process, the traversed component entries are processed according to the hash table algorithm and the mapping table to obtain the initial BOM corresponding to each bill type, including: For each component traversed, matching is performed in the mapping table using the component to obtain feature information of the component; Calculating the characteristic information according to the hash table algorithm to obtain a calculation result; The calculation results are sequentially added to the characteristic fields corresponding to the parts in each list type to obtain the initial BOM corresponding to each list type.
6. The BOM generation method based on 3D modeling according to claim 5, characterized in that: The updating of the initial BOM according to the additional item attributes to obtain the target BOM includes: Acquire at least one feature information corresponding to the additional item attribute; Accumulate the characteristic information of each component belonging to the same component type to obtain an accumulated value corresponding to each characteristic information; Each accumulated value is added to the initial BOM to obtain the target BOM.
7. The BOM generation method based on 3D modeling according to claim 1, characterized in that: The outputting and displaying the target BOM includes: Convert the target BOM into a table; Converting the table into a visual table using visual programming software; The visualization table is displayed on a specified interface.
8. A BOM generation device based on 3D modeling, characterized in that: The BOM generation device based on 3D modeling includes: a parsing unit, configured to, in response to a steel structure BOM generation instruction based on a target 3D model, parse the steel structure BOM generation instruction to obtain at least one list type and a list storage location corresponding to each list type; A splitting unit, configured to split the target 3D model to obtain target component item information; A mapping unit, configured to obtain pre-stored reference component information, and perform one-to-one mapping between the target component entry information and the reference component information to obtain a mapping table; a traversal unit, configured to traverse the target component item information according to each bill type using a breadth-first algorithm and a depth-first algorithm, and process the traversed component items according to a hash table algorithm and the mapping table during the traversal process to obtain an initial BOM corresponding to each bill type; An updating unit, configured to obtain additional item attributes of the configuration, and update the initial BOM according to the additional item attributes to obtain a target BOM; A display unit, configured to display a preview image of the target BOM on a configuration interface in response to a preview instruction of the target BOM; The output unit is used to output and display the target BOM in response to the export instruction of the target BOM, and store the target BOM in a corresponding list storage location.
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 BOM generation method based on 3D modeling as described in 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 BOM generation method based on 3D modeling according to any one of claims 1 to 7.