A method, system, and medium for generating a three-dimensional model based on a floor plan

By acquiring and processing legend data from 2D drawings, generating target legend tables and obtaining attribute information from plan views, the problem of low efficiency in 3D modeling in existing technologies is solved, enabling rapid generation of 3D models and improving quantity calculation efficiency.

CN119808221BActive Publication Date: 2026-07-24PINMING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PINMING TECH CO LTD
Filing Date
2024-12-06
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing technologies that use 3D modeling based on installation drawings are inefficient and prone to human error.

Method used

By acquiring legend data from 2D drawings, processing missing items, generating a target legend table, and obtaining attribute information consistent with the target graphic from the plan view, block references are generated based on this information, and finally a 3D model is generated.

Benefits of technology

It enables rapid generation of 3D models, reduces manual inspection, improves computational efficiency, ensures data integrity and accuracy, and enhances the efficiency of 3D modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119808221B_ABST
    Figure CN119808221B_ABST
Patent Text Reader

Abstract

The application relates to a method, system and medium for generating a three-dimensional model based on a plan view, wherein the method comprises the following steps: obtaining legend table data in a two-dimensional drawing; processing missing items in the legend table data according to a preset rule to obtain processed legend table data; analyzing the processed legend table data to generate a target legend table, wherein the target legend table comprises graphics and attribute information corresponding to the graphics; obtaining a plan view graphic consistent with a target graphic in the target legend table data in the plan view; determining attribute information corresponding to the plan view graphic in the target legend table data based on the plan view graphic; generating a block reference based on the attribute information corresponding to the plan view graphic; and generating a three-dimensional model based on the block reference. According to the method, three-dimensional models can be quickly generated according to the same graphic judgment, classification and batch setting, and devices that need to be calculated in the whole plan view can be classified and calculated, so that the problem of low efficiency in three-dimensional modeling according to installation drawings in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of building information modeling technology, and in particular to a method, system and medium for generating three-dimensional models based on floor plans. Background Technology

[0002] During the construction process, installation drawings are crucial documents guiding on-site construction, typically consisting of two parts: a legend table and a floor plan. The legend table lists different graphic styles of CAD drawings along with their corresponding names, attributes, units, and installation heights, while the floor plan shows the specific layout and quantity of the equipment.

[0003] The current traditional approach involves manually identifying and compiling equipment information one by one by referring to legend tables and floor plans, and then manually creating 3D models. This process is not only time-consuming and labor-intensive, but also prone to human error, affecting project progress and quality. Therefore, the current technology of creating 3D models based on installation drawings suffers from low efficiency. Summary of the Invention

[0004] This application provides a method, system, and medium for generating three-dimensional models based on planar drawings, in order to at least solve the problem of low efficiency in three-dimensional modeling based on installation drawings in related technologies.

[0005] In a first aspect, embodiments of this application provide a method for generating a three-dimensional model based on a planar drawing, the method comprising:

[0006] Retrieve legend data from 2D drawings;

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

[0008] The processed legend table data is parsed to generate a target legend table; wherein, the target legend table includes graphics and the attribute information corresponding to each graphics;

[0009] Obtain a planar map graphic that matches the target graphic in the target legend table data from the planar map; and determine the attribute information of each planar map graphic corresponding to the planar map graphic in the target legend table data based on the planar map graphic.

[0010] Based on the attribute information corresponding to the planar graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference.

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

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

[0013] Based on the function call command, in response to receiving the user's selection of a legend table in the two-dimensional drawing, the selected legend table data is extracted.

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

[0015] The header text of the legend table is matched according to the keyword matching rules to parse out the target legend table, which includes the legend, name, specifications, unit, and installation height.

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

[0017] When the header text in the legend table includes "example", "symbol", and "sign", the corresponding column graphics in the legend table will be filled into the target legend table;

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

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

[0020] When the header text in the legend table includes a position, the corresponding column content of the legend table is filled into the target legend table;

[0021] When the header text in the legend table includes "install," "install," and "high," the numbers in that column of the legend table are filled into the data of the "Dispatching the Troops" table.

