CN114972659B - Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination - Google Patents

Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination Download PDF

Info

Publication number
CN114972659B
CN114972659B CN202210895075.5A CN202210895075A CN114972659B CN 114972659 B CN114972659 B CN 114972659B CN 202210895075 A CN202210895075 A CN 202210895075A CN 114972659 B CN114972659 B CN 114972659B
Authority
CN
China
Prior art keywords
dimensional
dimensional model
component
examination
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210895075.5A
Other languages
Chinese (zh)
Other versions
CN114972659A (en
Inventor
周自强
彭飞
李一华
饶剑奇
张超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Shaoke Intelligent Construction Technology Co ltd
Original Assignee
Jiangxi Shaoke Intelligent Construction Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Shaoke Intelligent Construction Technology Co ltd filed Critical Jiangxi Shaoke Intelligent Construction Technology Co ltd
Priority to CN202210895075.5A priority Critical patent/CN114972659B/en
Publication of CN114972659A publication Critical patent/CN114972659A/en
Application granted granted Critical
Publication of CN114972659B publication Critical patent/CN114972659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Geometry (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Graphics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a system for converting a two-dimensional drawing into a three-dimensional model for drawing examination, wherein the method obtains a plurality of two-dimensional sub-drawings by obtaining the two-dimensional drawing and dividing the two-dimensional drawing; acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data; converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data; acquiring examination articles, and extracting examination objects in the examination articles and parameter requirements among the examination objects; judging whether the three-dimensional model conforms to the examination provisions or not according to the three-dimensional model and the parameter requirements; if not, a report is generated and used for marking errors of the two-dimensional drawing and the three-dimensional model, manual comparison of the drawing with examination provisions one by one is omitted, and the problem that the accuracy of the examination is difficult to guarantee in the traditional CAD-based plane drawing is effectively solved.

Description

Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination
Technical Field
The invention belongs to the technical field of converting two-dimensional drawings into three-dimensional models, and particularly relates to a method and a system for converting two-dimensional drawings into three-dimensional models for drawing examination.
Background
With economic development and urbanization, a large number of CAD (computer-aided design) architectural design drawings are generated for each urban building project. Whether the manually designed and drawn CAD drawing accords with the specification or not needs an experienced engineer to carry out construction drawing examination at present, wherein the construction drawing examination is an important link for controlling the quality of a design file and influences the construction effect of an actual project.
Due to the diversity of CAD engineering drawings and the complexity of examination provisions, the problems of large workload, high cost, low efficiency, examination omission and the like of manual examination exist, and further the problems of construction period delay, fund waste and the like are caused. On the other hand, with the development of artificial intelligence technology, artificial intelligence has been able to solve problems in relatively complicated industrial fields. The artificial intelligence technology is adopted to improve the accuracy and efficiency of the drawing examination, the time and personnel for checking the drawing can be reduced through intelligent drawing examination, the time for closed drawing examination is shortened, the labor cost is reduced, the drawing quality is improved, and the construction period delay and the fund turnover cost caused by the drawing quality problem in the construction stage are reduced.
At present, most of artificial intelligence construction drawing examination is based on CAD plane drawings, wherein CAD drawing information is presented based on a single drawing frame, information in each drawing frame is limited, information in each drawing frame is related to each other, and if the information in the single drawing frame is confirmed without considering the completeness of the whole, the accuracy of drawing examination is still difficult to guarantee.
Disclosure of Invention
Based on the method and the system, the invention provides a method and a system for converting a two-dimensional drawing into a three-dimensional model for drawing examination, and aims to solve the problem that the drawing examination accuracy is difficult to guarantee based on CAD plane drawings in the prior art.
The first aspect of the embodiment of the present invention provides a method for converting a two-dimensional drawing into a three-dimensional model for drawing review, where the method includes:
acquiring a two-dimensional drawing, and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings;
acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data;
converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data;
acquiring examination articles, and extracting examination objects in the examination articles and parameter requirements among the examination objects;
judging whether the three-dimensional model conforms to the examination provisions or not according to the three-dimensional model and the parameter requirements;
and if not, generating a report, wherein the report is used for marking errors of the two-dimensional drawing and the three-dimensional model.
Further, the step of obtaining a two-dimensional drawing and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings includes:
establishing a picture frame identification model according to a preset picture frame shape and a preset picture frame size;
inputting the two-dimensional drawing into the drawing frame identification model, and identifying a drawing frame in the two-dimensional drawing;
and dividing the two-dimensional drawing into a plurality of two-dimensional sub-drawings according to the drawing frame.
Further, the component information includes drawing text sub-information and component parameter sub-information, where the component parameter sub-information at least includes a space parameter, a size parameter, and an attribute parameter of each component graphic.
Further, the step of converting the target data into corresponding three-dimensional model data and generating a three-dimensional model according to the three-dimensional model data includes:
acquiring the three-dimensional model data, wherein the three-dimensional model data comprises three-dimensional model subdata of each component;
classifying the three-dimensional model subdata according to component types to generate a corresponding three-dimensional model component family;
sequentially extracting all components from the three-dimensional model component family according to a preset sequence, and installing the components at a set spatial position to obtain a three-dimensional submodel;
and according to the member information, performing spatial connection on the related three-dimensional submodels to form the three-dimensional model.
Further, the step of spatially connecting the related three-dimensional submodels according to the component information to form the three-dimensional model includes:
and acquiring the attribute parameters, and assigning the attribute parameters to the corresponding three-dimensional submodels, wherein the attribute parameters at least comprise material parameters and thermal performance parameters.
Further, the step of determining whether the three-dimensional model complies with the examination provision according to the three-dimensional model and the parameter requirements includes:
acquiring the three-dimensional submodel, and judging whether the three-dimensional submodel is complete or not;
and if not, executing a report, wherein the report is used for marking the errors of the two-dimensional drawing and the three-dimensional model.
Further, the step of determining whether the three-dimensional model conforms to the examination provision according to the three-dimensional model and the parameter requirement includes:
matching the corresponding three-dimensional submodels according to the examination object, and acquiring the space coordinates of each three-dimensional submodel;
judging whether the space position requirement is met or not according to the space coordinates;
and if not, executing a report, wherein the report is used for marking the errors of the two-dimensional drawing and the three-dimensional model.
A second aspect of an embodiment of the present invention provides a system for converting a two-dimensional drawing into a three-dimensional model for drawing review, where the system includes:
the first acquisition module is used for acquiring a two-dimensional drawing and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings;
the conversion module is used for acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data;
the three-dimensional model generation module is used for converting the target data into corresponding three-dimensional model data and generating a three-dimensional model according to the three-dimensional model data;
the second acquisition module is used for acquiring the examination articles and extracting examination objects in the examination articles and parameter requirements among the examination objects;
the first judgment module is used for judging whether the three-dimensional model conforms to the examination provisions or not according to the three-dimensional model and the parameter requirements;
and the report generation module is used for generating a report when the three-dimensional model is judged not to accord with the examination provisions, and the report is used for marking errors of the two-dimensional drawing and the three-dimensional model.
A third aspect of embodiments of the present invention provides a computer-readable storage medium on which is stored a computer program that, when executed by a processor, implements the method for converting a two-dimensional drawing into a three-dimensional model for drawing review provided by the first aspect.
A fourth aspect of the embodiments of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for converting a two-dimensional drawing into a three-dimensional model for drawing review provided in the first aspect.
The method and the system for converting the two-dimensional drawing into the three-dimensional model for drawing examination provided by the embodiment of the invention have the following beneficial effects:
obtaining a plurality of two-dimensional sub-drawings by obtaining a two-dimensional drawing and dividing the two-dimensional drawing; acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data; converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data; acquiring examination articles, and extracting examination objects in the examination articles and parameter requirements among the examination objects; judging whether the three-dimensional model meets the examination provisions or not according to the three-dimensional model and the parameter requirements; if not, a report is generated and used for marking errors of the two-dimensional drawing and the three-dimensional model, manual comparison of the drawing with examination provisions one by one is omitted, and the problem that the accuracy of the examination is difficult to guarantee in the traditional CAD-based plane drawing is effectively solved.
Drawings
Fig. 1 is a flowchart illustrating an implementation of a method for converting a two-dimensional drawing into a three-dimensional model for drawing review according to a first embodiment of the present invention;
FIG. 2 is a block diagram of a system for converting a two-dimensional drawing into a three-dimensional model for drawing review according to a second embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for purposes of illustration only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Example one
Referring to fig. 1, fig. 1 shows a method for converting a two-dimensional drawing into a three-dimensional model for drawing review according to a first embodiment of the present invention, where the method specifically includes steps S01 to S06.
And S01, acquiring a two-dimensional drawing, and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings.
The two-dimensional drawings usually comprise a plurality of two-dimensional sub-drawings, the two-dimensional sub-drawings are separated by a drawing frame, specifically, a drawing frame identification model is established according to a preset drawing frame shape and a drawing frame size, the two-dimensional drawings are input into the drawing frame identification model, drawing frames in the two-dimensional drawings are identified, the two-dimensional drawings are divided into a plurality of two-dimensional sub-drawings according to the drawing frame, it needs to be explained that the shape and the size of the drawing frame are standard, the drawing frame shape is generally a rectangle, and the drawing frame size is a fixed value, for example, the drawing frame can be a rectangle with the length of 1189mm, the width of 841mm, a rectangle with the length of 1338mm, the width of 841mm, a rectangle with the length of 1486mm, the width of 841mm, a rectangle with the width of 594mm, and the like.
Furthermore, the drawing frames in the two-dimensional drawing are identified, the two-dimensional sub-drawings in the model space and each layout space in the two-dimensional drawing are divided according to the drawing frames to form independent drawings, meanwhile, the label information in the two-dimensional sub-drawings is obtained, and the two-dimensional sub-drawings are classified according to engineering projects, single sub-projects, design specialties, drawing types and the like, so that drawing files output by different projects, different design units and different designers are unified and arranged into the same division format.
And S02, acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data.
It should be noted that, the neural network graph deep learning is performed on the existing building component graphs, and a plurality of different types of building component graphs are used as an original training set, wherein the building component graphs include graphs of walls, columns, beams, stairs, roofs, ventilation ducts and other visual angles, the original training set is used for machine learning, the characteristics of each building component graph are captured, and an image recognition model is established, for example, when the building component is a vertical hinged door component, the characteristics of the vertical hinged door component need to be captured, and the characteristics of the vertical hinged door component are door panel indication and opening track arcs; when the building element is a window element, the window element is characterized by a sill indicating line and a belly glass indicating line; when the building element is a toilet, the toilet is characterized by a tank indication and a bowl indication.
By inputting the obtained building component graph into the image recognition model, the building classes to which the building component graph belongs, such as walls, columns, beams and the like, can be obtained, but it is not enough to determine the building classes only, because the functions of the specific building components in each building class are different, for example, the columns comprise frame columns, frame pillars, core columns and the like, and the beams comprise floor frame beams, roof frame beams, cross beams and the like.
In order to determine the specific type of the building component graph, component information corresponding to the component graph is further required to be acquired, and the construction information includes drawing text sub-information and component parameter sub-information, where the component parameter sub-information at least includes spatial parameters, dimension parameters, material parameters, and thermal performance parameters of each component graph, and it can be understood that drawing text sub-information such as a design description, a report text, a form, a comment, a label, and an elevation is usually included in a drawing frame of a two-dimensional drawing, and a connection between the text and the building component graph can be established through the drawing text sub-information, for example, if a certain building component graph is identified as a label and is the label 1, and the label 1 appears a code XZ in the text in the design description, the building component represented as the label 1 is a core column, that is the core column associated with the building component graph, and if the form information is included, text information in the form information is identified, and the identified result is given to the building component.
The two-dimensional drawing is characterized in that each component graph in the two-dimensional drawing is usually placed on a shaft network, the spatial position and the size of each component graph can be determined through the shaft network, the spatial position is particularly represented as a coordinate axis in the CAD drawing, the size generally has data such as length, width and height, and the like, in addition, each component in the CAD drawing is usually provided with material parameters, thermal performance parameters and the like which meet the actual construction requirements, for example, the wall body can be divided into a sintered brick wall, an aerated concrete block wall, a cast-in-place integral wall, a light steel keel partition wall and the like according to the wall body construction materials.
Specifically, after the component graph and the component information corresponding to the component graph are acquired, the component graph and the component information need to be converted into corresponding DWG drawing data, and it can be understood that the DWG drawing data can be identified and read by the CAD.
And S03, converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data.
In this embodiment, according to DWG drawing data and referring to a Revit model data format, converting the parsed DWG drawing data format into a Revit data format for constructing a three-dimensional model, and ensuring that all parsed information is completely transmitted to the Revit model, wherein the three-dimensional model data includes three-dimensional model sub-data of each component, classifying the three-dimensional model sub-data according to component type to generate a corresponding three-dimensional model component family, that is, corresponding to the construction class in the two-dimensional drawing, sequentially extracting each component from the three-dimensional model component family according to spatial parameters and a spatial sequence, and installing the components at a predetermined spatial position to obtain a three-dimensional sub-model, and spatially connecting related three-dimensional sub-models according to the component information to form the three-dimensional model, it should be noted that the model generation sequence can also be organized according to data type and data source batch.
It should be noted that the spatial parameters are switched along with the process of converting the three-dimensional model from the two-dimensional drawing, for example, the position coordinates and the size analyzed through the axis network in the two-dimensional drawing are expressed in the three-dimensional model in a three-dimensional coordinate manner, and in addition, the two-dimensional drawing in each drawing frame has relevance, specifically, each drawing frame may include relevant information with other drawing frames, and the relevant information may appear in the drawing frame in a text form.
Specifically, each three-dimensional submodel is first identified, whether the three-dimensional submodel is complete or not is determined, that is, whether a connection line inside the three-dimensional submodel is abnormal or not is detected, for example, if one three-dimensional submodel is a stair, when a stair flight, a floor platform, a middle platform, a handrail, and the like are missing, it is determined that the three-dimensional submodel is incomplete. When all the three-dimensional submodels are judged to be complete, whether the three-dimensional submodels are in space abnormity is judged, wherein all the three-dimensional submodels are combined into an integral three-dimensional model through the association relation.
And S04, acquiring the examination article, and extracting the examination objects in the examination article and the parameter requirements among the examination objects.
And S05, judging whether the three-dimensional model accords with the examination provisions or not according to the three-dimensional model and the parameter requirements, and if not, executing the step S06.
It should be noted that what the subject of examination has to judge is not only the spatial position requirement but also various attributes thereof, the correspondence relationship of each member, and the like, and taking a door as an example, the material of the door, the fire resistance limit of the door, the size of the door, the type of the room in which the door is located, the room area of the room in which the door is located, the distance of the door from each point in the room, the distance of the door from other doors in the room, and the like need to judge.
The method comprises the steps of obtaining keywords in a review article, wherein the keywords are to-be-reviewed objects, obtaining space position requirements among the review objects and requirements of the review objects, namely combing association logic judgment conditions among the objects according to article contents, obtaining a corresponding object list from a three-dimensional model by means of a Revit query according to review article logic, searching a data storage id of the review objects, obtaining the corresponding model objects and relevant attributes thereof according to the data id, writing a review logic program by adopting a Revit secondary development language C #, obtaining data of the review objects, carrying out logic organization judgment on whether the requirements of standard articles are met or not, and recording and feeding back abnormal points.
It can be understood that, for example, the height of the bottom surface of the window sash opening to the public walkway should not be lower than 2m, in this examination article, the installation requirement for the window in the public walkway is searched, then the height of the window in the public walkway in the three-dimensional model is obtained, and compared with 2m, if less than 2m, it is determined that the examination article is not met; the minimum thickness of the house bearing wall is 160mm, the thickness requirement of the house bearing wall is searched in the examination article, then, the thickness of the house bearing wall in the three-dimensional model is obtained and compared with 160mm, and if the thickness is smaller than 160mm, the judgment that the thickness does not accord with the examination article is made.
And S06, generating a report, wherein the report is used for marking errors of the two-dimensional drawing and the three-dimensional model.
Specifically, according to the result of C # program inspection logic, an inspection report is formed by collecting abnormal objects for recording feedback, the violation condition of an inspection point is explained, the error position is fed back in a three-dimensional model and a two-dimensional drawing, and object marking and character description which does not meet the condition are carried out, so that the error reason can be quickly found and understood, and the inspection after modification is more targeted.
It can be understood that the information fed back after the judgment according to the examination clause is not only the error position in the three-dimensional model, but also includes the detailed information description of the error, in addition, in the process of converting the two-dimensional drawing into the three-dimensional model, the data source of the two-dimensional drawing is recorded, and the error position and the error information are also marked in the original two-dimensional drawing according to the data source of the two-dimensional drawing.
In summary, in the method for converting a two-dimensional drawing into a three-dimensional model for drawing review in the above embodiments of the present invention, a plurality of two-dimensional sub-drawings are obtained by obtaining a two-dimensional drawing and dividing the two-dimensional drawing; acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data; converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data; acquiring examination articles, and extracting examination objects in the examination articles and parameter requirements among the examination objects; judging whether the three-dimensional model meets the examination provisions or not according to the three-dimensional model and the parameter requirements; if not, a report is generated and used for marking errors of the two-dimensional drawing and the three-dimensional model, manual comparison of the drawing with examination provisions one by one is omitted, and the problem that the accuracy of the examination is difficult to guarantee in the traditional CAD-based plane drawing is effectively solved.
Example two
Referring to fig. 2, fig. 2 is a block diagram illustrating a structure of a system for converting a two-dimensional drawing into a three-dimensional model for drawing examination according to an embodiment of the present invention, where the system 200 for converting a two-dimensional drawing into a three-dimensional model for drawing examination includes: a first obtaining module 21, a converting module 22, a three-dimensional model generating module 23, a second obtaining module 24, a first judging module 25 and a report generating module 26, wherein:
the first obtaining module 21 is configured to obtain a two-dimensional drawing, and divide the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings;
a conversion module 22, configured to obtain a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and convert the component graph and the component information into target data, where the component information includes drawing text sub-information and component parameter sub-information, and the component parameter sub-information at least includes a space parameter, a size parameter, and an attribute parameter of each component graph;
a three-dimensional model generation module 23, configured to convert the target data into corresponding three-dimensional model data, and generate a three-dimensional model according to the three-dimensional model data;
a second obtaining module 24, configured to obtain a review article, and extract review objects in the review article and parameter requirements between the review objects;
a first judging module 25, configured to judge whether the three-dimensional model meets the examination provision according to the three-dimensional model and the parameter requirement;
and a report generating module 26, configured to generate a report when it is determined that the three-dimensional model does not conform to the examination provisions, where the report is used to mark errors of the two-dimensional drawing and the three-dimensional model.
Further, the first obtaining module 21 includes:
the picture frame identification model establishing unit is used for establishing a picture frame identification model according to a preset picture frame shape and a preset picture frame size;
the picture frame identification unit is used for inputting the two-dimensional drawing into the picture frame identification model and identifying a picture frame in the two-dimensional drawing;
and the dividing unit is used for dividing the two-dimensional drawing into a plurality of two-dimensional sub-drawings according to the drawing frame.
Further, the three-dimensional model generation module 23 includes:
a three-dimensional model data obtaining unit for obtaining the three-dimensional model data, wherein the three-dimensional model data comprises three-dimensional model subdata of each component;
the three-dimensional model component family generating unit is used for classifying the three-dimensional model subdata according to component types to generate a corresponding three-dimensional model component family;
the three-dimensional sub-model generating unit is used for sequentially extracting all components from the three-dimensional model component family according to a preset sequence and installing the components at a set space position to obtain a three-dimensional sub-model;
and the three-dimensional model generating unit is used for spatially connecting the related three-dimensional submodels according to the member information to form the three-dimensional model.
Further, the three-dimensional model generation unit includes:
and the assignment subunit is used for acquiring the attribute parameters and assigning the attribute parameters to the corresponding three-dimensional submodels, wherein the attribute parameters at least comprise material parameters and the thermal performance parameters.
Further, the system for converting the two-dimensional drawing into the three-dimensional model for drawing examination further comprises:
and the second judgment module is used for acquiring the three-dimensional submodel and judging whether the three-dimensional submodel is complete or not.
Further, the first determining module 25 includes:
a spatial coordinate acquisition unit, configured to match the corresponding three-dimensional submodel according to the examination object, and acquire a spatial coordinate of each three-dimensional submodel;
and the second judgment subunit is used for judging whether the space position requirement is met or not according to the space coordinate.
EXAMPLE III
Referring to fig. 3, a schematic diagram of an electronic device according to a third embodiment of the present invention is shown, which includes a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, where the processor 10 executes the computer program 30 to implement the method for converting a two-dimensional drawing into a three-dimensional model for drawing examination.
The processor 10 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used to execute program codes stored in the memory 20 or process data, such as executing an access restriction program.
The memory 20 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 20 may in some embodiments be an internal storage unit of the electronic device, for example a hard disk of the electronic device. The memory 20 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device. Further, the memory 20 may also include both an internal storage unit and an external storage device of the electronic apparatus. The memory 20 may be used not only to store application software and various types of data of the electronic device, but also to temporarily store data that has been output or is to be output.
It should be noted that the configuration shown in fig. 3 does not constitute a limitation of the electronic device, and in other embodiments the electronic device may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for converting a two-dimensional drawing into a three-dimensional model for drawing review as described above.
Those of skill in the art will understand that the logic and/or steps illustrated in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method for converting a two-dimensional drawing to a three-dimensional model for drawing review, the method comprising:
acquiring a two-dimensional drawing, and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings;
acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data;
converting the target data into corresponding three-dimensional model data, and generating a three-dimensional model according to the three-dimensional model data;
acquiring examination articles, and extracting examination objects in the examination articles and parameter requirements among the examination objects;
judging whether the three-dimensional model conforms to the examination provisions or not according to the three-dimensional model and the parameter requirements;
if not, generating a report, wherein the report is used for marking errors of the two-dimensional drawing and the three-dimensional model;
the step of converting the target data into corresponding three-dimensional model data and generating a three-dimensional model according to the three-dimensional model data comprises:
acquiring the three-dimensional model data, wherein the three-dimensional model data comprises three-dimensional model subdata of each component;
classifying the three-dimensional model subdata according to component types to generate a corresponding three-dimensional model component family;
sequentially extracting all components from the three-dimensional model component family according to a preset sequence, and installing the components at a set spatial position to obtain a three-dimensional submodel;
and according to the member information, carrying out spatial connection on the related three-dimensional submodels to form the three-dimensional model.
2. The method of claim 1, wherein the step of obtaining a two-dimensional drawing and segmenting the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings comprises:
establishing a picture frame identification model according to a preset picture frame shape and a preset picture frame size;
inputting the two-dimensional drawing into the drawing frame identification model, and identifying a drawing frame in the two-dimensional drawing;
and dividing the two-dimensional drawing into a plurality of two-dimensional sub-drawings according to the drawing frame.
3. The method of claim 1, wherein the component information comprises a drawing text sub-information and a component parameter sub-information, wherein the component parameter sub-information comprises at least a spatial parameter, a dimensional parameter, and an attribute parameter of each of the component graphics.
4. The method of claim 3, wherein the step of spatially joining the associated three-dimensional submodels based on the building information to form the three-dimensional model comprises:
and obtaining the attribute parameters, and assigning the attribute parameters to the corresponding three-dimensional submodels, wherein the attribute parameters at least comprise material parameters and thermal performance parameters.
5. The method of claim 1, wherein the step of determining whether the three-dimensional model complies with the inspection treaty based on the three-dimensional model and the parametric requirements comprises:
acquiring the three-dimensional submodel, and judging whether the three-dimensional submodel is complete or not;
and if not, executing a step of generating a report, wherein the report is used for marking errors of the two-dimensional drawing and the three-dimensional model.
6. The method of claim 1, wherein the step of determining whether the three-dimensional model complies with the review article based on the three-dimensional model and the parameter requirements comprises:
matching the corresponding three-dimensional submodels according to the examination object, and acquiring the space coordinate of each three-dimensional submodel;
judging whether the space position requirement is met or not according to the space coordinates;
and if not, executing a report, wherein the report is used for marking the errors of the two-dimensional drawing and the three-dimensional model.
7. A system for converting a three-dimensional model from a two-dimensional drawing for drawing inspection, the system comprising:
the first acquisition module is used for acquiring a two-dimensional drawing and dividing the two-dimensional drawing to obtain a plurality of two-dimensional sub-drawings;
the conversion module is used for acquiring a component graph and component information corresponding to the component graph according to the two-dimensional sub-drawing, and converting the component graph and the component information into target data;
the three-dimensional model generation module is used for converting the target data into corresponding three-dimensional model data and generating a three-dimensional model according to the three-dimensional model data;
the second acquisition module is used for acquiring the examination articles and extracting examination objects in the examination articles and parameter requirements among the examination objects;
the first judgment module is used for judging whether the three-dimensional model conforms to the examination provisions or not according to the three-dimensional model and the parameter requirements;
the report generation module is used for generating a report when the three-dimensional model is judged not to accord with the examination provisions, and the report is used for marking errors of the two-dimensional drawing and the three-dimensional model;
the three-dimensional model generation module comprises:
a three-dimensional model data obtaining unit for obtaining the three-dimensional model data, wherein the three-dimensional model data comprises three-dimensional model subdata of each component;
the three-dimensional model component family generating unit is used for classifying the three-dimensional model subdata according to component types to generate a corresponding three-dimensional model component family;
the three-dimensional sub-model generating unit is used for sequentially extracting all components from the three-dimensional model component family according to a preset sequence and installing the components at a set space position to obtain a three-dimensional sub-model;
and the three-dimensional model generating unit is used for spatially connecting the related three-dimensional submodels according to the member information to form the three-dimensional model.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of converting a two-dimensional drawing into a three-dimensional model for drawing review as set forth in any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method of converting a two-dimensional drawing into a three-dimensional model for drawing review as claimed in any one of claims 1-6 when the program is executed by the processor.
CN202210895075.5A 2022-07-28 2022-07-28 Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination Active CN114972659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210895075.5A CN114972659B (en) 2022-07-28 2022-07-28 Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210895075.5A CN114972659B (en) 2022-07-28 2022-07-28 Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination

Publications (2)

Publication Number Publication Date
CN114972659A CN114972659A (en) 2022-08-30
CN114972659B true CN114972659B (en) 2022-11-01

Family

ID=82970086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210895075.5A Active CN114972659B (en) 2022-07-28 2022-07-28 Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination

Country Status (1)

Country Link
CN (1) CN114972659B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115935493B (en) * 2023-03-15 2023-05-23 江西中至科技有限公司 Method and system for converting two-dimensional CAD drawing into BIM model
CN116226674B (en) * 2023-05-06 2023-09-05 中国建筑西南设计研究院有限公司 Layout model training method, layout method and device for frame beams
CN118038482B (en) * 2024-04-12 2024-06-25 江西少科智能建造科技有限公司 Building bottom reinforcement area height inspection method, system, storage medium and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130072599A (en) * 2011-12-22 2013-07-02 한국항공우주산업 주식회사 Method for transforming of 3d drawing system
CN107832541A (en) * 2017-11-20 2018-03-23 中铁第四勘察设计院集团有限公司 One kind parameterizes two-dimentional drawing/threedimensional model intelligent conversion method and system
CN110517223A (en) * 2019-07-11 2019-11-29 万翼科技有限公司 Drawing review method, apparatus, computer equipment and storage medium
CN112560275A (en) * 2020-12-22 2021-03-26 中设数字技术股份有限公司 Two-dimensional three-dimensional real-time linkage on-line drawing annotation checking system and method
CN112966139A (en) * 2021-02-26 2021-06-15 苍穹数码技术股份有限公司 Data processing method and device, electronic equipment and computer storage medium
CN113298497A (en) * 2021-05-28 2021-08-24 浙江数智交院科技股份有限公司 Drawing review method and system based on building information model
CN113643405A (en) * 2021-08-11 2021-11-12 广州华森建筑与工程设计顾问有限公司 Marking method, examining method, system and equipment for graph-model linkage
CN114119795A (en) * 2021-11-09 2022-03-01 广东利元亨智能装备股份有限公司 Paperless auditing method, PLM system, tablet personal computer device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276124A (en) * 2019-06-19 2019-09-24 国网上海市电力公司 A kind of digitlization examines the information extracting method of mathematical model
US11398073B2 (en) * 2020-06-23 2022-07-26 Draawn, LLC Method to facilitate mass conversion of 2D drawings to 3D models

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130072599A (en) * 2011-12-22 2013-07-02 한국항공우주산업 주식회사 Method for transforming of 3d drawing system
CN107832541A (en) * 2017-11-20 2018-03-23 中铁第四勘察设计院集团有限公司 One kind parameterizes two-dimentional drawing/threedimensional model intelligent conversion method and system
CN110517223A (en) * 2019-07-11 2019-11-29 万翼科技有限公司 Drawing review method, apparatus, computer equipment and storage medium
CN112560275A (en) * 2020-12-22 2021-03-26 中设数字技术股份有限公司 Two-dimensional three-dimensional real-time linkage on-line drawing annotation checking system and method
CN112966139A (en) * 2021-02-26 2021-06-15 苍穹数码技术股份有限公司 Data processing method and device, electronic equipment and computer storage medium
CN113298497A (en) * 2021-05-28 2021-08-24 浙江数智交院科技股份有限公司 Drawing review method and system based on building information model
CN113643405A (en) * 2021-08-11 2021-11-12 广州华森建筑与工程设计顾问有限公司 Marking method, examining method, system and equipment for graph-model linkage
CN114119795A (en) * 2021-11-09 2022-03-01 广东利元亨智能装备股份有限公司 Paperless auditing method, PLM system, tablet personal computer device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Dynamic 3D model construction using architectural house plans;R.G.N.Ruwanthika;《IEEE Xplore》;20170309;全文 *
基于BIM技术的审查模式探索;卢春峰等;《重庆建筑》;20170225(第02期);全文 *
基于CATIA的智能审图系统技术研究及应用;刘振波;《铁道机车与动车》;20210930;全文 *

Also Published As

Publication number Publication date
CN114972659A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN114972659B (en) Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination
CN111159453B (en) Label and component matching method and device for CAD drawing
US20110218777A1 (en) System and method for generating a building information model
CN110348368B (en) Method, computer readable medium and system for artificial intelligence analysis of house type graph
CN111782584B (en) Building drawing preprocessing system, method, electronic equipment and storage medium
CN109543209B (en) Management method and device for component database
CN114241509B (en) Space segmentation method, system, storage medium and equipment based on construction drawing
CN111523167A (en) BIM model generation method, device, equipment and storage medium
CN114722963A (en) Legend identification method and system for generating three-dimensional BIM (building information modeling) model by using two-dimensional drawing of subway station
Musella et al. Building information modeling and artificial intelligence: Advanced technologies for the digitalisation of seismic damage in existing buildings
CN113673413A (en) Method and device for examining architectural drawings, computer readable medium and electronic equipment
Tzedaki et al. Capturing as-built information for a BIM environment using 3D laser scanner: a process model
Urbieta et al. Generating BIM model from structural and architectural plans using Artificial Intelligence
CN114168795A (en) Building three-dimensional model mapping and storing method and device, electronic equipment and medium
Puri et al. Toward automated dimensional quality control of precast concrete elements using design BIM
CN117077239A (en) Intelligent online drawing examination method and system
CN115097974B (en) BIM intelligent auxiliary consultation system and method
Vergeest et al. A methodology for reusing freeform shape content
CN112801620B (en) Engineering information processing method, device, equipment and storage medium
NL2025739B1 (en) Artificial intelligence and augmented reality system and method
Joy et al. Automation of material takeoff using computer vision
CN111612890A (en) Method and device for automatically generating three-dimensional model from two-dimensional house type diagram and electronic equipment
CN117540460A (en) Intelligent drawing examination method and system based on SaaS platform
CN117992620B (en) Foundation pit engineering evaluation method, system, storage medium and electronic equipment
Abdelhameed et al. Smart Solutions and Architectural Design: a framework for building service systems' design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant