Method and system for generating three-dimensional model based on planar graph and medium

By obtaining and processing legend table data in two-dimensional drawings and generating target legend tables and block references, the problem of low three-dimensional modeling efficiency in the existing technology is solved, and fast and accurate three-dimensional model generation is achieved, which improves engineering efficiency and quality.

CN119808221AActive Publication Date: 2025-04-11PINMING TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411791639.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-11
Estimated Expiration
2044-12-06

AI Technical Summary

Technical Problem

In the prior art, three-dimensional modeling based on installation drawings has problems of low efficiency and is prone to human errors, which affects the progress and quality of the project.

Method used

By obtaining the legend table data in the two-dimensional drawing, processing missing items, generating the target legend table, and obtaining the plan diagram consistent with the target figure in the target legend table data in the plan diagram, determining its attribute information, generating block references based on this information, and finally generating a three-dimensional model.

Benefits of technology

It realizes the rapid generation of three-dimensional models, reduces manual inspections, improves calculation efficiency, solves the problem of low efficiency, and improves project progress and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119808221A_ABST
    Figure CN119808221A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for generating a three-dimensional model based on a planar graph and a medium, and the method comprises the steps: obtaining legend table data in a two-dimensional drawing; according to a preset rule, missing items in the legend table data are processed, and the processed legend table data are obtained. Analyzing the processed legend table data to generate a target legend table; wherein the target legend table comprises graphs and attribute information corresponding to the graphs. And obtaining a planar graph consistent with a target graph in the target legend table data from the planar graph, and determining attribute information corresponding to the planar graph in the target legend table data based on the planar graph. And generating block references based on the attribute information corresponding to the planar graph, and generating a three-dimensional model based on the block references. According to judgment, classification and batch setting of the same graph, the three-dimensional model is quickly generated, and the equipment needing to be calculated in the whole plane graph is classified, so that the problem of low efficiency of performing three-dimensional modeling according to the installation drawing in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of building information modeling, and in particular to a method, system and medium for generating a three-dimensional model based on a plan view. Background Art

[0002] During the construction process, installation drawings are important documents to guide on-site construction, usually consisting of two parts: a legend table and a floor plan. The legend table lists CAD legends of different graphic styles and their corresponding names, attributes, units, installation heights, and other information, while the floor plan shows the specific layout and quantity of the equipment.

[0003] The existing traditional method is to manually compare the legend table and the plane diagram, identify and count the equipment information one by one, and then manually create a 3D model. This process is not only time-consuming and laborious, but also prone to human errors, affecting the progress and quality of the project. Therefore, the existing technology of 3D modeling based on installation drawings has the problem of low efficiency. Summary of the invention

[0004] The embodiments of the present application provide a method, system and medium for generating a three-dimensional model based on a plan view, so as to at least solve the problem of low efficiency in three-dimensional modeling based on installation drawings in the related art.

[0005] In a first aspect, an embodiment of the present application provides a method for generating a three-dimensional model based on a plan view, the method comprising:

[0006] Get the legend table data in the 2D drawing;

[0007] According to preset rules, processing missing items in the legend table data to obtain the processed legend table data;

[0008] The legend table data after parsing is generated into a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics;

[0009] Acquire a plan view graphic that is consistent with a target graphic in the target legend table data in the plan view, and determine each attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic;

[0010] Based on each attribute information corresponding to the plan view graphics, a block reference is generated, and based on the block reference, a three-dimensional model is generated.

[0011] In one embodiment, the step of obtaining legend table data in a two-dimensional drawing includes:

[0012] Receive 2D drawings imported into BIM 3D quantity calculation software;

[0013] According to the call function command, when receiving that the user selects a legend table in the two-dimensional drawing, extract the selected legend table data.

[0014] In one embodiment, generating a target legend table from the parsed legend table data includes:

[0015] Match the header text of the legend table according to the keyword matching rule, and parse out the target legend table, where the target legend table includes legend, name, specification column, unit, and installation height.

[0016] In one embodiment, matching the header text of the legend table according to the keyword matching rule and parsing out the target legend table includes:

[0017] When the header text in the legend table includes "example", "symbol", fill the corresponding column graphics of the legend table into the target legend table;

[0018] When the header text in the legend table includes "name", fill the corresponding column content of the legend table into the target legend table;

[0019] When the header text in the legend table includes "type" and "specification", fill the corresponding column content of the legend table into the target legend table;

[0020] When the header text in the legend table includes "unit", fill the corresponding column content of the legend table into the target legend table;

[0021] When the header text in the legend table includes "installation" and "height", fill the numbers in the text of this column of the legend table into the data of the target legend table.

[0022] In one embodiment, processing the missing items in the legend table data according to a preset rule to obtain the processed legend table data includes:

[0023] If a certain row is missing in the legend column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table;

[0024] If a certain row is missing in the name column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table;

[0025] If a certain row is missing in the specification column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table;

[0026] If a certain row is missing in the unit column of the figure list data, automatically fill the corresponding row data according to the device type;

[0027] If a row in the height column of the legend table data is missing, the missing row data of the legend table is automatically filled in according to the default height of the device.

[0028] In one embodiment, the step of acquiring a plan view graphic that is consistent with a target graphic in the target legend table data in the plan view includes:

[0029] If the target graphic feature type is a block reference, a plan view graphic consistent with the target graphic in the plan view is obtained by matching the block name;

[0030] If the target graphic feature type is a combined device, determine the entity type and the number of entity types of the target graphic; filter out entities that meet the entity type and the number of entity types in the plan view; combine the filtered entities to obtain a plan view graphic that is consistent with the target graphic.

[0031] In one embodiment, combining the screened entities to obtain a plan view graphic consistent with the target graphic includes:

[0032] Determine whether the distance between the two entities after screening exceeds the maximum frame length of the target graphic, and if not, classify the two entities into the same group;

[0033] Among the entities of the same group, any one of the entities is selected as a reference and combined with the other entities. If the entity type and the number of entity types of the combination are consistent with those of the target figure, and the error between the position of the combination and the position of the target figure is within a preset range, then the combination is treated as a plane figure consistent with the target figure.

[0034] In one embodiment, after generating the 3D model based on the block reference, the method further comprises:

[0035] Based on the three-dimensional model, the quantity of each equipment type and detailed information of the three-dimensional model are counted to generate an engineering quantity report.

[0036] In a second aspect, an embodiment of the present application provides a system for generating a three-dimensional model based on a plane map, the system comprising a legend table data acquisition module, a missing item processing module, a target legend table module, a plane map graphic corresponding attribute information determination module and a three-dimensional model generation module; wherein,

[0037] The legend table data acquisition module is used to acquire the legend table data in the two-dimensional drawing;

[0038] The missing item processing module is used to process the missing items in the legend table data according to preset rules and obtain the processed legend table data;

[0039] The target legend table module parses the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics;

[0040] The module for determining the attribute information corresponding to the plan view graphic is used to obtain a plan view graphic that is consistent with the target graphic in the target legend table data in the plan view, and determine each attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic;

[0041] The three-dimensional model generation module is used to generate a block reference based on various attribute information corresponding to the plan view graphics, and generate a three-dimensional model based on the block reference.

[0042] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a system for generating a three-dimensional model based on a plan view as described in the first aspect above is implemented.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a system for generating a three-dimensional model based on a plan view as described in the first aspect above.

[0044] The method, system and medium for generating a three-dimensional model based on a plan view provided by the embodiments of the present application have at least the following technical effects.

