Method for automatically analyzing clear height of building space based on Dynamo
Through the automatic net height analysis method of the Dynamo platform, the model surface of the building space is screened and thickened, the distance of the intersection of geometric shapes is calculated, and the colors are divided according to the distance threshold range, which solves the problem of time-consuming and labor-intensive manual calculation and automatic calculation in the existing technology. The problem of misjudgment is eliminated, and rapid and accurate analysis of the net height of the building space is achieved.
Patent Information
- Application Number
- CN202410730190.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, manual calculation of the clear height of a building space is time-consuming and labor-intensive. The automatic calculation method requires manual judgment of the types of elements that are unfavorable to the clear height and does not consider comprehensively. It is easy to produce misjudgments, resulting in the need for multiple analyzes and repeated troubleshooting.
Using a method based on Dynamo, obtain the face list of the model primitive, filter the faces whose normal vector is the Z unit vector, scale and thicken the surface, calculate the distance from the projection point from the lowest point of the intersection of the geometric shapes to the top surface of the entity, and calculate the distance based on the distance threshold The range is divided by color to visually analyze the situation where the net height is not satisfied.
Quickly calculate whether the net height in the building space meets the threshold requirements, avoid manual errors, simplify the calculation steps, visually display the locations and classifications of unsatisfied net heights, and reduce the complexity of design adjustments.
Smart Images

