Disclosure of Invention
The invention provides a method and a device for generating a lintel of a building opening based on a BIM technology, which can realize the rapid generation of the lintel of the building opening.
In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for generating a lintel of a building opening based on a BIM technique, where the method includes the following steps:
acquiring information from a building file to construct a first data set, wherein the first data set comprises wall center line vectors, door and window center points, wall body width, door and window height and door and window width information;
determining a lintel type, a lintel width, a lintel height and lintel center line segment information based on a rule set and the first data set, wherein the rule set comprises a range interval, an overhanging length and lintel height information;
and generating the lintel based on the lintel type, the lintel width, the lintel height and the lintel center line segment information.
Preferably, the determining of the lintel type, the lintel width, the lintel height, and the lintel center line segment information based on the rule set and the first data set specifically includes: determining the lintel type based on the lintel width and the lintel height.
Preferably, the determining of the lintel type, the lintel width, the lintel height, and the lintel center line segment information based on the rule set and the first data set specifically includes: and determining the height of the lintel based on the rule set, and determining the width of the lintel based on the width of the wall.
Preferably, the determining of the lintel type, the lintel width, the lintel height, and the lintel center line segment information based on the rule set and the first data set specifically includes: determining the lintel length based on the door and window width and the overhanging length, determining the lintel center line segment height based on the lintel height and the door and window height, and determining the lintel center line segment based on the lintel length, the door and window center point and the lintel center line segment height.
Preferably, the method further comprises the steps of: and judging whether the lintel central line segment exceeds two sides of the wall central line segment, if so, correcting the lintel central line segment.
Preferably, the step of judging whether the lintel center line segment exceeds two sides of the wall center line segment, if yes, the lintel center line segment is corrected, specifically: and judging whether the lintel center line segment exceeds two sides of the wall center line segment, if so, replacing the lintel center line segment point coordinates with corresponding wall center line segment point coordinates.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a lintel of a building opening based on a BIM technique, including:
the system comprises a set construction module, a data acquisition module and a data processing module, wherein the set construction module is used for acquiring information from a building file to construct a first data set, and the first data set comprises a wall center line vector, a door and window center point, a wall width, a door and window height and door and window width information;
the lintel information determining module is used for determining lintel type, lintel width, lintel height and lintel center line segment information based on a rule set and the first data set, wherein the rule set comprises a range interval, an overhanging length and lintel height information;
and the lintel generation module is used for generating the lintel based on the lintel type, the lintel width, the lintel height and the lintel center line segment information.
Preferably, in the lintel information determining module, based on a rule set and the first data set, the lintel type, the lintel width, the lintel height, and the lintel center line segment information are determined, which specifically includes: determining the lintel type based on the lintel width and the lintel height.
In a third aspect, an embodiment of the present invention provides a terminal, including:
a memory and a processor;
wherein the memory has stored thereon a computer program executable by the processor;
when the computer program is read and executed by the processor, it causes the processor to perform the method according to any of the first aspects.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including at least one piece of code, the at least one piece of code being executable by a processor and implementing the method according to any one of the first aspect.
By adopting the technical scheme, based on the BIM technology, firstly, obtaining information from a building file through a Revit platform to construct a first data set, wherein the first data set comprises a wall center line vector, a door and window center point, a wall body width, a door and window height and door and window width information; and then determining the lintel type, the lintel width, the lintel height and the lintel center line segment information according to the rule set (comprising the range interval, the outer elongation and the lintel height information) and the first data set, and automatically generating the lintel based on the determined lintel type, the lintel width, the lintel height and the lintel center line segment information, thereby realizing the rapid generation of the lintel of the building opening.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In the description of the embodiments herein, "/" indicates an inclusive meaning unless otherwise specified, for example, a/B may indicate a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
First, a BIM (building Information modeling) technology is introduced, which is a datamation tool applied to engineering design, construction and management, and is used for sharing and transmitting in the whole life cycle process of project planning, operation and maintenance by integrating datamation and informatization models of buildings, so that engineering technicians can correctly understand and efficiently respond to various building Information, a foundation for cooperative work is provided for design teams and all building main bodies including buildings and operation units, and important roles are played in improving production efficiency, saving cost and shortening construction period.
Revit is the name of a suite of software series available from Autodesk. The Revit series software is constructed for a Building Information Model (BIM) and can help architects to design, build and maintain buildings with better quality and higher energy efficiency.
When a door and window opening is formed in a wall body and the wall body opening is larger than 300mm, in order to support various loads transmitted by a masonry body at the upper part of the opening and transmit the loads to walls at two sides of the opening such as a door and a window, a cross beam is often arranged on the door and window opening and is called as a lintel.
In a first aspect, an embodiment of the present invention provides a method for generating a lintel of a building opening based on a BIM technique, as shown in fig. 1, including the following steps:
s101, acquiring information from a building file to construct a first data set, wherein the first data set comprises a wall center line vector, a door and window center point, a wall width, a door and window height and door and window width information;
firstly, opening a building file through a Revit platform, and reading related information from the building file, wherein the information comprises: the method comprises the steps of combining information of a wall center line vector, a door and window center point, a wall body width, a door and window height and door and window width into a data set, namely a first data set.
Further, the method also comprises the following steps: and acquiring elevation information from the building file, and creating a data collection surface according to the elevation information.
Step S102, determining a lintel type, a lintel width, a lintel height and lintel center line segment information based on a rule set and a first data set, wherein the rule set comprises a range interval, an overhanging length and the lintel height information;
the rule set can be formulated through national relevant specifications, and can also be defined according to the door width by a user. Rule set { range interval, overhang length, lintel height }.
And S103, generating the lintel based on the lintel type, the lintel width, the lintel height and the lintel center line segment information.
And the lintel member can be generated according to the information of the lintel type, the lintel width, the lintel height and the lintel center line segment.
By adopting the technical scheme, based on the BIM technology, firstly, obtaining information from a building file through a Revit platform to construct a first data set, wherein the first data set comprises a wall center line vector, a door and window center point, a wall body width, a door and window height and door and window width information; and then determining the lintel type, the lintel width, the lintel height and the lintel center line segment information according to the rule set (comprising the range interval, the outer elongation and the lintel height information) and the first data set, and automatically generating the lintel based on the determined lintel type, the lintel width, the lintel height and the lintel center line segment information, thereby realizing the rapid generation of the lintel of the building opening.
As a preferred embodiment, in step S102: determining the lintel type, the lintel width, the lintel height and the lintel center line segment information based on the rule set and the first data set, and specifically comprising the following steps: the lintel type is determined based on the lintel width and the lintel height.
Specifically, a lintel type name meeting the design standard is generated according to input parameters, namely lintel width and lintel height, whether the type is contained in the project or not is searched, and if yes, the lintel type is output.
As a preferred embodiment, in step S102: determining the lintel type, the lintel width, the lintel height and the lintel center line segment information based on the rule set and the first data set, and specifically comprising the following steps: and determining the height of the lintel based on the rule set, and determining the width of the lintel based on the width of the wall.
The method specifically comprises the following steps: and determining the height of the lintel according to the data in the door and window width matching rule set.
Such as: and w1<, the door and window width < w2, and the corresponding lintel height can be obtained from the rule set according to the interval range.
The width of the lintel is equal to the width of the wall.
As a preferred embodiment, in step S102: determining the lintel type, the lintel width, the lintel height and the lintel center line segment information based on the rule set and the first data set, and specifically comprising the following steps: determining the lintel length based on the width and the overhanging length of the door window, determining the height of the lintel central line section based on the height of the lintel and the height of the door window, and determining the lintel central line section based on the lintel length, the center point of the door window and the height of the lintel central line section.
Specifically, the lintel length is the door window width + overhang length 2. Wherein, the overhanging length can be obtained based on the interval range and the corresponding in the rule set.
The height of the center line segment of the lintel is as follows: lintel height + door and window height.
Based on the lintel length, the coordinates of the center point of the door and the window and the height of the lintel center line segment, the coordinates of the starting point and the ending point of the lintel center line segment can be obtained.
As a preferred embodiment, the method further comprises the steps of: and judging whether the lintel central line segment exceeds two sides of the wall central line segment, and if so, correcting the lintel central line segment.
Specifically, the wall center line vector is rotated and translated to check whether the lintel center line segment exceeds two sides of the host wall center line segment, and if so, the lintel center line segment needs to be corrected.
As a preferred embodiment, it is determined whether the lintel center line segment exceeds both sides of the wall center line segment, and if yes, the lintel center line segment is corrected, specifically: and judging whether the lintel center line segment exceeds two sides of the wall center line segment, if so, replacing the lintel center line segment point coordinates with corresponding wall center line segment point coordinates.
As shown in fig. 2 and 3, since the wall is not necessarily completely parallel to the X-axis or the Y-axis, if the wall is inclined, addition and subtraction cannot be simply performed when calculating the length of the center line of the corresponding lintel. At this time, the slope of the door and window host wall needs to be calculated, and a corresponding formula is obtained through the slope, so that the final point coordinate of the overhanging length is deduced.
Therefore, verification needs to be carried out on the boundary of the host wall, and whether the starting point or the end point of the generated lintel center line segment close to the corresponding wall center line segment is outside the wall positioning line segment, namely L P0 is outside the P0 is verified.
Knowing the p0 and p1 point coordinates and tl length, the t0 coordinate is obtained.
t0.x=p1.x+(tl/l)×|p1.x-p0.x|
t0.y=p1.y+(tl/l)×|p1.y-p0.y|
t0=(t0.x,t0.y,p1.z)
It is eventually necessary to retract L P0 to the P0 position to obtain a new lintel center line segment.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a lintel of a building opening based on a BIM technique, as shown in fig. 4, including:
the set building module 21 is configured to obtain information from a building file to build a first data set, where the first data set includes a wall centerline vector, a door and window center point, a wall width, a door and window height, and door and window width information;
the lintel information determining module 22 is configured to determine lintel type, lintel width, lintel height, and lintel center line segment information based on a rule set and a first data set, where the rule set includes range interval, overhanging length, and lintel height information;
and the lintel generating module 23 is configured to generate a lintel based on the lintel type, the lintel width, the lintel height, and the lintel center line segment information.
As a preferred embodiment, the determining module 22 for lintel information determines the lintel type, the lintel width, the lintel height, and the lintel center line segment information based on the rule set and the first data set, and specifically includes: the lintel type is determined based on the lintel width and the lintel height.
The device for generating a building opening lintel based on the BIM technology in this embodiment may be used to implement the technical solutions in the corresponding method embodiments, and the implementation principle and the technical effect are similar, where the functions of each module may refer to the corresponding description in the method embodiments, and are not described herein again.
In a third aspect, an embodiment of the present invention provides a terminal, including:
a memory and a processor;
wherein the memory has stored thereon a computer program executable by the processor;
when the computer program is read and executed by the processor, it causes the processor to perform the method according to any of the first aspects.
The memory includes, but is not limited to, Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CD-ROM), which is used for storing instructions and data. The processor may be a Central Processing Unit (CPU).
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including at least one piece of code, the at least one piece of code being executable by a processor and implementing the method according to any one of the first aspect.
The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, e.g., from one website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber line (Digital Subscriber line L ine, DS L)) or wirelessly (e.g., infrared, wireless, optical Disk, etc.), to another website, computer, server, or data center via a Solid State storage medium, such as a Solid State storage medium, such as a DVD, a Digital Versatile Disc (DVD), a DVD-readable storage medium, a Digital Disk-readable storage medium, a DVD-readable storage medium, a Digital Disk, or a Digital Disk-readable storage medium, a Solid State storage medium, a DVD-readable storage medium, a computer readable storage medium, or a computer readable storage medium, a computer readable storage medium, a computer readable medium, a.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.