[0022] In one embodiment, according to preset rules, missing items in the legend table data are processed to obtain the processed legend table data, including:

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

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

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

[0026] If a row is missing in the unit column of the data in the diagram list, the corresponding row of data will be automatically filled according to the device type.

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

[0028] In one embodiment, obtaining a plan view graphic in the plan view that matches the target graphic in the target legend table data includes:

[0029] If the target graphic feature type is block reference, the planar graphic that matches the target graphic in the planar graph 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 match the entity type and the number of entity types in the planar view; combine the filtered entities to obtain a planar view graphic that matches the target graphic.

[0031] In one embodiment, the filtered entities are combined to obtain a planar graphic that matches the target graphic, including:

[0032] Determine whether the distance between the two entities after filtering exceeds the maximum length of the target graphic's frame. If it does not exceed the maximum length, classify the two entities into the same group.

[0033] Among entities in the same group, one entity is selected as a reference and combined with other entities. If the entity type and number of the combined entity are the same as those of the target graphic, and the error between the position of the combined entity and the position of the target graphic is within a preset range, then the combined entity is considered as a planar graphic consistent with the target graphic.

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

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

[0036] Secondly, embodiments of this application provide a system for generating a 3D model based on a planar drawing. The system includes a module for acquiring legend data, a module for processing missing items, a target legend table module, a module for determining the attribute information corresponding to the planar drawing graphics, and a module for generating the 3D model.

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

[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 the corresponding attribute information of the graphics;

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

[0041] The module for generating a 3D model is used to generate block references based on the attribute information corresponding to the planar graphic, and to generate a 3D model based on the block references.

[0042] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a system for generating a three-dimensional model based on a planar drawing as described in the first aspect above.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a system for generating three-dimensional models based on planar diagrams as described in the first aspect above.

[0044] The method, system, and medium for generating three-dimensional models based on planar diagrams provided in this application have at least the following technical effects.

[0045] This process involves acquiring legend table data from 2D drawings. Based on preset rules, missing items in the legend table data are processed to obtain the processed legend table data. The processed legend table data is then parsed to generate a target legend table, which includes graphics and their corresponding attribute information. A plan view graphic matching the target graphic in the target legend table data is obtained from the plan view. Based on this plan view graphic, the corresponding attribute information in the target legend table data is determined. Based on the attribute information corresponding to the plan view graphic, block references are generated, and a 3D model is generated based on these block references. By judging, classifying, and batch-setting identical graphics, a 3D model is quickly generated. The equipment requiring quantity calculation is categorized and quantity-quantified across the entire plan view, achieving full graphic measurement. This effectively reduces manual inspection, improves quantity calculation efficiency, and solves the problem of low efficiency in 3D modeling based on installation drawings in related technologies.

[0046] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0047] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0048] Figure 1 It is a flowchart for generating 3D models based on 2D diagrams;

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

[0050] Figure 3 This is a schematic diagram illustrating a combined device as the target graphic feature type according to an exemplary embodiment;

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

[0052] Figure 5 This is a system structure block diagram illustrating the generation of a 3D model based on a planar diagram, according to an exemplary embodiment.

[0053] Figure 6 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0055] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.

[0056] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0057] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; 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 not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the positional relationship of related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.

[0058] In a first aspect, embodiments of this application provide a method for generating a three-dimensional model based on a planar diagram, applied to the end of a turbine generator stator winding. Figure 1 It is a flowchart for generating 3D models based on 2D diagrams, such as Figure 1 As shown, a method for generating a 3D model based on a planar drawing includes:

[0059] Step S101: Obtain the legend table data from the two-dimensional drawing.

[0060] Step S102: According to preset rules, process the missing items in the legend table data and obtain the processed legend table data.

[0061] Step S103: Parse the processed legend table data to generate the target legend table; wherein, the target legend table includes the graphics and the corresponding attribute information of each graphics.

[0062] Step S104: Obtain a planar map graphic that matches the target graphic in the target legend table data from the planar map. Based on the planar map graphic, determine the attribute information corresponding to the planar map graphic in the target legend table data.

[0063] Step S105: Generate block references based on the attribute information corresponding to the planar graphic, and generate a 3D model based on the block references.

[0064] In summary, this application provides a method for generating a 3D model based on a plan view. This method involves acquiring legend table data from a 2D drawing. According to preset rules, missing items in the legend table data are processed to obtain processed legend table data. The processed legend table data is parsed to generate a target legend table, which includes graphics and their corresponding attribute information. A plan view graphic matching the target graphic in the target legend table data is obtained from the plan view. Based on the plan view graphic, the 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, block references are generated, and a 3D model is generated based on these block references. By judging, classifying, and batch-setting identical graphics, a 3D model is quickly generated. The method also categorizes and quantities the equipment requiring measurement in the entire plan view, achieving full graphic measurement. This effectively reduces manual inspection, improves measurement efficiency, and solves the problem of low efficiency in 3D modeling based on installation drawings in related technologies.

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

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

[0067] Based on the function call command, in response to receiving the user's selection of a legend table in the two-dimensional drawing, the selected legend table data is extracted.

[0068] Optionally, import 2D drawings into BIM 3D quantity calculation software, invoke function commands, and the software command bar will prompt the user to select the legend table by left-clicking or right-clicking to confirm. The software then retrieves the selected legend table data in response to the user's selection. After the user's selection, the software automatically pops up a dialog box to generate the target legend table, containing six columns of data: legend, name, equipment type, specifications, unit, and installation height. This data needs to be generated through matching the legend table and internal rules.

[0069] Step S101 ensures that the extracted data is the part actually needed by the user by selecting the legend table in the 2D drawing, thus avoiding possible misidentification or omission during 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 data entry and improving work efficiency.

[0070] In one embodiment, step S102 involves processing missing items in the legend table data according to preset rules to obtain the processed legend table data. Specifically, this includes:

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

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

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

[0074] If a row is missing in the unit column of the chart data, the corresponding row data will be automatically filled according to the device type.

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

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

[0077] If a row is missing in the "Name" column of the chart list data, the missing row will not be parsed into the target legend table. Similarly, if a row is missing in the "Specifications" column of the chart list data, it will also not be parsed into the target legend table. If a row is missing in the "Units" column of the chart list data, it will be automatically filled with the corresponding row based on the equipment type. For example, "lights," "switches," and "sockets" will be filled with "units," and "distribution boxes" with "pieces." If a row is missing in the "Height" column of the chart list data, it will be automatically filled with the missing row from the legend table based on the default height of the equipment. Furthermore, users can manually modify the data in each column of the target legend table.

[0078] Step S102 processes missing items in the legend table data using preset rules, ensuring the integrity of the target legend table. Missing items in key columns (such as legend, name, and specifications) are directly excluded from parsing, avoiding erroneous parsing due to missing data. Missing items in the unit and height columns are automatically filled based on equipment type and default height, ensuring data integrity and consistency.

[0079] In one embodiment, step S103 involves parsing the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and corresponding attribute information for each graphic. Specifically, this includes:

[0080] Based on keyword matching rules, the header text of the legend table is matched to parse out the target legend table, which includes the legend, name, specifications, units, and installation height. The target legend table includes:

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

[0082] When the header text in the legend table includes "name" and "title", the corresponding column content of the legend table will be filled into the target legend table.

[0083] When the header text in the legend table includes "type" and "standard", the corresponding column content of the legend table will be filled into the target legend table.

[0084] When the header text in the legend table includes a position, the content of the corresponding column in the legend table will be filled into the target legend table;

[0085] When the header text in the legend table includes "installation" or "high," the numbers from that column of the legend table will be used to fill the data in the graduation table.

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

[0087] Keyword matching rules include:

[0088] Legend: If the header text contains the keywords "example", "symbol", or "sign", then the corresponding column graphics in the legend table will be filled into the "target legend table".