[0045] By obtaining the legend table data in the two-dimensional drawing. According to the preset rules, the missing items in the legend table data are processed to obtain the processed legend table data. The processed legend table data is parsed to generate a target legend table; wherein the target legend table includes graphics and various attribute information corresponding to the graphics. In the plan view, a plan view graphic that is consistent with the target graphic in the target legend table data is obtained, and based on the plan view graphic, various attribute information corresponding to the plan view graphic in the target legend table data is determined. Based on the various attribute information corresponding to the plan view graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference. According to the same graphic judgment, classification, and batch setting, a three-dimensional model is quickly generated, and the equipment that needs to be calculated in the entire plan view is classified and the quantity is realized. All graphic measurement can effectively reduce manual inspection, improve the efficiency of calculation, and solve the problem of low efficiency in three-dimensional modeling based on installation drawings in related technologies.

[0046] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0048] Figure 1 It is a flow chart that generates a three-dimensional model based on a plan view;

[0049] Figure 2 is a flowchart of step S104 according to an exemplary embodiment;

[0050] Figure 3 is a schematic diagram showing that a target graphic feature type is a combination device according to an exemplary embodiment;

[0051] Figure 4 is a schematic diagram of a three-dimensional model according to an exemplary embodiment;

[0052] Figure 5 is a block diagram of a system structure for generating a three-dimensional model based on a plan view according to an exemplary embodiment;

[0053] Figure 6 It is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0055] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0056] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0057] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the positional relationship of the associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0058] In a first aspect, an embodiment of the present application provides a method for generating a three-dimensional model based on a plan view, which is applied to a stator winding end of a steam turbine generator. Figure 1 It is a flow chart that generates a three-dimensional model based on a plane diagram, such as Figure 1 As shown, a method for generating a three-dimensional model based on a plane diagram includes:

[0059] Step S101, obtaining legend table data in a two-dimensional drawing.

[0060] Step S102: Process the missing items in the legend table data according to preset rules to obtain the processed legend table data.

[0061] Step S103, parse the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics.

[0062] Step S104: Acquire a plan view graphic that is consistent with the target graphic in the target legend table data in the plan view, and determine each attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic.

[0063] Step S105: Generate a block reference based on the attribute information corresponding to the plan view graphics, and generate a three-dimensional model based on the block reference.

[0064] In summary, the embodiment of the present application provides a method for generating a three-dimensional model based on a plan view, by obtaining legend table data in a two-dimensional drawing. According to preset rules, the missing items in the legend table data are processed to obtain the processed legend table data. The processed legend table data is parsed to generate a target legend table; wherein the target legend table includes graphics and various attribute information corresponding to the graphics. A plan view graphic consistent with the target graphic in the target legend table data is obtained in the plan view, and based on the plan view graphic, various attribute information corresponding to the plan view graphic in the target legend table data is determined. Based on the various attribute information corresponding to the plan view graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference. According to the same graphic judgment, classification, and batch setting, a three-dimensional model is quickly generated, and the equipment that needs to be calculated in the entire plan view is classified and the quantity is realized. All graphic measurement can effectively reduce manual inspection, improve the efficiency of calculation, and solve the problem of low efficiency in three-dimensional modeling based on installation drawings in related technologies.

[0065] In one embodiment, step S101, obtaining legend table data in a two-dimensional drawing, specifically includes:

[0066] Receive 2D drawings imported into BIM 3D quantity calculation software;

[0067] According to the calling function command, in response to receiving a user selecting a legend table in a two-dimensional drawing, the selected legend table data is extracted.

[0068] Optionally, import the two-dimensional drawing into the BIM three-dimensional quantity calculation software, call the function command, the software command bar prompts, the left key is used to select the legend table or the right key is used to confirm, and the user selects the legend table in the two-dimensional drawing. In response to receiving the user's selection of the legend table in the two-dimensional drawing, the selected legend table data is extracted. After the customer selects, the software automatically pops up a pop-up box for generating the target legend table, which contains 6 columns of data: legend, name, equipment type, specification, unit, and installation height. These data need to be generated through the legend table and internal rule matching.

