Disclosure of Invention
The invention provides a method, a device and a terminal for generating a ground depot anti-collision plate based on a BIM (building information modeling) technology, which can realize the rapid establishment of the ground depot anti-collision plate.
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 basement crash panel based on a BIM technique, where the method includes the following steps:
opening a building file through a Revit platform, and selecting a structure file to link the building file and the structure file;
based on the building file and the structure file, reading wall position information, garage room information and structure column information;
determining an upper fender data set and a bottom fender data set based on the wall position information, the garage room information and the structural column information;
and generating the anti-collision plate based on the upper anti-collision plate data set and the bottom anti-collision plate data set.
Preferably, the method further comprises the steps of: and determining a room outer corner set based on the intersection of the structural column information and the garage room information.
Preferably, the determining a bottom impact plate data set based on the wall position information, the garage room information, and the structural column information specifically includes: and acquiring intersection bottom surface corner point information based on the wall body position information and the structural column information, determining a first bottom anti-collision plate data set based on a preset eccentricity, and determining a bottom anti-collision plate data set based on the room outer corner point set and the first bottom anti-collision plate data set.
Preferably, the determining of the upper crash barrier data set based on the wall position information, the garage room information, and the structural column information specifically includes: and determining whether the wall information and the structural column information are intersected or not based on the wall information and the structural column information, determining a first upper anti-collision plate data set based on the intersection condition, and determining an upper anti-collision plate data set based on the room outer corner point set and the first upper anti-collision plate data set.
Preferably, the upper fender data set includes 4 corner boolean values of the upper fender and structural column center point information, the bottom fender data set includes 4 corner boolean values of the bottom fender and structural column center point information, and based on the upper fender data set and the bottom fender data set, a fender is generated, specifically: and generating the anti-collision plate based on the 4 corner point Boolean values of the upper anti-collision plate, the 4 corner point Boolean values of the bottom anti-collision plate, the structural column center point information and the structural column length and width information contained in the structural column information, wherein the Boolean values are used for marking whether the anti-collision plate is generated or not.
Preferably, the set of corner points outside the room comprises structural column center point information and a boolean value of 4 corner points at the bottom of the crash pad, wherein the boolean value is used to mark whether the room is outside.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a basement crash panel based on a BIM technique, including:
the linkage module is used for opening the building file through the Revit platform and selecting the structure file to link the building file and the structure file;
the information reading module is used for reading wall position information, garage room information and structural column information based on the building file and the structural file;
the set determining module is used for determining an upper anti-collision plate data set and a bottom anti-collision plate data set based on the wall position information, the garage room information and the structural column information;
and the generating module is used for generating the anti-collision plate based on the upper anti-collision plate data set and the bottom anti-collision plate data set.
Preferably, the system further comprises a first determining module, configured to determine a set of corner points outside the room based on an intersection of the structural column information and the garage room information.
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 aspect.
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, the BIM technology is applied, firstly, the building file is opened through the Revit platform, the structure file is selected to link the building file and the structure file to form a project main body, and the wall position information, the garage room information and the structural column information are read through the building file and the structure file; then determining an upper anti-collision plate data set and a bottom anti-collision plate data set based on the wall position information, the garage room information and the structural column information; the anti-collision plate can be directly generated on the basis of determining the data set of the upper anti-collision plate and the data set of the bottom anti-collision plate, so that the rapid establishment of the garage anti-collision plate is realized.
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, "/" means "or" unless otherwise specified, for example, a/B may mean 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 a datamation and an informatization model of a building, so that engineering technicians can correctly understand and efficiently deal with various building Information, a foundation for cooperative work is provided for a design team and all parties including a building and an operation unit, 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.
In a first aspect, an embodiment of the present invention provides a method for generating a basement crash panel based on a BIM technique, as shown in fig. 1, including the following steps:
step S101, opening a building file through a Revit platform, and selecting a structure file to link the building file and the structure file;
firstly, opening project building files on a Revit platform, then clicking a link file, selecting the linked structure files for linking, and after the linking is completed, forming project main bodies by the structure files and the building files.
Step S102, based on the building file and the structure file, wall position information, garage room information and structural column information are read;
specifically, wall position information is obtained by reading a building file, the information covers wall three-dimensional information, and room information in a garage needs to be obtained through the building file.
In addition, the method also comprises the step of reading the building file to obtain the bottom elevation for placing the parameters of the anti-collision plate, so that the aim of directly taking out the anti-collision plate from the project is fulfilled.
And obtaining structural column information by reading the structural file, wherein the structural column information comprises structural column central point information and representation structural column body information, and the structural column information comprises structural column length and width information.
Step S103, determining an upper anti-collision plate data set and a bottom anti-collision plate data set based on wall position information, garage room information and structural column information;
the upper anti-collision plate data set and the bottom anti-collision plate data set can be obtained through wall body position information, garage room information and structural column information.
And step S104, generating the anti-collision plate based on the upper anti-collision plate data set and the bottom anti-collision plate data set.
An upper fender data set and a bottom fender data set are determined, and a fender can be generated on the basis of the upper fender data set and the bottom fender data set.
By adopting the technical scheme, the BIM technology is applied, firstly, the building file is opened through the Revit platform, the structure file is selected to link the building file and the structure file to form a project main body, and the wall position information, the garage room information and the structural column information are read through the building file and the structure file; then determining an upper anti-collision plate data set and a bottom anti-collision plate data set based on the wall position information, the garage room information and the structural column information; the anti-collision plate can be directly generated on the basis of determining the data set of the upper anti-collision plate and the data set of the bottom anti-collision plate, so that the rapid establishment of the garage anti-collision plate is realized.
As a preferred embodiment, the method further comprises the steps of: and determining a room outer corner set based on the intersection of the structural column information and the garage room information.
Wherein the corner points refer to 4 corner points of the bottom surface of the structural pillar.
Specifically, matching calculation is carried out on corner points of the bottom surface of the structural column and room information, an intersection is taken, and a set of corner points outside a room is determined by calculating whether the corner points are outside the room. The method is mainly based on the consideration of the reason that the structural columns are arranged in the garage room and the crash-proof plates do not need to be arranged, so that the structural columns in the room can be excluded, and only the crash-proof plate generation condition of the structural columns outside the room is considered.
As a preferred embodiment, the set of corner points outside the room comprises structural column center point information and 4 corner point boolean values at the bottom of the fender, wherein the boolean values are used to mark whether outside the room or not.
The following are specific examples:
as shown in FIG. 2, the room shape intersects the structural column shape, and the intersection sees a shaded portion. The method comprises the steps of setting 4 corner points of a structural column as P0, P1, P2 and P3, setting 4 corner points of intersection as P0, P1, P2 and P3, setting a data set form of the structural column as CT1{ structural column center point, bool: P0, bool: P1, bool: P2 and bool: P3}, wherein a bool value represents whether an anti-collision board is generated, obtaining a corner point P1 in a room according to two graphic displays at the moment, obtaining the structural column set { structural column center point, bool: true, bool: false, bool: true and bool: true }, and obtaining a room outer corner point set according to the mode. Here the boolean values are denoted true and false, true outside the room and false inside the room.
As a preferred embodiment, in step S103: based on wall body position information, garage room information and structure post information, confirm bottom crash board data set, specifically do: and acquiring intersection bottom surface angle point information based on the wall body position information and the structural column information, determining a first bottom anti-collision plate data set based on a preset eccentricity, and determining a bottom anti-collision plate data set based on the room outer angle point set and the first bottom anti-collision plate data set.
As a preferred embodiment, the upper fender data set includes 4 corner boolean values of the upper fender and structural column center point information, the bottom fender data set includes 4 corner boolean values of the bottom fender and structural column center point information, and the fender is generated based on the upper fender data set and the bottom fender data set, specifically: and generating the anti-collision plate based on the 4 corner point Boolean values of the upper anti-collision plate, the 4 corner point Boolean values of the bottom anti-collision plate, the structural column central point information and the structural column length and width information contained in the structural column information, wherein the Boolean values are used for marking whether the anti-collision plate is generated or not.
As a preferred embodiment, in step S103: based on wall body position information, garage room information and structure post information, confirm upper portion crashproof board data set, specifically do: and determining whether the wall information and the structural column information are intersected or not based on the wall information and the structural column information, determining a first upper anti-collision plate data set based on the intersection condition, and determining an upper anti-collision plate data set based on the room outer corner point set and the first upper anti-collision plate data set.
Specifically, the structural column information contains spatial three-dimensional information, the Vector2| X, Y and Z | of the bottom surface of the structural column is extracted, the wall information contains wall three-dimensional information, the wall information contains wall center line information, the wall center line contains Vector | X, Y and Z |, the Vector and Vector2 calculate the angle, and the wall to be intersected can be screened out.
As shown in FIG. 3, the shaded portion is the intersection portion between the wall and the structural column, the central black point is the central point of the structural column, 4 points of the intersection portion are respectively represented by d0, d1, d2 and d3, a first upper crash panel data set DT { structural column central point, bool: P1 → P2, bool: P2 → P3, bool: P3 → P0, bool: P0 → P1} is set, and the storage manner of the bool values between line segments in the data set is divided according to the line segment starting points, namely DT { structural column central point, bool: P1, bool: P2, bool: P3, bool: P0 }. In fig. 3, it can be seen that d1 and d2 in the four corner points where the intersection is obtained are located on the side of P1 → P2, so that it is deduced that any direction can be intersected to obtain a point < d1, d2> where two points in the intersection are located on the bottom side of the intersecting surface, the obtained corner point at the bottom of the structural column is firstly transmitted into the first upper crash pad data set DT { central point, false, true, true }, and the transmitted eccentricity value performs secondary confirmation on the bottom data, compares the boolean corner point value with the boolean value in the room outer corner point set, and transmits the difference according to the secondary confirmation value if the difference is generated, thereby obtaining the upper crash pad data set. If the Boolean values of the corner points of the structural columns in the two sets represent that the crash proof plates need to be generated, generating the Boolean values of the upper crash proof plates, which can be represented by true, adding the Boolean values into an upper crash proof plate data set, if the Boolean values of the corner points in the two sets represent that one is generated and the other is not generated, generating the Boolean values which do not need to generate the upper crash proof plates, which can be represented by false, adding the Boolean values into the upper crash proof plate data set, repeating all structural column information, finally determining the Boolean values of the 4 corner points of the upper crash proof plates, and further determining the upper crash proof plate data set.
Specifically, traversing all walls in the project, taking an intersection based on wall information and structural column information, obtaining intersection bottom corner point information, making correspondence with the corner points of the structural columns, wherein the distance is within a preset eccentricity, the corner points of the corresponding structural columns do not need to generate an anti-collision plate, and determining a first bottom anti-collision plate data set based on the distance. The method comprises the steps that whether 4 corner points on the bottom surface of a structural column need to generate a Boolean value of an anti-collision plate or not is included in a set, then a first bottom anti-collision plate data set is compared with a room outer corner point set to generate a bottom anti-collision plate data set, if all the corner point anti-collision plate Boolean values on the bottom surface of the structural column in the two sets represent that the anti-collision plate needs to be generated, the Boolean value of the anti-collision plate needs to be generated and can be represented by true, the value is added into the bottom anti-collision plate data set, if one corner point Boolean value represents one generation and the other one does not generate, the Boolean value of the anti-collision plate does not need to be generated and can be represented by false, the value is added into the bottom anti-collision plate data set, all the corner column information is traversed, the 4-point Boolean value of the bottom anti-collision plate is finally determined, and then the bottom anti-collision plate data set is determined.
As shown in fig. 4, it can be seen that the eccentricity calculation method is obtained because the wall body appears in the structural column, and the bottom corner point can be secondarily confirmed according to the eccentricity calculation.
Suppose that: the distance between P1 → P2 is W, which is the length of the bottom of the intersecting surface, the distance between d1 → d2 is W, which is the width of the intersecting wall, and the distance of the structural cylinder additionally occupied when the anti-collision plate is generated is E; the maximum eccentricity E is W-W-E, the minimum eccentricity is (W-W)/2-E, namely (W-W)/2-E < E < (W-W)/W-W-E, namely, the distance between any point meeting the conditions of d1 and d2 is calculated from two corner points, and the result is in the range of E, so that the crash-proof plate can be generated, and the Boolean value is set as true.
After the upper anti-collision plate data set and the bottom anti-collision plate data set are determined, the anti-collision plate can be generated based on the 4 corner point boolean values of the upper anti-collision plate, the 4 corner point boolean values of the bottom anti-collision plate, the structural column center point information and the structural column length and width information contained in the structural column information. Through the mode, the rapid establishment of the garage anti-collision plate can be rapidly realized, the anti-collision plate generation condition is accurate, the structural columns in the room and the structural columns tightly attached to the wall body are taken into consideration, the condition that the wall body cannot generate the anti-collision plate is eliminated, and the generation of the structural column anti-collision plate is accurately realized.
Specifically, according to the fact that the upper anti-collision plate data set and the bottom anti-collision plate data set pass through the center point of a structural column to serve as a marker, the two data are combined, the length and the width of the structural column are confirmed, the angular point sequence can be ordered clockwise, the situation that the length data and the width data are exchanged is that the structural column 1< W:200, L: 400>, the structural column 2< W:400, L: 200> do not influence the result of the structural column 1, the finally formed data set is T { the center point, the length, the width of the structural column, four pieces of angular point information { bool: upper angular point information, bool: bottom angular point information } }, and the anti-collision plate is generated through the formed data set.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a basement crash barrier based on a BIM technique, as shown in fig. 5, including:
the link module 21 is used for opening the building file through the Revit platform and selecting the structure file to link the building file and the structure file;
the information reading module 22 is used for reading wall position information, garage room information and structural column information based on the building files and the structural files;
the set determining module 23 is configured to determine an upper fender data set and a bottom fender data set based on the wall position information, the garage room information, and the structural column information;
and a generating module 24, configured to generate the crash panel based on the upper crash panel data set and the bottom crash panel data set.
As a preferred embodiment, the system further comprises a first determining module, configured to determine a set of corner points outside the room based on an intersection of the structural column information and the garage room information.
The device for generating a vault anticollision board 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 descriptions 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 aspect.
The memory includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a 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 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 a wired (e.g., coaxial cable, fiber optic, Digital Subscriber line (Digital Subscriber line L ine, DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to transmit to another website, computer, server, or data center via a wired (e.g., Digital Subscriber line (DVD), DS L)) or wireless (e.g., infrared, wireless, microwave, etc.), may be any available medium such as a Solid State Disk (DVD), or optical Disk (SSD), etc.), or any available medium such as a floppy Disk, a Solid State Disk (DVD), or a Solid State Disk (optical Disk), or optical Disk (optical Disk), which may be a Solid State Disk (DVD), or optical Disk (optical Disk, etc.), may be a Solid State Disk (optical Disk, etc.), or a Solid State Disk (optical Disk, etc.).
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, where 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 or an optical disk, etc.
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.