[0089] Name: If the header text contains the keywords "name" or "title", then the corresponding column content of the legend table will be filled into the "target legend table".

[0090] If the header text contains the keywords "type" or "standard", then the corresponding column content of the legend table will be filled into the "target legend table".

[0091] Unit: If the header text contains the keyword "position", then the corresponding column content of the legend table will be filled into the "target legend table";

[0092] Installation height: If the header text contains the keywords "installation height", then the numbers in that column of the legend table will be filled into the "target legend table".

[0093] The "Equipment Type" column then identifies the corresponding component type by matching keywords in each row of data under the "Name" column. For example, in electrical engineering, if the equipment type is "Lighting Fixture," the name must contain "Light." If the equipment type is "Switch," the name must contain "Switch." If the equipment type is "Socket," the name must contain "Socket." If the equipment type is "Distribution Box," the name must contain "Box" or "Cabinet."

[0094] Step S103 accurately identifies the header text in the legend table using keyword matching rules and fills the corresponding data into the target legend table. This keyword-based matching method reduces manual intervention, improving work efficiency and ensuring the accuracy of data parsing. For example, the header text in the "legend" column contains multiple keywords such as "example," "symbol," and "sign." This multi-keyword combination further improves the accuracy of matching and avoids misidentification caused by a single keyword.

[0095] Figure 2 This is a flowchart illustrating step S104 according to an exemplary embodiment, as shown below. Figure 2 As shown, step S104 involves obtaining a planar map graphic in the planar map that matches the target graphic in the target legend table data, and determining the attribute information corresponding to the planar map graphic in the target legend table data based on the planar map graphic. Specifically, this includes the following steps:

[0096] Step S1041: If the target graphic feature type is block reference, obtain the planar graphic in the planar map that is consistent with the target graphic by matching the block name.

[0097] Optionally, if the target graphic feature type is a block reference, then by matching the block name, if the graphic block name on the planar map is consistent with it, then the planar map graphic that is consistent with the target graphic and its corresponding name and other attributes are obtained.

[0098] Step S1042: 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 match the entity type and the number of entity types in the plan view; combine the filtered entities to obtain a plan view graphic that matches the target graphic.

[0099] The filtered entities are combined to obtain a planar graphic that matches the target graphic. This includes: determining whether the distance between two filtered entities exceeds the maximum length of the target graphic's frame; if not, classifying the two entities into the same group; selecting one entity from the same group as a reference and combining it with other entities; if the combined entity has the same entity type and number of entity types as the target graphic, and the error between the position of the combined entity and the position of the target graphic is within a preset range, then the combined entity is considered a planar graphic that matches the target graphic.

[0100] Optionally, Figure 3 This is a schematic diagram illustrating a combined device with a target graphic feature type according to an exemplary embodiment, such as... Figure 3As shown, if the target graphic feature type is a combined device (non-block reference), determine the entity type and the corresponding number of entities in the target graphic. (Filtering condition 1) If the entity type is ultimately exploded into a straight line, determine the line length; for a circle, determine the radius; for an arc, determine the angle and radius; for text and attribute definitions, determine the text content. (Filtering condition 2)

[0101] Within the plan view, entities that meet the criteria are selected based on both filter criteria 1 and filter criteria 2. Since a plan is composed of multiple entities, the next step is to group the selected entities from the plan view. Initial grouping is done by assigning entities to different groups based on the distance between them exceeding the maximum length of the target graphic's outer bounding box (minimum outer border). Conversely, entities with a distance less than or equal to the target graphic are grouped into the same group.

[0102] Entities belonging to the same group are arbitrarily selected as a baseline and combined with other entities. If the combined entity has the same entity type and quantity as the target graphic, and the relative positions of the entities are within a preset range compared to the target graphic, then the combined entity is considered a single graphic consistent with the target graphic. This process is used to filter out single planar graphics in the planar diagram that are consistent with each target graphic, and the combined entity is considered a planar graphic consistent with the target graphic. In this embodiment, the preset range can be 5%.