[0069] Step S101 ensures that the extracted data is the part that the user actually needs by selecting the legend table in the two-dimensional drawing, avoiding possible misidentification or omission in the automation process. By calling the function command, the software automatically extracts the legend table data and generates the "target legend table", reducing the workload of manual input and improving work efficiency.

[0070] In one embodiment, step S102, according to a preset rule, processes the missing items in the legend table data to obtain the processed legend table data. Specifically, it includes:

[0071] If a row is missing in the legend column of the graph list data, the missing row data in the graph list data will not be parsed into the target legend table;

[0072] If a row is missing in the name column of the graph list data, the missing row data in the graph list data will not be parsed into the target legend table;

[0073] If a row is missing in the specification column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table;

[0074] If a row is missing in the unit column of the graph list data, the corresponding row data is automatically filled in according to the device type;

[0075] If a row is missing in the height column of the legend table data, the missing row data of the legend table is automatically filled according to the device default height.

[0076] Optionally, if a row is missing in the legend column of the graph list data, the missing row data in the graph list data will not be parsed into the target legend table.

[0077] If a row is missing in the name column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table. If a row is missing in the specification column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table. If a row is missing in the unit column of the figure list data, the corresponding row data will be automatically filled in according to the device type. For example, lamps, switches, and sockets are filled in as pieces, and distribution boxes are filled in as units. If a row is missing in the height column of the figure list data, the missing row data in the legend table will be automatically filled in according to the default height of the device. In addition, users can also manually modify the data in each column in the target legend table.

[0078] Step S102 processes missing items in the legend table data by using preset rules to ensure the integrity of the target legend table. For missing items in key columns (such as legend, name, and specification), they are directly excluded and not parsed, avoiding incorrect parsing due to missing data. For missing items in the unit column and height column, they are automatically filled according to the device type and default height to ensure data integrity and consistency.

[0079] In one embodiment, step S103, the processed legend table data is parsed to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics. Specifically, it includes:

[0080] Match the header text of the legend table according to the keyword matching rule, and parse out the target legend table, where the target legend table includes legend, name, specification column, unit, and installation height. Matching the header text of the legend table according to the keyword matching rule, the parsed target legend table includes:

[0081] When the header text in the legend table includes "example", "symbol", and "sign", fill the corresponding column graphics of the legend table into the target legend table;

[0082] When the header text in the legend table includes "name" and "title", fill the corresponding column content of the legend table into the target legend table;

[0083] When the header text in the legend table includes "type" and "specification", fill the corresponding column content of the legend table into the target legend table;

[0084] When the header text in the legend table includes "unit", fill the corresponding column content of the legend table into the target legend table;

[0085] When the header text in the legend table includes "installation", "mounting", and "height", fill the numbers in the text of this column of the legend table into the data of the "Chu Shi Biao";

[0086] Optionally, match the header text of the legend table according to the keyword matching rule, and 5 columns of data representing data types can be parsed out, including legend, name, specification column, unit, and installation height.

[0087] The keyword matching rules include:

[0088] Legend: If the header text contains the keywords "example", "symbol", and "sign", then fill the corresponding column graphics of the legend table into the "target legend table";

[0089] Name: If the header text contains the keywords "name" and "title", then fill the corresponding column content of the legend table into the "target legend table";

[0090] Specification column: If the header text contains the keywords "type" and "specification", then fill the corresponding column content of the legend table into the "target legend table";

[0091] Unit: If the header text contains the keyword "unit", then fill the corresponding column content of the legend table into the "target legend table";

[0092] Installation height: If the header text contains the keywords "installation", "mounting", and "height", then fill the numbers in the text of this column of the legend table into the "target legend table".

[0093] After that, the equipment type column identifies the corresponding component type by matching keywords for each row of data in the name column. For example, in the electrical specialty, if the equipment type is a lamp, the name should contain: lamp. If the equipment type is a switch, the name should contain: switch. If the equipment type is a socket, the name should contain: socket. If the equipment type is a distribution box, the name should contain: box, cabinet.

