A method and device for checking distance between buildings
By automatically verifying the spacing between buildings, the problem of low verification efficiency in architectural planning and design is solved, efficient and accurate spacing verification is achieved, and the design quality and construction progress are improved.
Patent Information
- Application Number
- CN202210144205.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-17
AI Technical Summary
In architectural planning and design, due to the complexity of building codes in different regions and the limited experience of designers, the efficiency of building spacing verification is low, and it is impossible to fully discover areas that do not meet the specifications in a timely manner, which affects the construction progress and cost.
Provide a building spacing verification method and device that automatically calculates the spacing between the target building and other buildings by obtaining the building data and preset design rules in the architectural drawing file, performs qualified verification, and realizes automated verification , improve efficiency and accuracy.
It realizes automated verification of architectural drawings, efficiently locates areas that do not meet specifications, improves design quality and construction progress, and saves development costs.
Smart Images

Figure CN114528625B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of building technology, and in particular to a method and device for verifying the distance between buildings. Background Art
[0002] In architectural planning and design, in order to ensure the quality and safety of people's work and life and meet the necessary requirements of sunshine duration, lighting, ventilation, sound insulation, etc., it is usually necessary to control the distance between buildings within an appropriate range.
[0003] The setting of the distance between buildings is greatly affected by territorial rules. For example, there may be some different regulations on the setting of the distance between buildings in different areas of the same place (or region) (for example, inside and outside the Third Ring Road of Beijing); the differences in the regulations on the setting of the distance between buildings across regions (or places) may be more obvious.
[0004] However, in architectural planning and design, the rigid requirements of these local regulations (such as the distance between buildings, etc.) are basic conditions that must be met. However, due to the large number and complexity of architectural regulations (such as spacing regulations) in different places (or regions), as well as the design experience of designers and the degree of local regulations they have mastered, the verification of design drawings usually requires a lot of manpower and time to verify whether the settings of the distance between buildings in the drawings meet the requirements of local regulations, resulting in very low verification efficiency, and it is still impossible to find out the places in the drawings that do not meet the local regulations in a timely and comprehensive manner, which will undoubtedly directly affect the progress of subsequent construction and other links. Summary of the invention
[0005] In view of this, the embodiments of the present disclosure provide a method and device for checking the distance between buildings to solve the problem in the prior art that manual verification of architectural planning and design drawings is inefficient and cannot timely and comprehensively identify areas in the drawings that do not comply with local regulations.
[0006] A first aspect of an embodiment of the present disclosure provides a method for verifying distance between buildings, including:
[0007] Obtaining a building drawing file to be verified, and reading the building data and preset spacing design rules of all buildings in the building drawing file, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings;
[0008] Determine a target building distance between the target building and other buildings according to the first building data, the second building data and a preset distance design rule;
[0009] Determine the actual building distance between the target building and other buildings according to the first building data and the second building data;
[0010] According to the target building distance, the actual building distance and the preset minimum distance threshold, the building distance between the target building and other buildings is qualified checked to obtain the check result.
[0011] A second aspect of the embodiments of the present disclosure provides a device for checking the distance between buildings, including:
[0012] A data reading module is configured to obtain a building drawing file to be verified, and read the building data of all buildings and preset spacing design rules in the building drawing file, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings;
[0013] A theoretical spacing determination module is configured to determine a target building spacing between a target building and other buildings according to the first building data, the second building data and a preset spacing design rule;
[0014] An actual distance determination module is configured to determine an actual building distance between a target building and other buildings according to the first building data and the second building data;
[0015] The verification module is configured to perform a qualified verification on the building distance between the target building and other buildings according to the target building distance, the actual building distance and a preset minimum distance threshold to obtain a verification result.
[0016] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0017] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0018] Compared with the prior art, the embodiments of the present disclosure have at least the following beneficial effects: the embodiments of the present disclosure obtain the building drawing file to be verified, read the building data and preset spacing design rules of all buildings in the building drawing file, wherein the building data of all buildings include the first building data of the target building and the second building data of other buildings; determine the target building spacing between the target building and the other buildings according to the first building data, the second building data and the preset spacing design rules; determine the actual building spacing between the target building and the other buildings according to the first building data and the second building data; perform a qualified verification on the building spacing between the target building and the other buildings according to the target building spacing, the actual building spacing and the preset minimum spacing threshold, obtain a verification result, realize automatic verification of the building drawing file, have high verification efficiency, and can timely and comprehensively locate the places in the design drawings that do not meet the local specifications, have high accuracy and low missed detection rate, which is helpful for guiding designers to make targeted modifications to unqualified items in the drawings in the future, ensures the quality of the design drawings, and is conducive to improving the smooth progress of subsequent construction and other links, saving overall development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 It is a flow chart of a method for checking the distance between buildings provided by an embodiment of the present disclosure;
[0021] Figure 2 It is a schematic diagram of a building bounding box in the building spacing verification method provided by an embodiment of the present disclosure;
[0022] Figure 3 This is a method for checking the distance between buildings provided by the embodiment of the present disclosure. Figure 2 The schematic diagram of extracting the outermost contour of the building bounding box shown;
[0023] Figure 4 It is a schematic diagram of displaying relevant architectural design data of a target building and other buildings on the same page in a building spacing verification method provided by an embodiment of the present disclosure;
[0024] Figure 5 It is a schematic diagram of the overall processing flow of a building distance verification method provided in an embodiment of the present disclosure;
[0025] Figure 6It is a structural schematic diagram of a building spacing calibration device provided by an embodiment of the present disclosure;
[0026] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0028] A method and device for verifying the distance between buildings according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0029] Figure 1 FIG. 1 is a flow chart of a method for checking the distance between buildings provided by an embodiment of the present disclosure. Figure 1 As shown, the building spacing verification method includes:
[0030] Step S101, obtaining the architectural drawing file to be verified, reading the building data of all buildings and the preset spacing design rules in the architectural drawing file, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings.
[0031] The architectural drawing files to be verified can be architectural planning and design drawings designed in the real estate development process according to the relevant requirements of the development project and waiting for acceptance, such as 2D files (CAD design drawings). They can also be 2D files (CAD two-dimensional drawings) derived from 3D files (such as three-dimensional drawings in stp format).
[0032] A storage block for storing building data may be pre-set in the architectural drawing file, and the storage block may be a hidden block.
[0033] As an example, all defined building entities (i.e., all buildings) can be obtained by traversing the preset combination table data in the architectural drawing file to be verified, and by traversing all building entities, the hidden block storing the building data can be found, and then the building data recorded in the hidden block can be read out.
[0034] As an example, suppose that a total of 13 building entities are obtained from a certain architectural drawing file to be verified, that is, there are 13 buildings, and they are numbered as buildings A1~A13. If building A1 is determined as the target building, then buildings A2~A13 all belong to other buildings. When verifying the building distances of all buildings in the architectural drawing file to be verified, the target building and other buildings for each inspection can be determined in sequence according to the arrangement order of the building entities in the combination table data. Specifically, if the arrangement order of the building entities is buildings A1, A2, A3...A13, then the target building can be one of buildings A1, A2, A3...A13 in turn, and the remaining buildings are other buildings.
[0035] The preset spacing design rules specifically refer to the local building design standards in various places, such as "Residential Design Standards of XX Province", "Regulations on Residential Building Spacing and Daily Sunlight Management of Residential Buildings in XX City" - Order No. XX, etc.
[0036] Step S102, determining a target building distance between a target building and other buildings according to the first building data, the second building data and a preset distance design rule.
[0037] The target building distance refers to the theoretical value of the building distance between the target building and other buildings calculated based on the first building data, the second building data and the preset distance design rules.
[0038] Step S103, determining the actual building distance between the target building and other buildings according to the first building data and the second building data.
[0039] The actual building spacing is the actual measurement value between the target building and other buildings in the architectural drawing file to be verified. Usually, in the drawing design process, the physical buildings and their spacing will be scaled according to a certain legend. Therefore, the actual measurement value can be the value converted according to a certain legend.
[0040] Step S104, based on the target building distance, the actual building distance and the preset minimum distance threshold, the building distance between the target building and other buildings is verified to obtain a verification result.
[0041] The preset minimum spacing threshold may be the minimum spacing value in the preset spacing design rule, and its value may be flexibly set according to specific requirements in the rule, for example, it may be set to 9m, 12m, etc.
[0042] The technical solution provided by the embodiment of the present disclosure obtains the building drawing file to be verified, reads the building data and preset spacing design rules of all buildings in the building drawing file, wherein the building data of all buildings include the first building data of the target building and the second building data of other buildings; determines the target building spacing between the target building and the other buildings according to the first building data, the second building data and the preset spacing design rule; determines the actual building spacing between the target building and the other buildings according to the first building data and the second building data; performs a qualified verification on the building spacing between the target building and the other buildings according to the target building spacing, the actual building spacing and the preset spacing threshold, obtains the verification result, realizes the automatic verification of the building drawing file, has high verification efficiency, and can timely and comprehensively locate the places in the design drawings that do not meet the local specifications, has high accuracy and low missed detection rate, which is helpful to guide the designers to make targeted modifications to the unqualified items in the drawings in the future, ensures the quality of the design drawings, is conducive to improving the smooth progress of the subsequent construction and other links, and saves the overall development cost.
[0043] In some embodiments, the above step S102 includes:
[0044] Extract the verification items in the spacing design rules, including building business type verification items, layout verification items, building height verification items and other local specification verification items;
[0045] The first building data, the second building data and the verification item are matched to obtain a matching result, and a target building distance between the target building and other buildings is determined according to the matching result.
[0046] Among them, the building business type verification items, its verification content includes but is not limited to "multi-story buildings (residential | non-residential), residential", "high-rise buildings (residential | non-residential), residential", "multi-story buildings (residential | non-residential), multi-story residential", "multi-story buildings (residential | non-residential), high-rise residential", "multi-story buildings (residential | non-residential), public buildings", "residential buildings, non-residential buildings", etc. The layout verification items, its verification content includes but is not limited to parallel layout, vertical layout and non-parallel and non-vertical layout. The building height verification items, its verification content is mainly the range of building heights. Other local specification verification items, its verification content includes but is not limited to locations (for example, inside the Third Ring Road, outside the Third Ring Road, etc.), etc.
[0047] In addition, the spacing design rules also include the required value (calculation formula) of the corresponding target building spacing and the minimum building spacing threshold.
[0048] Exemplarily, the verification items of the preset spacing design rules include: building business verification items, such as "multi-story building (residential | non-residential), residential"; layout verification items, such as "parallel layout", building angle "≤30°"; other local specification verification items, such as "within the Third Ring Road, building height (height of the target building) ≤18m". In addition, it can also include the calculation formula of the target building spacing, such as "target building spacing = 1.5H", where H represents the building height of the target building; and the minimum building spacing threshold, such as "9m".
[0049] In one embodiment, the first building data includes the building height, the building business type, and the first building rotation angle; the second building data includes the second building rotation angle.
[0050] The above steps match the first building data, the second building data and the verification item to obtain a matching result, and determine the target building distance between the target building and other buildings according to the matching result, including:
[0051] Match the building height with the building height check item to obtain a first matching result;
[0052] Match the building business type with the building business type verification item to obtain a second matching result;
[0053] Determine the layout of the target building and other buildings according to the rotation angle of the first building and the rotation angle of the second building, match the layout with the layout check item, and obtain a third matching result;
[0054] Based on the first matching result, the second matching result, the third matching result, other local code verification items and theoretical spacing requirements, the target building spacing between the target building and other buildings is determined.
[0055] Among them, building formats usually include building types / purposes. Building types / purposes include but are not limited to multi-storey buildings (residential | non-residential), high-rise buildings (residential | non-residential), residential buildings, etc.; the subdivisions of the above building types / purposes include but are not limited to residential buildings, multi-storey residential buildings, high-rise residential buildings, public buildings, non-residential buildings, etc.
[0056] The first building rotation angle and the second building rotation angle refer to the building offsets between the target building and other buildings in the design drawings, that is, their transform attributes (transformation attributes, applied to 2D or 3D transformations of elements, allowing elements to be rotated, scaled, moved, tilted, etc.), including displacement and rotation.
[0057] The outermost contour figure of the first building and the outermost contour figure of the second building refer to the outermost contours (usually irregular polygons) of the target building and other buildings respectively.
[0058] In one embodiment, if the building type of the target building is "multi-story building (residential | non-residential), public building", the building height is X meters, the first building rotation angle is α1; the second building rotation angle of other buildings is α2, then the building height of the target building can be further matched with the building height check item in the preset spacing design rule to obtain a first matching result; the building type of the target building is matched with the building type check item in the preset spacing design rule to obtain a second matching result; the layout of the target building and other buildings is determined according to α1 and α2, and the layout is then matched with the layout check item in the preset spacing design rule to obtain a third matching result. Specifically, by traversing each check item in the preset spacing design rule, it can be found whether there is content in the building height check item that satisfies the building height of X meters to obtain the first matching result; whether there is content consistent with "multi-story building (residential | non-residential), public building", to obtain the second matching result; whether there is content consistent with the layout determined by α1 and α2, to obtain the third matching result.
[0059] For example, if the building type of the target building is "multi-story building (residential | non-residential), public building", the building angle between the two is determined to be 30°<X≥60° based on the rotation angle of the first building and the rotation angle of the second building, and the layout is non-parallel and non-vertical. The preset spacing design rules include: building type verification item "multi-story building (residential | non-residential), public building"; layout verification item "non-parallel and non-vertical", building angle "30°<X≥60°"; other local specification verification items, none. In addition, the target building spacing requirement can also be included as "parallel control". Then, based on the above matching results, other local specification verification items and the requirements for the target building spacing, the target building spacing between the target building and other buildings can be determined.
[0060] Parallel control means that the target building distance between the target building and other buildings must meet the requirements of parallel arrangement. In practical applications, the building angle between the two buildings can be adjusted by adjusting the rotation angle of the first building and / or the rotation angle of the second building, so that the building angle between them is ≤30°, so as to meet the target building distance requirements in this rule.
[0061] In one embodiment, if the building type of the target building is "multi-story building (residential | non-residential), public building", the building angle between the first building and the second building is determined to be ≤30° according to the rotation angle of the first building and the rotation angle of the second building, and the layout is parallel layout, and the preset spacing design rules include: building type verification item "multi-story building (residential | non-residential), public building"; layout verification item "parallel layout", building angle "≤30°"; other local standard verification items, none; target building spacing requirement is "target building spacing = 2.0*H". Then, according to the above matching results, other local standard verification items and target building spacing requirements, it can be determined that the target building spacing between the target building and other buildings is 2H.
[0062] In one embodiment, if the building type of the target building is "multi-story building (residential | non-residential), public building", the building angle between the first building and the second building is determined to be >60° based on the rotation angle of the first building and the rotation angle of the second building, and the layout is vertical arrangement, and the preset spacing design rules include: building type verification item "multi-story building (residential | non-residential), public building"; layout verification item "vertical arrangement", building angle ">60°"; other local specification verification items, none; target building spacing requirement is "target building spacing = 1.5*B", where B represents the side width of the target building. Then, based on the above matching results, other local specification verification items and the target building spacing requirements, it can be determined that the target building spacing between the target building and other buildings is 1.5B.
[0063] The side width of the target building is the vertical height of the bounding box of the target building. In the disclosed embodiment, the side width can be determined according to the rotation angle of the first building or the outermost contour of the first building. For example, the y value of the rotation angle of the first building is the side width.
[0064] The basic principle of the bounding box is to use a slightly larger geometric body with simpler characteristics (called a bounding box) to approximately replace a complex geometric object. For example, Figure 2 As shown, the geometric body surrounded by thick black lines can be used to approximately replace the complex geometric object (the original geometric shape of the target building) to obtain the bounding box of the target building.
[0065] In one embodiment, if the building type of the target building is "high-rise building (residential | non-residential), residential", the building height of the target building is X meters (X≤1.2B), the location is within the Third Ring Road, and the preset spacing design rules include: building type verification item "high-rise building (residential | non-residential), residential"; layout verification item, none; other local standard verification items, building height ≤1.2B, within the Third Ring Road, the target building spacing requirement is "target building spacing = 1.7*H". Then, based on the above matching results, other local standard verification items and the target building spacing requirements, it can be determined that the target building spacing between the target building and other buildings is 1.7H.
[0066] In one embodiment, if the building type of the target building is "high-rise building (residential | non-residential), residential", the building height of the target building is Y meters (Y>1.2B), the location is outside the Third Ring Road, and the preset spacing design rules include: building type verification item "high-rise building (residential | non-residential), residential"; layout verification item, none; other local standard verification items, building height>1.2B, outside the Third Ring Road, target building spacing requirement is "target building spacing = 1.5*M". Then, according to the above matching results, other local standard verification items and target building spacing requirements, it can be determined that the target building spacing between the target building and other buildings is 1.5M.
[0067] In the disclosed embodiment, the face width (horizontal width of the bounding box) and the side face width (vertical height of the bounding box) may be determined according to the rotation angle of the first building of the target building or the outermost contour graphic of the first building.
[0068] In some embodiments, the above step of determining the arrangement of the target building and other buildings according to the rotation angle of the first building and the rotation angle of the second building includes:
[0069] Determine the building angle between the target building and the other building according to the rotation angle of the first building and the rotation angle of the second building;
[0070] Determine the layout of the target building and other buildings based on the building angle.
[0071] Specifically, the building angle between the target building and other buildings can be calculated according to the formula: building angle = first building rotation angle - second building rotation angle. Then, the layout of the target building and other buildings is determined according to the corresponding relationship between the building angle and the layout.
[0072] Exemplarily, the corresponding relationship table between building angles and layout methods is shown in Table 1 below.
[0073] Table 1 Correspondence between building angle and layout
[0074]
[0075] In some embodiments, the first building data includes the outermost contour graphic of the first building, and the second building data includes the outermost contour graphic of the second building. The above step S103 specifically includes:
[0076] According to the outermost contour figures of the first building and the outermost contour figures of the second building, the actual building distance between the target building and other buildings is determined.
[0077] Combination Figure 3 , the outermost contour of the building can be extracted from the bounding box, where Figure 3 The upper part is a schematic diagram of the building bounding box, and the lower part is the outermost contour figure extracted from the schematic diagram of the building bounding box.
[0078] Specifically, the shortest straight-line distance between the target building and other buildings can be determined based on the outermost contour figures of the first building and the outermost contour figures of the second building; and then the shortest straight-line distance can be determined as the actual building distance between the target building and other buildings.
[0079] As an example, the shortest straight-line distance between the outermost contour of the first building and the outermost contour of the second building can be determined based on the polygon-to-polygon distance calculation algorithm to determine the actual building distance between the target building and other buildings.
[0080] In some embodiments, the above step of determining the target building distance between the target building and other buildings according to the first building data, the second building data and the preset distance design rule includes:
[0081] Determine the calculated building distance between the target building and other buildings according to the first building data, the second building data and the preset distance design rules;
[0082] When the calculated building distance is less than the preset minimum distance threshold, the minimum value is determined as the target building distance between the target building and other buildings;
[0083] When the calculated building distance is greater than or equal to a preset minimum value, the calculated building distance is determined as the target building distance between the target building and other buildings.
[0084] As an example, the calculated building distance between the target building and other buildings can be determined according to the above steps; then, the calculated building distance is compared with the minimum distance threshold in the preset distance design rule. If the comparison result is that the calculated building distance is less than the minimum distance threshold, then the minimum distance threshold is determined as the target building distance between the target building and other buildings; otherwise, the calculation result (calculated building distance) is determined as the target building distance between the target building and other buildings.
[0085] In some embodiments, the above step S104 includes:
[0086] Determine whether the actual building distance is greater than the target building distance, and whether the actual building distance is greater than the preset minimum distance threshold;
[0087] If the actual building distance is greater than the target building distance, and the actual building distance is greater than the preset minimum distance threshold, it is determined that the setting of the building distance between the target building and other buildings is qualified.
[0088] As an example, assuming that the target building distance between the target building and other buildings determined according to the above steps is 30.6 meters, the actual building distance is 35 meters, and the preset minimum distance threshold is 9 meters, then the actual building distance > the target building distance, and the actual building distance > the minimum distance threshold, it can be determined that the setting of the building distance between the target building and other buildings is qualified.
[0089] In some embodiments, if the actual building distance is less than or equal to the target building distance, and / or the actual building distance is less than or equal to a preset minimum distance threshold, it is determined that the setting of the building distance between the target building and other buildings is unqualified;
[0090] The target buildings and other buildings with unqualified building spacing settings are marked, and the spacing design rules that they do not meet are displayed.
[0091] As an example, assuming that the target building spacing between the target building and other buildings determined according to the above steps is 30.6 meters, the actual building spacing is 25 meters, and the preset minimum spacing threshold is 9 meters, then the actual building spacing < target building spacing, the actual building spacing > minimum spacing threshold, it can be determined that the setting of the building spacing between the target building and other buildings is unqualified. At this time, the target building and other buildings can be marked in the design drawings (such as highlighting, etc.), and the spacing design rules that do not meet the requirements can be displayed (a display window can be set to display the relevant rules). In this example, the spacing design rule that does not meet the requirements is that the actual building spacing is less than the target building spacing.
[0092] Combination Figure 4In actual application, the page of the design drawing can be scaled to a suitable view window according to the distribution range of the target building and other buildings (for example, the target building and one of the other buildings can be displayed in the same view window by scaling the view window). At the same time, the target building and other buildings can be connected, and the actual distance between the two buildings can be marked on the connecting line. At the same time, the relevant building design data (including but not limited to the building name, required distance, actual distance, distance difference and relevant building design specification requirements, etc.) can be displayed in the view window to facilitate the designer to check and modify, thereby improving the verification efficiency.
[0093] In some embodiments, in the above steps, based on the target building spacing, the actual building spacing and the preset minimum spacing threshold, the building spacing between the target building and other buildings is checked for qualification, and after the verification result is obtained, the following is further included:
[0094] The first building data of the target building with an unqualified verification result and the second building data of other buildings, as well as the verification result, are associated and stored, and the starting point and end point of the actual building distance between the target building and other buildings are recorded.
[0095] As an example, assume that a total of 13 building entities are obtained in the architectural drawing file to be verified, that is, there are 13 buildings, and they are numbered A1~A13. According to the above steps, the building spacing of all buildings in the file is verified, and the unqualified combinations in the final verification results are as follows: A1 (target building) and A2 (other buildings); A1 (target building) and A8 (other buildings); A2 (target building) and A4 (other buildings). Then, the building data of A1 (target building) and the building data of A2 (other buildings) can be associated and stored with their verification results to obtain unqualified set 01; the building data of A1 (target building) and the building data of A8 (other buildings) are associated and stored with their verification results to obtain unqualified set 02; the building data of A2 (target building) and the building data of A4 (other buildings) are associated and stored with their verification results to obtain unqualified set 03. At the same time, the starting and ending points of the actual building distances between the target building and other buildings in the above-mentioned unqualified sets 01, 02 and 03 are recorded respectively, so that designers can subsequently review and modify these unqualified sets in a targeted manner, thereby improving the efficiency of the verification work of the design drawings and ensuring the quality of the drawings.
[0096] The technical solution provided by the embodiment of the present disclosure can be built-in preset spacing design rules and building data in the hidden blocks in the architectural drawing file, and through the preset spacing design rules and building data, the building combination and specific building position that do not meet the spacing design rules in the file can be quickly and accurately located, and the unqualified building combination and spacing design rules can be marked on the drawings, which can assist designers to make targeted modifications, and there is no need to refer to the relevant local specifications again, saving a lot of verification and modification time and improving the work efficiency of verification. At the same time, the present disclosure can also detect with one click and automatically generate verification results, which is simple to operate, greatly reducing the layout threshold of the design master plan, and ensuring the quality of the master plan to a certain extent. In addition, it can also adapt to local specifications in different places, and has strong flexibility.
[0097] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0098] Figure 5 1 is a schematic diagram of an overall processing flow of a building spacing check provided by an embodiment of the present disclosure. For ease of description, only the parts related to this embodiment are shown in the figure, which are described in detail as follows.
[0099] like Figure 5 As shown, the overall processing flow includes:
[0100] First, define the building entities (including the target building and other buildings) in advance.
[0101] Second, traverse the combination table data of the CAD file to obtain all building combinations; then, traverse all building entities in the combination to find the hidden blocks that store the building data.
[0102] Third, read the extended data in the hidden block to obtain the building data, where the building data includes the building height H, the building business type, and the building rotation angle.
[0103] Fourth, read the geometric data in the hidden block to obtain the building bounding box and the building outer contour polygon.
[0104] Fifth, calculate the bounding box of the target building and obtain the horizontal width of the bounding box, which is the surface width M, and the vertical height of the bounding box, which is the side surface width B.
[0105] Sixth, the building angle is calculated according to the building rotation angle of the target building and the building rotation angles of other buildings, and the layout method is determined according to the building angle.
[0106] Seventh, take the outermost contour polygons of the target building and other buildings as the building polygons, and calculate the actual distance between the target building and the blocked building (other buildings).
[0107] Eighth, based on the above-determined H, B, M, building angle, layout, building business type, and the building location of the target building and other buildings (such as whether it is within the Third Ring Road, such as the Third Ring Road area of Shenyang City), calculate the target building distance between the target building and other buildings.
[0108] Ninth, verify the target building spacing and actual spacing, and output the verification results.
[0109] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0110] Figure 6 Schematic diagram of a building spacing calibration device provided by an embodiment of the present disclosure. Figure 6 As shown, the building spacing verification device includes:
[0111] The data reading module 601 is configured to obtain the architectural drawing file to be verified, and read the building data of all buildings and the preset spacing design rules in the architectural drawing file, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings;
[0112] Theoretical spacing determination module 602 is configured to determine a target building spacing between a target building and other buildings according to the first building data, the second building data and a preset spacing design rule;
[0113] The actual distance determination module 603 is configured to determine the actual building distance between the target building and the other buildings according to the first building data and the second building data;
[0114] The verification module 604 is configured to perform a qualified verification on the building distance between the target building and other buildings according to the target building distance, the actual building distance and a preset minimum distance threshold to obtain a verification result.
[0115] The technical solution provided by the embodiment of the present disclosure obtains the building drawing file to be verified through the data reading module 601, reads the building data of all buildings in the building drawing file and the preset spacing design rules, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings; the theoretical spacing determination module 602 determines the target building spacing between the target building and the other buildings according to the first building data, the second building data and the preset spacing design rules; the actual spacing determination module 603 determines the actual spacing between the target building and the other buildings according to the first building data, the second building data the actual building spacing; the verification module 604 performs a qualified verification on the building spacing between the target building and other buildings according to the target building spacing, the actual building spacing and the preset minimum spacing threshold, and obtains the verification result, thereby realizing the automatic verification of the architectural drawing files, with high verification efficiency, and being able to timely and comprehensively locate the places in the design drawings that do not meet the local specifications, with high accuracy and low missed detection rate, which is helpful for subsequent guidance of designers to make targeted modifications to the unqualified items in the drawings, thereby ensuring the quality of the design drawings, and being conducive to improving the smooth progress of the subsequent construction and other links, and saving the overall development cost.
[0116] In some embodiments, the theoretical distance determination module 602 includes:
[0117] An extraction unit is configured to extract verification items in the spacing design rule, the verification items including building business type verification items, layout mode verification items, building height verification items and other local specification verification items;
[0118] The matching unit is configured to match the first building data, the second building data and the verification item to obtain a matching result, and determine the target building distance between the target building and other buildings based on the matching result.
[0119] In one embodiment, the first building data includes the building height, the building business type, and the first building rotation angle; the second building data includes the second building rotation angle.
[0120] The above matching unit can be specifically configured as:
[0121] Match the building height with the building height check item to obtain a first matching result;
[0122] Match the building business type with the building business type verification item to obtain a second matching result;
[0123] Determine the layout of the target building and other buildings according to the rotation angle of the first building and the rotation angle of the second building, match the layout with the layout check item, and obtain a third matching result;
[0124] Based on the first matching result, the second matching result, the third matching result, other local code verification items and theoretical spacing requirements, the target building spacing between the target building and other buildings is determined.
[0125] In one embodiment, the above step of determining the arrangement of the target building and other buildings according to the rotation angle of the first building and the rotation angle of the second building includes:
[0126] Determine the building angle between the target building and the other building according to the rotation angle of the first building and the rotation angle of the second building;
[0127] Determine the layout of the target building and other buildings based on the building angle.
[0128] In some embodiments, the first building data includes the outermost contour graphic of the first building, and the second building data includes the outermost contour graphic of the second building.
[0129] The above-mentioned actual distance determination module 603 includes:
[0130] The determination unit is configured to determine the actual building distance between the target building and other buildings based on the outermost contour graphic of the first building and the outermost contour graphic of the second building.
[0131] As an example, the above-mentioned determination unit may be configured as follows:
[0132] Determine the shortest straight-line distance between the target building and other buildings based on the outermost contour figure of the first building and the outermost contour figure of the second building;
[0133] The shortest straight-line distance is determined as the actual building distance between the target building and other buildings.
[0134] In some embodiments, the theoretical distance determination module 602 includes:
[0135] A first determining unit is configured to determine a calculated building distance between a target building and other buildings according to the first building data, the second building data and a preset distance design rule;
[0136] A second determining unit is configured to determine the minimum distance threshold as a target building distance between the target building and the other buildings when the calculated building distance is less than a preset minimum distance threshold;
[0137] The third determination unit is configured to determine the calculated building distance as the target building distance between the target building and other buildings when the calculated building distance is greater than or equal to a preset minimum distance threshold.
[0138] In some embodiments, the verification module 604 includes:
[0139] A judging unit is configured to judge whether the actual distance between buildings is greater than the target distance between buildings, and whether the actual distance between buildings is greater than a preset minimum distance threshold;
[0140] The qualified judgment unit is configured to judge that the setting of the building distance between the target building and other buildings is qualified if the actual building distance is greater than the target building distance and the actual building distance is greater than a preset minimum distance threshold.
[0141] In some embodiments, the verification module 604 further includes:
[0142] The unqualified determination unit is configured to determine that the setting of the building distance between the target building and other buildings is unqualified if the actual building distance is less than or equal to the target building distance, and / or the actual building distance is less than or equal to a preset minimum distance threshold;
[0143] The marking unit is configured to mark the target building and other buildings whose building spacing settings are unqualified, and display the spacing design rules that they do not meet.
[0144] In some embodiments, the above apparatus further comprises:
[0145] The storage and recording module is configured to associate and store the first building data of the target building whose verification result is unqualified and the second building data of other buildings, as well as the verification result, and record the starting point and end point of the actual building distance between the target building and other buildings.
[0146] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
[0147] Figure 7 is a schematic diagram of an electronic device 700 provided in an embodiment of the present disclosure. Figure 7 As shown, the electronic device 700 of this embodiment includes: a processor 701, a memory 702, and a computer program 703 stored in the memory 702 and executable on the processor 701. When the processor 701 executes the computer program 703, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 701 executes the computer program 703, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0148] Exemplarily, the computer program 703 may be divided into one or more modules / units, which are stored in the memory 702 and executed by the processor 701 to complete the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 703 in the electronic device 700.
[0149] The electronic device 700 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 700 may include, but is not limited to, a processor 701 and a memory 702. Those skilled in the art will appreciate that Figure 7 It is only an example of the electronic device 700 and does not constitute a limitation of the electronic device 700. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0150] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0151] The memory 702 may be an internal storage unit of the electronic device 700, for example, a hard disk or memory of the electronic device 700. The memory 702 may also be an external storage device of the electronic device 700, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 700. Further, the memory 702 may also include both an internal storage unit of the electronic device 700 and an external storage device. The memory 702 is used to store computer programs and other programs and data required by the electronic device. The memory 702 may also be used to temporarily store data that has been output or is to be output.
[0152] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0153] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0154] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0155] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0159] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.
Claims
1. A method for checking the distance between buildings. It is characterized in that include: Obtaining a building drawing file to be verified, and reading building data and preset spacing design rules in the building drawing file, wherein the building data includes first building data of a target building and second building data of other buildings; the first building data includes building height, building business type, and a rotation angle of the first building; and the second building data includes a rotation angle of the second building; Determine a target building distance between the target building and other buildings according to the first building data, the second building data and a preset distance design rule; the preset distance design rule refers to a local building design specification standard in various places; Determine the actual building distance between the target building and other buildings according to the first building data and the second building data; Verify the building distance between the target building and the other buildings according to the target building distance, the actual building distance and a preset minimum distance threshold, and obtain a verification result; The step of determining a target building distance between the target building and other buildings according to the first building data, the second building data and a preset distance design rule includes: Extracting verification items in the spacing design rule, the verification items include building business type verification items, layout mode verification items, building height verification items and other local specification verification items; Matching the first building data, the second building data and the verification item to obtain a matching result, and determining a target building distance between the target building and other buildings according to the matching result; Matching the building height with the building height check item to obtain a first matching result; Matching the building business type with the building business type verification item to obtain a second matching result; Determining the layout of the target building and other buildings according to the first building rotation angle and the second building rotation angle, and matching the layout with the layout check item to obtain a third matching result; Determine a target building distance between the target building and other buildings according to the first matching result, the second matching result, the third matching result, other local code check items and theoretical spacing requirements; Determining a target building distance between the target building and other buildings according to the first building data, the second building data and a preset distance design rule includes: Determine the calculated building distance between the target building and other buildings according to the first building data, the second building data and a preset distance design rule; When the calculated building distance is less than a preset minimum distance threshold, the minimum distance threshold is determined as a target building distance between the target building and other buildings; When the calculated building distance is greater than or equal to a preset minimum distance threshold, the calculated building distance is determined as the target building distance between the target building and other buildings; According to the target building spacing, the actual building spacing and the preset minimum spacing threshold, the building spacing between the target building and the other buildings is verified to be qualified, and a verification result is obtained, including: Determine whether the actual building distance is greater than the target building distance, and whether the actual building distance is greater than a preset minimum distance threshold; If the actual building distance is greater than the target building distance, and the actual building distance is greater than a preset minimum distance threshold, it is determined that the setting of the building distance between the target building and the other buildings is qualified.
2. The method according to claim 1, It is characterized in that The determining, according to the first building rotation angle and the second building rotation angle, the arrangement of the target building and other buildings includes: Determine the building angle between the target building and the other buildings according to the first building rotation angle and the second building rotation angle; According to the building angle, the layout of the target building and the other buildings is determined.
3. The method according to claim 1, It is characterized in that The first building data includes the outermost contour figure of the first building, and the second building data includes the outermost contour figure of the second building; The determining, based on the first building data and the second building data, an actual building distance between the target building and other buildings includes: According to the outermost contour graphic of the first building and the outermost contour graphic of the second building, the actual building distance between the target building and the other buildings is determined.
4. The method according to claim 3, It is characterized in that The determining, according to the outermost contour graphic of the first building and the outermost contour graphic of the second building, the actual building distance between the target building and the other buildings comprises: Determine the shortest straight-line distance between the target building and the other buildings according to the outermost contour graphic of the first building and the outermost contour graphic of the second building; The shortest straight-line distance is determined as the actual building distance between the target building and the other buildings.
5. The method according to claim 1, It is characterized in that After determining whether the actual building distance is greater than the target building distance, and whether the actual building distance is greater than a preset minimum distance threshold, the method further includes: If the actual building distance is less than or equal to the target building distance, and / or the actual building distance is less than or equal to a preset minimum distance threshold, it is determined that the setting of the building distance between the target building and the other buildings is unqualified; The target buildings and other buildings with unqualified building spacing settings are marked, and the spacing design rules that they do not meet are displayed.
6. The method according to claim 1, It is characterized in that According to the target building spacing, the actual building spacing and the preset minimum spacing threshold, the building spacing between the target building and the other buildings is checked for qualification, and after the check result is obtained, the method further includes: The first building data of the target building with an unqualified verification result and the second building data of other buildings are associated and stored as well as the verification result, and the starting point and end point of the actual building distance between the target building and other buildings are recorded.
7. A building spacing calibration device, It is characterized in that include: The data reading module is configured to obtain the architectural drawing file to be verified, and read the building data of all buildings in the architectural drawing file and the preset spacing design rules, wherein the building data of all buildings includes the first building data of the target building and the second building data of other buildings; the first building data includes the building height, the building business type, and the first building rotation angle; the second building data includes the second building rotation angle; a theoretical spacing determination module, configured to determine a target building spacing between the target building and other buildings according to the first building data, the second building data and a preset spacing design rule; the preset spacing design rule refers to local building design specifications and standards in various places; The theoretical spacing determination module comprises: An extraction unit is configured to extract verification items in the spacing design rule, wherein the verification items include building business type verification items, layout mode verification items, building height verification items and other local specification verification items; a matching unit, configured to match the first building data, the second building data and the verification item to obtain a matching result, and determine a target building distance between the target building and other buildings according to the matching result; The matching unit is specifically configured as follows: Matching the building height with the building height check item to obtain a first matching result; Matching the building business type with the building business type verification item to obtain a second matching result; Determining the layout of the target building and other buildings according to the first building rotation angle and the second building rotation angle, and matching the layout with the layout check item to obtain a third matching result; Determine a target building distance between the target building and other buildings according to the first matching result, the second matching result, the third matching result, other local code check items and theoretical spacing requirements; The theoretical spacing determination module comprises: A first determining unit is configured to determine a calculated building distance between a target building and other buildings according to the first building data, the second building data and a preset distance design rule; A second determining unit is configured to determine the minimum distance threshold as a target building distance between the target building and other buildings when the calculated building distance is less than a preset minimum distance threshold; A third determining unit is configured to determine the calculated building distance as a target building distance between the target building and other buildings when the calculated building distance is greater than or equal to a preset minimum distance threshold; An actual distance determination module is configured to determine an actual building distance between the target building and other buildings according to the first building data and the second building data; A verification module is configured to perform a qualified verification on the building distance between the target building and the other buildings according to the target building distance, the actual building distance and a preset minimum distance threshold, and obtain a verification result; The verification module comprises: A judging unit is configured to judge whether the actual distance between buildings is greater than the target distance between buildings, and whether the actual distance between buildings is greater than a preset minimum distance threshold; The qualified judgment unit is configured to judge that the setting of the building distance between the target building and the other buildings is qualified if the actual building distance is greater than the target building distance and the actual building distance is greater than a preset minimum distance threshold.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
An automatic building spacing analysis system
CN109933818A
Building arrangement optimization method and device, electronic equipment and storage medium
CN110796304A
Building arrangement method and device
CN111563290A
Method for classifying buildings by utilizing outer vertical surface of building
CN112529075A
Planning architecture unit
CN201152031Y