[0103] For example, the target graphic consists of: 6 straight lines, 1 arc, and 1 attribute definition. Filter condition 1 is: 6 straight lines, 1 arc, and 1 attribute definition. Filter condition 2 is: obtain the lengths of the 6 straight lines, the angle and radius of the 1 arc, and the text of the 1 attribute definition. Within the planar drawing area, filter out any straight line length that satisfies the 6 straight line lengths, the arc that satisfies the angle and radius, and the text that satisfies the attribute definition.

[0104] Step S104 ensures accurate identification of graphics in the planar drawing that match the target graphic through block name matching. This method is simple and effective, reducing the possibility of misidentification. Accurate matching of combined devices is ensured by judging the type and quantity of entities, as well as the relative position and distance between entities. Multiple dimensions of matching conditions are considered, improving matching accuracy. Whether it's a block reference or a combined device, matching and identification can be performed automatically, reducing manual intervention and improving the efficiency of subsequent 3D modeling.

[0105] In one embodiment, step S105 involves generating block references based on the attribute information corresponding to the planar drawing, and then generating a 3D model based on the block references. Based on the 3D model, the quantity of each equipment type and detailed information of the 3D model are calculated, and an engineering quantity report is generated. Specifically, this includes:

[0106] Optionally, Figure 4This is a schematic diagram of a three-dimensional model according to an exemplary embodiment, such as... Figure 4 As shown, a block reference is generated for each target graphic. A block reference is then drawn on each planar graphic that matches the target graphic; this block reference is the 3D model, thus obtaining the total number of identical 3D models on the planar diagram. From step S103, the name and other attributes of each target graphic are obtained, thus revealing the number of different names of devices under each device type in the planar diagram, and the number of devices with each name. For example, under the switch device type, there are 7 recessed single-pole switches with a 3D model height of 1.3m; and 17 recessed two-pole switches with a 3D model height of 1.3m.

[0107] Step S105 generates a block reference for each target graphic and draws a block reference on each planar graphic that matches the target graphic. This block reference is actually the basis of the 3D model. Based on the generated block references, a 3D model is generated. Each block reference corresponds to one 3D model, thus obtaining the same total number of 3D models on the planar drawing. Through the generation of 3D models, the conversion from 2D planar drawings to 3D models is realized, making engineering design and construction more intuitive and visual, helping to better understand and manage engineering projects, and improving the efficiency of 3D modeling. Based on the statistical equipment quantity and detailed information, a quantity report is generated. The report lists in detail the quantity, height, and other information of each type of equipment. The generation of the quantity report provides an important reference for project management and budget preparation, helping to improve the transparency and management efficiency of engineering projects.

[0108] In summary, this application provides a method for generating a 3D model based on a plan view. This method involves acquiring legend table data from a 2D drawing. According to preset rules, missing items in the legend table data are processed to obtain processed legend table data. The processed legend table data is parsed to generate a target legend table, which includes graphics and their corresponding attribute information. A plan view graphic matching the target graphic in the target legend table data is obtained from the plan view. Based on the plan view graphic, the 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, block references are generated, and a 3D model is generated based on these block references. By judging, classifying, and batch-setting identical graphics, a 3D model is quickly generated. The method also categorizes and quantities the equipment requiring measurement in the entire plan view, achieving full graphic measurement. This effectively reduces manual inspection, improves measurement efficiency, and solves the problem of low efficiency in 3D modeling based on installation drawings in related technologies.

[0109] Secondly, embodiments of this application provide a system for generating three-dimensional models based on planar diagrams. Figure 5 This is a block diagram illustrating a system for generating three-dimensional models based on a planar diagram, according to an exemplary embodiment. For example... 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 planar map graphic corresponding attribute information determination module 540, and a 3D model generation module 550; among which,

[0110] The legend table data acquisition module 510 is used to acquire legend table data in two-dimensional drawings;

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

[0112] The target legend table module 530 parses the processed legend table data and generates the target legend table; the target legend table includes the graphic and the corresponding attribute information of the graphic.

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