[0094] In step S103, through the keyword matching rule, the header text in the legend table can be accurately identified, and the corresponding data can be filled into the target legend table. This keyword-based matching method reduces manual intervention, not only improving work efficiency but also ensuring the accuracy of data parsing. For example, the header text in the "Legend" column contains multiple keywords such as "example", "symbol", and "mark". This combination of multiple keywords further improves the matching accuracy and avoids misidentification caused by a single keyword.

[0095] Figure 2 is a schematic flowchart of step S104 shown according to an exemplary embodiment, as Figure 2 shown, in step S104, obtain the planar graph in the plan view that is consistent with the target graph in the target legend table data, and based on the planar graph, determine each attribute information corresponding to the planar graph in the target legend table data. Specifically, it includes the following steps:

[0096] In step S1041, when the target graph feature type is a block reference, obtain the planar graph in the plan view that is consistent with the target graph through block name matching.

[0097] Optionally, when the target graph feature type is a block reference, then through block name matching, if the graphic block name on the plan view is the same as it, obtain the planar graph in the plan view that is consistent with the target graph and corresponding attributes such as the name.

[0098] In step S1042, when the target graph feature type is a combined device, judge the entity type and the number of entity types of the target graph; screen out the entities that meet the entity type and the number of entity types in the plan view; combine the screened entities to obtain the planar graph in the plan view that is consistent with the target graph.

[0099] Combining the screened entities to obtain the planar graph in the plan view that is consistent with the target graph includes: judging whether the distance between the two screened entities exceeds the maximum value of the frame length of the target graph. If it does not exceed, classify the two entities into the same group; in the entities of the same group, arbitrarily select one entity as the reference and combine it with other entities. If the combined entity is consistent with the entity type and the number of entity types of the target graph, and the error between the position of the combined entity and the position of the target graph is within the preset range, then the combined entity is used as the planar graph in the plan view that is consistent with the target graph.

[0100] Optionally, Figure 3 is a schematic diagram of the target graph feature type being a combined device shown according to an exemplary embodiment, as Figure 3As shown, if the target graphic feature type is a combined device (not a block reference), the entity type and the corresponding type quantity of the target graphic are determined. (Filter condition 1) If the entity type is finally exploded into a straight line, the line length will be determined, the circle will be determined by the radius, the arc will be determined by the angle and radius, and the text and attribute definition will be determined by the text content. (Filter condition 2)

[0101] In the plane map, select entities that meet the conditions according to the screening conditions 1 and 2. The plane is composed of multiple entities, so the entities selected in the plane map need to be combined next. The initial grouping is to classify entities into different groups based on the maximum length of the outer frame (minimum outer frame) of the target figure when the distance between the entities exceeds the target figure. Otherwise, they are classified into the same group.

[0102] For entities belonging to the same group, one entity is randomly selected as a benchmark and combined with other entities. If the entity type and quantity of the combination are consistent with the target figure, and the relative position between the entities is also within the preset range with the position of the target figure, then the combination is a monomer figure consistent with the target figure. In this way, the monomer plane figures consistent with each target figure in the plane figure are screened out, and the combination is used as the plane figure consistent with the target figure. In this embodiment, the preset range can be 5%.

[0103] For example, the target graphic entities are: straight lines (number 6), arcs (number 1), and attribute definitions (1). Filter condition 1 is: 6 straight lines, 1 arc, and 1 attribute definition. Filter condition 2 is: get the lengths of 6 straight lines, get the angle and radius of 1 arc, and get the text of 1 attribute definition. In the plane map range, filter out the arcs that meet any of the 6 straight line lengths, the angle and radius, and the text attribute definition.

[0104] Step S104 ensures that the graphics in the plan view that are consistent with the target graphics can be accurately identified by matching the block names. This method is simple and effective, and reduces the possibility of misidentification. By judging the type and quantity of entities, as well as the relative position and distance between entities, the accurate matching of the combined equipment is ensured. The matching conditions of multiple dimensions are considered to improve the accuracy of the matching. Whether it is a block reference or a combined equipment, it can be matched and identified automatically, reducing manual intervention and improving the efficiency of subsequent 3D modeling.