Figure CN118674982A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of building structure clear height analysis, and particularly relates to the design of a method for automatic clear height analysis of building space based on Dynamo. Background Art
[0002] In existing construction projects, in order to meet the functional requirements of the building itself, each building space needs to meet its specifications or special clear height requirements to ensure normal use functions.
[0003] The existing methods for calculating the net height of building space are generally manual observation, manual measurement of models, subtraction of elevations at unfavorable locations, etc. However, the above methods are cumbersome, the calculation workload is large, the results are not intuitive, and it takes a lot of manpower, time and other costs. There may be manual errors and it is impossible to calculate different net heights in an area at the same time, resulting in the need to measure and check multiple net height areas one by one.
[0004] In response to this situation, several methods for automatically calculating the net height of building spaces have been made public, but most of these methods use the method of obtaining the lowest element category at the top of the building space that requires net height analysis, and calculating the distance between the lowest geometric point of each element of this category and the bottom of the building space to obtain the net height of this area. This method requires manual judgment of the element category of net height unfavorable factors for screening, such as beams, plates, electromechanical pipeline components, etc., and the scope of consideration is not complete, only the lowest point of the element is considered, and the net height analysis of this area is not thorough, which is easy to misjudge the net height conditions. Multiple analyses and repeated inspections are required, which inevitably affect the decision-making of the plan. Summary of the invention
[0005] The purpose of the present invention is to solve the problems that the manual calculation of the net height of a certain area of a building in the prior art costs a lot of manpower and time, and the method of automatically calculating the net height of the building space requires manual judgment of the net height unfavorable factor graphic category for screening and is not comprehensive, which is easy to cause misjudgment of the net height conditions and requires multiple analyses and repeated inspections. A method for automatic net height analysis of building space based on Dynamo is proposed.
[0006] The technical solution of the present invention is: a method for automatic clear height analysis of building space based on Dynamo, comprising the following steps:
[0007] S1. Obtain a list of faces of the model primitives to be analyzed;
[0008] S2. According to the obtained face list of the model primitive, the faces whose normal vectors are the Z unit vectors are screened out, and unnecessary faces are filtered out;
[0009] S3. Scale the screened faces whose normal vectors are the Z unit vectors by edges, and thicken the surfaces to obtain solids;
[0010] S4. Get the geometric intersection of each entity and all geometric shapes in the view;
[0011] S5. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and calculate the distance from the lowest point of the intersection of each geometric shape to the projection point from the top surface of the entity;
[0012] S6. According to the distance from the lowest point of the intersection of each geometric shape to the projection point of the top surface of the entity, the intersection of each geometric shape is classified and divided into colors according to the distance threshold range, and the severity of the net height of each area of the building not meeting the requirements is analyzed and determined.
[0013] The beneficial effects of the present invention are:
[0014] 1. The present invention can quickly calculate whether the net height in the building space meets the threshold requirements, thereby avoiding the increase in manpower and time costs caused by manual calculation.
[0015] 2. The present invention only needs to identify the bottom foundation surface of the building space, avoiding manual judgment of the graphic element category at the unfavorable clear height.
[0016] 3. The present invention calculates the entity parts of each area whose net height does not meet the requirements through geometric calculation, avoiding the cumbersome point-by-point screening and calculation steps.
[0017] 4. The present invention divides and assigns colors through different distance threshold ranges, so that the specific locations where the net height does not meet the requirements and the different numerical classification situations can be intuitively viewed, thereby avoiding the situation where the problem parts found are not clearly expressed and a secondary analysis is required.
[0018] 5. The present invention identifies the stretched entity of the bottom foundation surface of the building space, and distinguishes the parts that do not meet the requirements by color according to the distance threshold range, so as to facilitate the viewing of different numerical classifications of the net heights of various areas that do not meet the requirements. By obtaining the parts of the areas where the net heights do not meet the requirements, the design scheme is modified and adjusted for the abnormal parts, and the auxiliary scheme is finalized.
[0019] Preferably, the step S1 specifically includes the following steps:
[0020] S11. Get all elements of the specified category in the active view of Revit from the model;
[0021] S12.According to all elements of the specified category in the active Revit view, obtain the face list of the model elements that need to be analyzed.
[0022] The beneficial effects of the above preferred solution are:
[0023] By obtaining the faces of the model elements that need to be analyzed from all the elements of the specified category in the Revit active view, you only need to identify the faces of the analysis area for subsequent operations. There is no limitation on the form of the faces, and both curved and straight surfaces can be analyzed. It is suitable for most situations of building analysis and has strong versatility.
[0024] Preferably, the step S2 specifically comprises the following steps:
[0025] S21. For the obtained face list of the model primitive, obtain the normal vector of each face at the center point, and obtain the Z direction component of each normal vector;
[0026] S22. Determine whether the Z direction component is equal to 1. If so, set the Boolean value to true; if not, set the Boolean value to false, and obtain a Boolean value list;
[0027] S23. Filter the face list according to the Boolean value list, remove the items in the face list whose index values are equal to false in the Boolean value list, and obtain a face list whose Boolean value is true.
[0028] The beneficial effects of the above preferred solution are:
[0029] By filtering the Boolean value list to determine whether the Z direction component is equal to 1, the surface with the Boolean value of true is subjected to subsequent operations, and the net height of each area of the building is quickly calculated to see whether it meets the threshold requirements, thus avoiding the increase in manpower and time costs caused by manual calculations.
[0030] Preferably, the step S3 specifically comprises the following steps:
[0031] S31. For the selected faces whose normal vectors are Z unit vectors, obtain all boundary curves of each face;
[0032] S32. For all the boundary curves of each face obtained, the vertices of the boundary curves of each face are obtained, and a new multi-segment composite curve is formed by connecting the vertices to close;
[0033] S33. Input an offset distance, offset each composite curve, and obtain a new closed curve;
[0034] S34. Generate a surface based on the closed curve obtained by offsetting each composite curve;
[0035] S35. Input the required clear height distance and thicken each surface along the Z direction to generate a solid.
[0036] The beneficial effects of the above preferred solution are:
[0037] By inputting the required clear height distance and generating entities, it is possible to quickly calculate whether the clear height of each area of the building meets the threshold requirements, thus avoiding the increase in manpower and time costs caused by manual calculations.
[0038] Preferably, the step S4 specifically comprises the following steps:
[0039] S41. According to all the primitives in the active view, obtain the geometric shapes of all the primitives;
[0040] S42. Calculate the geometric intersection of the solid generated by thickening each face along the Z direction and the geometric figure set of all primitives.
[0041] The beneficial effects of the above preferred solution are:
[0042] By calculating the geometric intersection of the solid generated by thickening each face along the Z direction and the geometric set of all graphics elements, it is possible to quickly calculate whether the net height of each area of the building meets the threshold requirements, avoiding the increase in manpower and time costs caused by manual calculations.
[0043] Preferably, the step S5 specifically comprises the following steps:
[0044] S51. Obtain the lowest point of the intersection of each geometric shape and obtain the Z component of the lowest point;
[0045] S52. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and obtain the Z component of the projection point;
[0046] S53. Calculate the difference between the Z component of the lowest point of the intersection of each geometric shape and the Z component of each projection point, and obtain a list of distances from the lowest point of the intersection of each geometric shape to the top surface of the geometric entity.
[0047] The beneficial effects of the above preferred solution are:
[0048] Through physical calculation, the clear height of each area of the building and the parts where the clear height is not met are analyzed, which avoids the omission of point analysis and the increase of manpower and time costs caused by manual calculation.
[0049] Preferably, the step S6 specifically comprises the following steps:
[0050] S61. Sort the multiple colors to be assigned from light to dark, classify the threshold ranges representing the distances, and specify the parameters of each color interval to form a color gradient bar;
[0051] S62. Map the distance list from the lowest point of each geometric shape intersection to the top surface of the geometric entity to the interval [0,1] to generate a new list;
[0052] S63. Obtain a new color list based on the color gradient bar and the generated new list;
[0053] S64. Assign a color from the color list to each geometric shape intersection, and determine the range of the distance between each geometric shape intersection, that is, analyze and determine the severity of the net height of each area not meeting the requirements.
[0054] The beneficial effects of the above preferred solution are:
[0055] Map the distance list to a color gradient bar classified according to the threshold range parameters of each distance, assign corresponding colors to the intersections of each geometric shape, and intuitively view the net height distance difference in this space, which helps to finalize the plan for this space and make the result more intuitive. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 Shown is a flow chart of a method for automatic clear height analysis of building space based on Dynamo. DETAILED DESCRIPTION
[0057] Now, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be understood that the embodiments shown and described in the accompanying drawings are only exemplary and are intended to explain the principles and spirit of the present invention, rather than to limit the scope of the present invention.
[0058] like Figure 1 As shown, a method for automatic clear height analysis of building space based on a visual programming plug-in (Dynamo) includes the following steps:
[0059] S1. Obtain a list of faces of the model primitives to be analyzed;
[0060] S2. According to the obtained face list of the model primitive, the faces whose normal vectors are the Z unit vectors are screened out, and unnecessary faces are filtered out;
[0061] S3. Scale the screened faces whose normal vectors are the Z unit vectors by edges, and thicken the surfaces to obtain solids;
[0062] S4. Obtain the geometric intersection of each entity and all geometric shapes in the view, where the geometric intersection is the part of the clear height of each area of the building that does not meet the requirements;
[0063] S5. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and calculate the distance from the lowest point of the intersection of each geometric shape to the projection point from the top surface of the entity;
[0064] S6. According to the distance from the lowest point of the intersection of each geometric shape to the projection point of the top surface of the entity, the intersection of each geometric shape is classified and divided into colors according to the distance threshold range, and the severity of the net height of each area of the building not meeting the requirements is analyzed and determined.
[0065] In this embodiment, step S1 specifically includes the following steps:
[0066] S11. Obtain all elements of a specified category in an active view of an information modeling software (revit) from the model;
[0067] S12.According to all elements of the specified category in the active Revit view, obtain the face list of the model elements that need to be analyzed.
[0068] In this embodiment, step S2 specifically includes the following steps:
[0069] S21. For the obtained face list of the model primitive, obtain the normal vector of each face at the center point, and obtain the Z direction component of each normal vector;
[0070] S22. Determine whether the Z direction component is equal to 1. If so, set the Boolean value to true; if not, set the Boolean value to false, and obtain a Boolean value list;
[0071] S23. Filter the face list according to the Boolean value list, remove the items in the face list whose index values are equal to false in the Boolean value list, and obtain a face list whose Boolean value is true.
[0072] In this embodiment, step S3 specifically includes the following steps:
[0073] S31. For the selected faces whose normal vectors are Z unit vectors, obtain all boundary curves of each face;
[0074] S32. For all the boundary curves of each face obtained, the vertices of the boundary curves of each face are obtained, and a new multi-segment composite curve is formed by connecting the vertices to close;
[0075] S33. Input an offset distance, offset each composite curve, and obtain a new closed curve;
[0076] S34. Generate a surface based on the closed curve obtained by offsetting each composite curve;
[0077] S35. Input the required clear height distance and thicken each surface along the Z direction to generate a solid.
[0078] In this embodiment, step S4 specifically includes the following steps:
[0079] S41. According to all the primitives in the active view, obtain the geometric shapes of all the primitives;
[0080] S42. Calculate the geometric intersection of the solid generated by thickening each face along the Z direction and the geometric figure set of all graphics elements, that is, obtain the part of the net height of each area of the building that does not meet the requirements.
[0081] In this embodiment, step S5 specifically includes the following steps:
[0082] S51. Obtain the lowest point of the intersection of each geometric shape and obtain the Z component of the lowest point;
[0083] S52. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and obtain the Z component of the projection point;
[0084] S53. Calculate the difference between the Z component of the lowest point of the intersection of each geometric shape and the Z component of each projection point, and obtain a list of distances from the lowest point of the intersection of each geometric shape to the top surface of the geometric entity.
[0085] In this embodiment, step S6 specifically includes the following steps:
[0086] S61. Sort the multiple colors to be assigned from light to dark, classify the threshold ranges representing the distances, and specify the parameters of each color interval to form a color gradient bar;
[0087] S62. Map the distance list from the lowest point of each geometric shape intersection to the top surface of the geometric entity to the interval [0,1] to generate a new list;
[0088] S63. Obtain a new color list based on the color gradient bar and the generated new list;
[0089] S64. Assign a color from the color list to each geometric shape intersection, and determine the range of the distance between each geometric shape intersection, that is, analyze and determine the severity of the net height of each area not meeting the requirements.
[0090] The specific working principle and process of the present invention are:
[0091] First, open the revit model file and Dynamo to obtain the faces of the bottom floor of the building space that needs to be analyzed. The second step is to filter out the faces whose normal vectors are Z unit vectors from the faces of the bottom floor of the building space that needs to be analyzed, and filter out unnecessary faces. The third step is to scale the filtered faces whose normal vectors are Z unit vectors with the edge lines, scale them to the final range to be analyzed, thicken the surface to obtain a solid, and the thickening length is the net height value required for this area. In this embodiment, it is set to 5500 to obtain a solid with a height of 5500mm. The fourth step is to obtain each intersection of each entity and other geometric graphics sets in the view, which is the intersection of the above-mentioned entity and the original geometric graphics in the model, that is, the collision part of the model within the net height requirement range, and obtain the part where the net height is not met. The fifth step is to obtain the projection point from the lowest point of each intersection graphic to the top surface of the entity, calculate the distance, and obtain the distance from the bottom of the model element of each part where the net height is not met to the net height requirement surface. In the sixth step, each intersection shape is classified and colored according to the distance threshold range. Multiple colors are synthesized into a color gradient bar according to the parameter value range. The distance difference list is mapped to the color range. The graphics are assigned colors according to different ranges. The net height distance difference in this space can be intuitively viewed.
[0092] Through the above embodiments, the effectiveness and accuracy of the method of the present invention in the analysis of the clear height of the building area can be verified. In addition, the method of the present invention can be adjusted and optimized according to different application scenarios and requirements to adapt to the clear height analysis of the building area in different situations.
[0093] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A method for automatic clear height analysis of building space based on Dynamo, It is characterized in that The following steps are involved: S1. Obtain a list of faces of the model primitives to be analyzed; S2. According to the obtained face list of the model primitive, the faces whose normal vectors are the Z unit vectors are screened out, and unnecessary faces are filtered out; S3. Scale the screened faces whose normal vectors are the Z unit vectors by edges, and thicken the surfaces to obtain solids; S4. Get the geometric intersection of each entity and all geometric shapes in the view; S5. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and calculate the distance from the lowest point of the intersection of each geometric shape to the projection point from the top surface of the entity; S6. According to the distance from the lowest point of the intersection of each geometric shape to the projection point of the top surface of the entity, the intersection of each geometric shape is classified and divided into colors according to the distance threshold range, and the severity of the net height of each area of the building not meeting the requirements is analyzed and determined.
2. The method for automatic clear height analysis of building space based on Dynamo according to claim 1, It is characterized in that The step S1 specifically includes the following steps: S11. Get all elements of the specified category in the active view of Revit from the model; S12.According to all elements of the specified category in the active Revit view, obtain the face list of the model elements that need to be analyzed.
3. The method for automatic clear height analysis of building space based on Dynamo according to claim 1, It is characterized in that The step S2 specifically includes the following steps: S21. For the obtained face list of the model primitive, obtain the normal vector of each face at the center point, and obtain the Z direction component of each normal vector; S22. Determine whether the Z direction component is equal to 1. If so, set the Boolean value to true; if not, set the Boolean value to false, and obtain a Boolean value list; S23. Filter the face list according to the Boolean value list, remove the items in the face list whose index values are equal to false in the Boolean value list, and obtain a face list whose Boolean value is true.
4. The method for automatic clear height analysis of building space based on Dynamo according to claim 1, It is characterized in that The step S3 specifically comprises the following steps: S31. For the selected faces whose normal vectors are Z unit vectors, obtain all boundary curves of each face; S32. For all the boundary curves of each face obtained, the vertices of the boundary curves of each face are obtained, and a new multi-segment composite curve is formed by connecting the vertices to close; S33. Input an offset distance, offset each composite curve, and obtain a new closed curve; S34. Generate a surface based on the closed curve obtained by offsetting each composite curve; S35. Input the required clear height distance and thicken each surface along the Z direction to generate a solid.
5. The method for automatic clear height analysis of building space based on Dynamo according to claim 4, It is characterized in that The step S4 specifically comprises the following steps: S41. According to all the primitives in the active view, obtain the geometric shapes of all the primitives; S42. Calculate the geometric intersection of the solid generated by thickening each face along the Z direction and the geometric figure set of all primitives.
6. The method for automatic clear height analysis of building space based on Dynamo according to claim 5, It is characterized in that The step S5 specifically comprises the following steps: S51. Obtain the lowest point of the intersection of each geometric shape and obtain the Z component of the lowest point; S52. Obtain the projection point from the lowest point of the intersection of each geometric shape to the top surface of the entity, and obtain the Z component of the projection point; S53. Calculate the difference between the Z component of the lowest point of the intersection of each geometric shape and the Z component of each projection point, and obtain a list of distances from the lowest point of the intersection of each geometric shape to the top surface of the geometric entity.
7. The method for automatic clear height analysis of building space based on Dynamo according to claim 6, It is characterized in that The step S6 specifically comprises the following steps: S61. Sort the multiple colors to be assigned from light to dark, classify the threshold ranges representing the distances, and specify the parameters of each color interval to form a color gradient bar; S62. Map the distance list from the lowest point of each geometric shape intersection to the top surface of the geometric entity to the interval [0,1] to generate a new list; S63. Obtain a new color list based on the color gradient bar and the generated new list; S64. Assign a color from the color list to each geometric shape intersection, and determine the range of the distance between each geometric shape intersection, that is, analyze and determine the severity of the net height of each area not meeting the requirements.