[0114] The 3D model generation module 550 is used to generate block references based on the attribute information corresponding to the planar graphic, and to generate a 3D model based on the block references.

[0115] In summary, the system for generating a 3D model based on a plan view provided in this application addresses the low efficiency problem in related technologies for 3D modeling based on installation drawings by using a legend table data acquisition module 510, a missing item processing module 520, a target legend table module 530, a module 540 for determining the attribute information corresponding to the plan view graphic, and a 3D model generation module 550. Specifically, it acquires legend table data from a 2D drawing. According to preset rules, it processes missing items in the legend table data to obtain processed legend table data. It parses the processed legend table data to generate a target legend table; wherein the target legend table includes graphics and their corresponding attribute information. It acquires a plan view graphic in the plan view that matches the target graphic in the target legend table data, and based on the plan view graphic, determines the attribute information corresponding to the plan view graphic in the target legend table data. Based on the attribute information corresponding to the plan view graphic, it generates a block reference, and based on the block reference, it generates a 3D model. Based on the same graphic, it can be judged, classified, and batch set to quickly generate a 3D model and classify the equipment that needs to be measured in the whole plan drawing, so as to realize the measurement of all graphics. This can effectively reduce manual inspection, improve the efficiency of quantity 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 three-dimensional models based on planar drawings provided in this embodiment is used to implement the above-described embodiments, and details already described will not be repeated. As used above, the terms "module," "unit," "subunit," etc., can refer to combinations of software and / or hardware that perform predetermined functions. Although the apparatus described in the above embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0117] Thirdly, embodiments of this application provide an electronic device, Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. (e.g.) 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), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0119] The memory 62 may include a mass storage device for data or instructions. For example, and not limitingly, the memory 62 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, 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 removable or non-removable (or fixed) media. Where appropriate, the memory 62 may be internal or external to a data processing device. In a particular embodiment, the memory 62 is non-volatile memory. In a particular embodiment, the memory 62 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), an electrically alterable read-only memory (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), Extended Data Out Dynamic Random-Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.

[0120] The memory 62 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 61.

[0121] The processor 61 reads and executes computer program instructions stored in the memory 62 to implement any of the methods for generating a three-dimensional model based on a planar drawing in the above embodiments.

[0122] In one embodiment, a device for generating a 3D model based on a planar drawing may further include a communication interface 63 and a bus 60. Wherein, as Figure 6 As shown, the processor 61, memory 62, and communication interface 63 are connected through bus 60 and complete communication with each other.

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

[0124] Bus 60 includes hardware, software, or both, that couples together components of a device that generates a 3D model based on a 2D drawing. Bus 60 includes, but is not limited to, at least one of the following: data bus, address bus, control bus, expansion bus, and local bus. For example, and not as a 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 these. Where appropriate, bus 60 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0125] Fourthly, embodiments of this application provide a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the method for generating a three-dimensional model based on a planar drawing provided in the first aspect.

[0126] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.

[0127] In a possible implementation, the invention can also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform steps of implementing the method for generating a three-dimensional model based on a planar drawing provided in the first aspect.

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