[0105] In one embodiment, step S105 generates a block reference based on the attribute information corresponding to the plan view, and generates a three-dimensional model based on the block reference. Based on the three-dimensional model, the number of each equipment type and the detailed information of the three-dimensional model are counted to generate a construction quantity report. Specifically, it includes:

[0106] Optionally, Figure 4is a schematic diagram of a three-dimensional model according to an exemplary embodiment. Figure 4 As shown, a block reference is generated for each target graphic, and a block reference is drawn on each plane graphic that is consistent with the target graphic. The block reference is the three-dimensional model, so the total number of identical three-dimensional models is obtained on the plane. From step S103, the name and other attributes of each target graphic are obtained, so it can be obtained that there are several different names of devices under each device type in the plane, and the number of devices with each name is how many. For example, under the switch device type, there are 7 concealed single-stage switches, and the height of the three-dimensional model is 1.3m; there are 17 concealed two-stage switches, and the height of the three-dimensional model is 1.3m.

[0107] Step S105 generates a block reference for each target graphic, and draws a block reference on each plane graphic consistent with the target graphic. This block reference is actually the basis of the three-dimensional model. Based on the generated block reference, a three-dimensional model is generated. Each block reference corresponds to a three-dimensional model, so that the total number of identical three-dimensional models is obtained on the plane. Through the generation of the three-dimensional model, the conversion from the two-dimensional plane to the three-dimensional model is realized, making the engineering design and construction more intuitive and visual, which helps to better understand and manage the engineering project and improve the efficiency of three-dimensional modeling. Based on the statistical equipment quantity and detailed information, a construction quantity report is generated. The report lists the quantity, height and other information of each type of equipment in detail. The generation of the construction quantity report provides an important reference basis for project management and budget preparation, which helps to improve the transparency and management efficiency of the engineering project.

[0108] In summary, the embodiment of the present application provides a method for generating a three-dimensional model based on a plan view, by obtaining legend table data in a two-dimensional drawing. According to preset rules, the missing items in the legend table data are processed to obtain the processed legend table data. The processed legend table data is parsed to generate a target legend table; wherein the target legend table includes graphics and various attribute information corresponding to the graphics. A plan view graphic consistent with the target graphic in the target legend table data is obtained in the plan view, and based on the plan view graphic, various attribute information corresponding to the plan view graphic in the target legend table data is determined. Based on the various attribute information corresponding to the plan view graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference. According to the same graphic judgment, classification, and batch setting, a three-dimensional model is quickly generated, and the equipment that needs to be calculated in the entire plan view is classified and the quantity is realized. All graphic measurement can effectively reduce manual inspection, improve the efficiency of calculation, and solve the problem of low efficiency in three-dimensional modeling based on installation drawings in related technologies.

[0109] In a second aspect, an embodiment of the present application provides a system for generating a three-dimensional model based on a plan view. Figure 5 FIG. 1 is a block diagram of a system for generating a three-dimensional model based on a plan view according to an exemplary embodiment. Figure 5As shown, the system includes a legend table data acquisition module 510, a missing item processing module 520, a target legend table module 530, a plane diagram corresponding attribute information determination module 540 and a three-dimensional model generation module 550; wherein,

[0110] A legend table data acquisition module 510 is used to acquire legend table data in a two-dimensional drawing;

[0111] A missing item processing module 520 is used to process the missing items in the legend table data according to a preset rule and obtain the processed legend table data;

[0112] The target legend table module 530 parses the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics;

[0113] The module 540 for determining the corresponding attribute information of the plan view graphic is used to obtain the plan view graphic consistent with the target graphic in the target legend table data in the plan view, and determine the respective attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic;

[0114] The three-dimensional model generation module 550 is used to generate a block reference based on various attribute information corresponding to the plan view graphics, and generate a three-dimensional model based on the block reference.

[0115] In summary, the embodiment of the present application provides a system for generating a three-dimensional model based on a plan view, which solves the problem of low efficiency in three-dimensional modeling based on installation drawings in the related art by obtaining a legend table data module 510, processing a missing item module 520, a target legend table module 530, determining a module 540 for determining the corresponding attribute information of the plan view graphics, and generating a three-dimensional model module 550. Specifically, by obtaining legend table data in a two-dimensional drawing. According to preset rules, the missing items in the legend table data are processed to obtain the processed legend table data. The processed legend table data is parsed to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics. A plan view graphic consistent with the target graphic in the target legend table data is obtained in the plan view, and based on the plan view graphic, each attribute information corresponding to the plan view graphic in the target legend table data is determined. Based on the attribute information corresponding to the plan view graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference. Based on the same graphic judgment, classification, and batch setting, the 3D model is quickly generated, and the equipment that needs to be calculated in the entire plan is classified and the measurement of all graphics is realized. This can effectively reduce manual inspection, improve the efficiency of calculation, and solve the problem of low efficiency in 3D modeling based on installation drawings in related technologies.

[0116] It should be noted that the system for generating a three-dimensional model based on a plan view provided in this embodiment is used to implement the above-mentioned implementation mode, and the descriptions that have been made will not be repeated. As used above, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the device described in the above embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0117] In a third aspect, an embodiment of the present application provides an electronic device, Figure 6 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 6 As shown, the electronic device may include a processor 61 and a memory 62 storing computer program instructions.

[0118] Specifically, the processor 61 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0119] Among them, the memory 62 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 62 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 62 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 62 may be inside or outside the data processing device. In a specific embodiment, the memory 62 is a non-volatile memory. In a specific embodiment, the memory 62 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0120] The memory 62 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 61 .

[0121] The processor 61 implements any one of the methods for generating a three-dimensional model based on a plan view in the above embodiments by reading and executing computer program instructions stored in the memory 62 .

[0122] In one embodiment, a device for generating a three-dimensional model based on a plan view may further include a communication interface 63 and a bus 60. Figure 6 As shown, the processor 61, the memory 62, and the communication interface 63 are connected via a bus 60 and communicate with each other.

[0123] The communication interface 63 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 63 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0124] The bus 60 includes hardware, software or both, and couples the components of a device for generating a three-dimensional model based on a plan view to each other. The bus 60 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 60 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of the above. Where appropriate, bus 60 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0125] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a method for generating a three-dimensional model based on a plan view provided in the first aspect is implemented.

[0126] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0127] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps of a method for generating a three-dimensional model based on a plan view provided in the first aspect.

[0128] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a three-dimensional model based on a plane map, characterized in that: The method includes: Obtaining the legend table data in the two-dimensional drawing; Processing the missing items in the legend table data according to preset rules to obtain the processed legend table data; Parsing the processed legend table data to generate a target legend table; wherein, the target legend table includes graphics and various attribute information corresponding to the graphics; Obtaining a floor plan graphic in the floor plan that is the same as the target graphic in the target legend table data, and based on the floor plan graphic, determining various attribute information corresponding to the floor plan graphic in the target legend table data; Generating a block reference based on various attribute information corresponding to the floor plan graphic, and generating a 3D model based on the block reference.

2. The method according to claim 1, characterized in that The obtaining a floor plan graphic in the floor plan that is the same as the target graphic in the target legend table data includes: When the target graphic feature type is a block reference, obtaining a floor plan graphic in the floor plan that is the same as the target graphic through block name matching; When the target graphic feature type is a combined device, judging the entity type and the number of entity types of the target graphic; screening out entities in the floor plan that conform to the entity type and the number of entity types; combining the screened entities to obtain a floor plan graphic that is the same as the target graphic.