[0129] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for generating a 3D model based on a planar drawing, characterized in that, The method includes: Retrieve legend data from 2D drawings; According to preset rules, missing items in the legend table data are processed to obtain the processed legend table data; for missing items in key columns, they are excluded and not parsed; for missing items in the unit column and height column, they are automatically filled according to the device type and default height. The processed legend table data is parsed to generate a target legend table; wherein, the target legend table includes graphics and the attribute information corresponding to each graphics; Obtain a planar map graphic that matches the target graphic in the target legend table data from the planar map; and determine the attribute information of each planar map graphic corresponding to the planar map graphic in the target legend table data based on the planar map graphic. Based on the attribute information corresponding to the planar graphic, a block reference is generated, and a three-dimensional model is generated based on the block reference. The step of obtaining a planar map graphic that matches the target graphic in the target legend table data in the planar map includes: If the target graphic feature type is block reference, the planar graphic that matches the target graphic in the planar graph is obtained by matching the block name; 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 match the entity type and the number of entity types in the planar drawing; Determine whether the distance between the two entities after filtering exceeds the maximum length of the target graphic's frame. If it does not exceed the maximum length, classify the two entities into the same group. In the same group of entities, 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 combined body are the same as those of the target graphic, and the error between the position of the combined body and the position of the target graphic is within a preset range, then the combined body is regarded as a planar graphic consistent with the target graphic. The parsed legend table data is used to generate a target legend table, which includes: matching the header text of the legend table according to keyword matching rules, and parsing out the target legend table, wherein the target legend table includes legend, name, column, unit and installation height; The step of matching the header text of the legend table according to keyword matching rules and parsing out the target legend table includes: when the header text of the legend table includes "example," "symbol," and "sign," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "name" and "title," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "type" and "specification," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "position," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "install," "install," and "height," filling the numbers in that column of the legend table into the data of the target legend table.

2. The method according to claim 1, characterized in that, According to preset rules, missing items in the legend table data are processed to obtain the processed legend table data, including: If a row is missing in the legend column of the legend table data, the missing row data in the legend table data will not be parsed into the target legend table; If a row is missing in the name column of the legend table data, the missing row data in the legend table data will not be parsed into the target legend table; If a row is missing in the specification column of the legend table data, the missing row data in the legend table data will not be parsed into the target legend table; If a row is missing in the unit column of the legend table data, the corresponding row data will be automatically filled according to the equipment type. If a row is missing in the height column of the legend table data, the missing row data in the legend table will be automatically filled according to the device's default height.

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

4. The method according to claim 1, characterized in that, The process of obtaining legend data from two-dimensional drawings includes: Receive 2D drawings imported into BIM 3D quantity calculation software; Based on the function call command, in response to receiving the user's selection of a legend table in the two-dimensional drawing, the selected legend table data is extracted.

5. A system for generating three-dimensional models based on planar diagrams, characterized in that, The system includes a module for acquiring legend table data, a module for processing missing items, a target legend table module, a module for determining the corresponding attribute information of the planar graphic, and a module for generating a 3D model; wherein... The legend table data acquisition module is used to acquire legend table data in two-dimensional drawings; 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 the corresponding attribute information of the graphics; The module for determining the attribute information corresponding to the planar diagram graphic is used to obtain a planar diagram graphic in the planar diagram that is consistent with the target graphic in the target legend table data, and based on the planar diagram graphic, determine the attribute information corresponding to the planar diagram graphic in the target legend table data; The 3D model generation module is used to generate block references based on the attribute information corresponding to the planar graphic, and generate a 3D model based on the block references; The module for determining the attribute information corresponding to the planar map graphic is used to: When obtaining a planar map graphic that matches the target graphic in the target legend table data in the planar map, the module is configured to: If the target graphic feature type is block reference, the planar graphic that matches the target graphic in the planar graph is obtained by matching the block name; 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 match the entity type and the number of entity types in the planar drawing; Determine whether the distance between the two entities after filtering exceeds the maximum length of the target graphic's frame. If it does not exceed the maximum length, classify the two entities into the same group. In the same group of entities, 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 combined body are the same as those of the target graphic, and the error between the position of the combined body and the position of the target graphic is within a preset range, then the combined body is regarded as a planar graphic consistent with the target graphic. The parsed legend table data is used to generate a target legend table, which includes: matching the header text of the legend table according to keyword matching rules, and parsing out the target legend table, wherein the target legend table includes legend, name, column, unit and installation height; The step of matching the header text of the legend table according to keyword matching rules and parsing out the target legend table includes: when the header text of the legend table includes "example," "symbol," and "sign," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "name" and "title," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "type" and "specification," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "position," filling the corresponding column of the legend table into the target legend table; when the header text of the legend table includes "install," "install," and "height," filling the numbers in that column of the legend table into the data of the target legend table.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a method for generating a three-dimensional model based on a planar diagram as described in any one of claims 1 to 4.