3. The method according to claim 2, characterized in that The combining the screened entities to obtain a floor plan graphic that is the same as the target graphic includes: Judging whether the distance between the two screened entities exceeds the maximum value of the frame length of the target graphic. If it does not exceed, classifying the two entities into the same group; Among the entities in the same group, arbitrarily selecting one of the entities as a reference, and combining it with other entities. If the combined body is consistent with the entity type and the number of entity types of the target graphic, and the error between the position of the combined body and the position of the target graphic is within the preset range, then the combined body is used as a floor plan graphic that is the same as the target graphic.

4. The method according to claim 1, characterized in that The parsing the processed legend table data to generate a target legend table includes: Matching the header text of the legend table according to the keyword matching rule to parse out the target legend table, where the target legend table includes legend, name, specification, unit, and installation height.

5. The method according to claim 4, characterized in that The matching the header text of the legend table according to the keyword matching rule to parse out the target legend table includes: When the header text in the legend table includes "example", "symbol", and "sign", filling the graphics in the corresponding column of the legend table into the target legend table; When the header text in the legend table includes "name" and "title", filling the content in the corresponding column of the legend table into the target legend table; When the header text in the legend table includes "type" and "specification", filling the content in the corresponding column of the legend table into the target legend table; When the header text in the legend table includes "unit", filling the content in the corresponding column of the legend table into the target legend table; When the header text in the legend table includes "installation", "mounting", and "height", filling the numbers in the text of this column of the legend table into the data of the legend table.

6. The method according to claim 1, characterized in that Processing the missing items in the legend table data according to preset rules to obtain the processed legend table data includes: If a row is missing in the legend column of the graph list data, the missing row data in the graph list data will not be parsed into the target legend table; If a row is missing in the name column of the graph list data, the missing row data in the graph list data will not be parsed into the target legend table; If a row is missing in the specification column of the figure list data, the missing row data in the figure list data will not be parsed into the target legend table; If a row in the unit column of the graph list data is missing, the corresponding row data is automatically filled in according to the device type; If a row in the height column of the legend table data is missing, the missing row data of the legend table is automatically filled in according to the default height of the device.

7. The method according to claim 1, characterized in that After generating the 3D model based on the block reference, the method further includes: Based on the three-dimensional model, the quantity of each equipment type and detailed information of the three-dimensional model are counted to generate an engineering quantity report.

8. The method according to claim 1, characterized in that: The step of obtaining legend table data in the two-dimensional drawing includes: Receive 2D drawings imported into BIM 3D quantity calculation software; According to the calling function command, in response to receiving a user selecting a legend table in the two-dimensional drawing, the selected legend table data is extracted.

9. A system for generating a three-dimensional model based on a plan view, characterized in that: The system includes a legend table data acquisition module, a missing item processing module, a target legend table module, a plane diagram corresponding attribute information determination module and a three-dimensional model generation module; wherein, The legend table data acquisition module is used to acquire the legend table data in the two-dimensional drawing; The missing item processing module is used to process the missing items in the legend table data according to preset rules and obtain the processed legend table data; The target legend table module parses the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and attribute information corresponding to the graphics; The module for determining the attribute information corresponding to the plan view graphic is used to obtain a plan view graphic that is consistent with the target graphic in the target legend table data in the plan view, and determine each attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic; The three-dimensional model generation module is used to generate a block reference based on various attribute information corresponding to the plan view graphics, and generate a three-dimensional model based on the block reference.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for generating a three-dimensional model based on a plan view as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • An intelligent identification method of electrical drawings

    CN109255041A

  • Layer configuration method, electronic equipment and related products

    CN112818456A

  • Method and system for converting two-dimensional drawing into three-dimensional model for drawing review

    CN114972659A

  • Complementation and error correction method and device for pipeline instrument flow chart and storage medium

    CN115909386A

  • Modeling method and system of hull grillage, electronic equipment and medium

    CN117034394A