Revit template area calculation method, rapid modeling method and system based on Dynamo
Dynamo software is used to process Revit formwork area calculations, which solves the problem of inaccurate formwork area calculations in the existing technology. By deleting curved surfaces and specific surfaces with upward normal vectors, the formwork area is accurately calculated, improving calculation accuracy and construction efficiency.
Patent Information
- Application Number
- CN202111339450.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-11-12
AI Technical Summary
The existing Revit formwork area calculation method fails to effectively consider the overlapping parts such as the beam-column contact surface and the primary and secondary beam contact surfaces, resulting in poor accuracy in the formwork area calculation and the calculation result is too large.
Using a method based on Dynamo, the geometric shapes of the structural frame, structural columns, floors and structural foundations are obtained, merged to generate integrated entities, and the surfaces with upward normal vectors and specific unnecessary surfaces are deleted, and the remaining surface area is calculated to determine the template area, and then Reduce calculation bias.
The accuracy of the formwork area is improved, the amount of formwork is reduced, the waste of materials and time is reduced, and the construction efficiency is improved.
Smart Images

Figure CN114091148B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of building engineering construction, and in particular to a Revit template area calculation method, a rapid modeling method and a system based on Dynamo. Background Art
[0002] Building formwork is a temporary support structure, which is made according to the design requirements to shape the concrete structure and components according to the specified position and geometric size, maintain its correct position, and bear the deadweight of the building formwork and the external loads acting on it. The purpose of formwork engineering is to ensure the quality and construction safety of concrete engineering, speed up the construction progress and reduce engineering costs.
[0003] Owners, construction companies, and labor teams need to calculate the formwork area, that is, the contact area between concrete and building components, at each stage of construction. Accurately calculating the actual construction formwork area is conducive to early estimation and material feeding, and is also conducive to reducing the waste of materials and time during the construction process.
[0004] Most of the related technologies use Revit and calculate the formwork area by extracting the volume from the detailed list. However, this calculation method does not take into account the deduction of overlapping parts such as the beam-column contact surface and the primary and secondary beam contact surface, which makes the calculated formwork area larger than the actual formwork usage, resulting in poor accuracy of the formwork area. Summary of the invention
[0005] In order to help improve the accuracy of template area, the present application provides a method and system for calculating Revit template area based on Dynamo.
[0006] In the first aspect, the present application provides a method for calculating the area of a Revit template based on Dynamo, which adopts the following technical solution:
[0007] A method for calculating the area of a Revit template based on Dynamo, comprising:
[0008] Respectively obtain the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations, wherein the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations are obtained by selecting a three-dimensional initial model created by Revit in Dynamo;
[0009] Merging the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation to obtain a geometric shape set, wherein the geometric shape set includes a shape;
[0010] Generate one-dimensional list data according to the geometric shape set, wherein the one-dimensional list data includes shapes;
[0011] Extracting shapes from the one-dimensional list data, and generating an integrated entity based on the extracted shapes;
[0012] Obtaining all surfaces constituting the integrated solid;
[0013] Obtaining normal vectors of all surfaces of the integrated entity;
[0014] Determine whether the normal vector is upward, if so, delete the surface corresponding to the normal vector, and obtain a surface list based on the remaining surfaces;
[0015] Obtaining normal vectors of points and lines of points constituting the integrated entity;
[0016] Determine a specific unnecessary face based on the line schematic normal vector of the point, and delete the specific unnecessary face from the surface list to obtain a surface screening list;
[0017] The areas of the surfaces included in the surface screening list are calculated and determined as the template areas.
[0018] By adopting the above technical solution, a pre-created three-dimensional initial model is obtained, and the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation are obtained according to the three-dimensional initial model, and an integrated entity is generated. Then, the surfaces with upward normal vectors and specific unnecessary surfaces are deleted from all the surfaces that constitute the integrated entity, and the template area is determined according to the remaining surfaces; by obtaining the original design data, processing it, and subtracting the overlapping surfaces in the three-dimensional initial model, the problem of the calculated template area being larger than the actual template usage is effectively reduced, thereby facilitating improving the accuracy of the template area.
[0019] Optionally, the step of acquiring all the surfaces constituting the integrated entity specifically includes:
[0020] generating a first polysurface according to the integrated entity;
[0021] The first polysurface is decomposed to obtain all surfaces constituting the first polysurface.
[0022] Optionally, the step of determining whether the normal vector is pointing upward specifically includes:
[0023] Get the Z coordinate unit vector;
[0024] Get the dot product of the normal vector and the Z coordinate unit vector;
[0025] It is determined whether the dot product of the normal vector and the Z coordinate unit vector is equal to 1. If so, it is determined that the normal vector is upward.
[0026] Optionally, the step of determining a specific unnecessary surface based on the normal vector of the point specifically includes:
[0027] Get the preset length;
[0028] Generate a line schematic normal vector based on the point, the normal vector and a preset length;
[0029] Specific unwanted faces are determined based on the line schematic normal vectors.
[0030] Optionally, the step of calculating the area of the surface included in the surface screening list and determining it as the template area specifically includes:
[0031] Obtaining the surfaces included in the surface filter list;
[0032] Combining the faces included in the surface screening list to form a second polysurface;
[0033] The area of the second polysurface is calculated, and the area of the second polysurface is determined as the template area.
[0034] In the second aspect, the present application provides a method for implementing Revit rapid modeling based on Dynamo, which adopts the following technical solution:
[0035] A method for implementing Revit rapid modeling based on Dynamo, based on the method for implementing Revit template area calculation based on Dynamo in the first aspect, comprising:
[0036] The surfaces included in the surface screening list are used to obtain a template model.
[0037] By adopting the above technical solution, by obtaining the original design data, processing it, deducting the overlapping surfaces in the three-dimensional initial model, and automatically creating a template model, it is helpful for users to judge whether the surfaces deducted from the three-dimensional initial model are correct based on the template model, so as to judge whether the template area is accurate, thereby improving the accuracy of the template area.
[0038] Optionally, the obtaining the template model according to the surfaces included in the surface screening list specifically includes:
[0039] Get the thickness and surface stretching direction;
[0040] Stretching the surfaces included in the surface screening list by the thickness along the surface stretching direction to form a solid;
[0041] Get family category and material;
[0042] Based on the entities, group categories and materials, a template model is generated.
[0043] In the third aspect, the present application provides a system for realizing Revit template area calculation and rapid modeling based on Dynamo, which adopts the following technical solutions:
[0044] A system for realizing Revit template area calculation and rapid modeling based on Dynamo, comprising:
[0045] An integrated entity acquisition module is configured to respectively acquire geometric shapes of a structural frame, a structural column, a floor slab, and a structural foundation, and generate an integrated entity based on the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation; wherein the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation are obtained by selecting a three-dimensional initial model created by Revit in Dynamo;
[0046] A surface acquisition module, configured to acquire all surfaces constituting the integrated entity;
[0047] A surface list acquisition module is configured to acquire normal vectors of all surfaces of the integrated entity, determine whether the normal vector is upward, and if so, delete the surface corresponding to the normal vector, and obtain a surface list based on the remaining surfaces;
[0048] A surface screening list acquisition module is configured to acquire points of all surfaces of the integrated entity, determine specific unnecessary surfaces based on the points of all surfaces of the integrated entity, and delete the specific unnecessary surfaces from the surface list to obtain a surface screening list;
[0049] An area acquisition module is configured to calculate the area of the surface included in the surface screening list and determine it as the template area;
[0050] The template model acquisition module is configured to generate a template model according to the surfaces included in the surface screening list.
[0051] By adopting the above technical solution, a pre-created three-dimensional initial model is obtained, and the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations are obtained according to the three-dimensional initial model, and an integrated entity is generated. Then, surfaces with upward normal vectors and specific unnecessary surfaces are deleted from all surfaces constituting the integrated entity, and the template area is determined according to the remaining surfaces; by obtaining the original design data, processing it, and deducting the overlapping surfaces in the three-dimensional initial model, the problem of the calculated template area being larger than the actual template usage is effectively reduced, thereby facilitating the improvement of the accuracy of the template area;
[0052] In addition, automatically creating a template model helps users directly observe the surfaces deleted in the three-dimensional initial model, so that they can judge whether the template area is accurate, thereby improving the accuracy of the template area.
[0053] Optionally, the integration entity acquisition module includes:
[0054] a structural frame acquisition unit configured to acquire a geometric shape of the structural frame;
[0055] A structural column acquisition unit is configured to acquire a geometric shape of a structural column;
[0056] A floor acquisition unit configured to acquire a geometric shape of a floor;
[0057] a structural foundation acquisition unit configured to acquire a geometric shape of a structural foundation;
[0058] A geometric shape set acquisition unit is configured to merge the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation to obtain a geometric shape set;
[0059] A one-dimensional list data acquisition unit is configured to flatten the geometric shape set to obtain one-dimensional list data, wherein the one-dimensional list data includes shapes;
[0060] The category setting unit is configured to set the category to be a shape;
[0061] a removing unit configured to filter the one-dimensional list data and remove graphics other than the shapes set by the category setting unit from the one-dimensional list data;
[0062] The merging unit is configured to merge the shapes in the one-dimensional list data into an integrated entity.
[0063] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0064] A computer-readable storage medium stores a computer program that can be loaded and executed by a processor as described in any one of the first aspect and the second aspect.
[0065] By adopting the above technical solution, a pre-created three-dimensional initial model is obtained, and the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations are obtained according to the three-dimensional initial model, and an integrated entity is generated. Then, surfaces with upward normal vectors and specific unnecessary surfaces are deleted from all surfaces constituting the integrated entity, and the template area is determined according to the remaining surfaces; by obtaining the original design data, processing it, and deducting the overlapping surfaces in the three-dimensional initial model, the problem of the calculated template area being larger than the actual template usage is effectively reduced, thereby facilitating the improvement of the accuracy of the template area;
[0066] In addition, automatically creating a template model helps users directly observe the surfaces deleted in the three-dimensional initial model, so that they can judge whether the template area is accurate, thereby improving the accuracy of the template area.
[0067] In summary, the present application includes at least one of the following beneficial technical effects:
[0068] By obtaining the original design data, processing it, and deducting the overlapping surfaces in the 3D initial model, the problem of the calculated template area being larger than the actual template usage can be effectively reduced, thereby facilitating the improvement of the accuracy of the template area;
[0069] In addition, automatically creating a template model helps users directly observe the surfaces deleted in the three-dimensional initial model, so that they can judge whether the template area is accurate, thereby improving the accuracy of the template area. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a flow chart of a template area calculation method shown in one embodiment of the present application.
[0071] Figure 2 It is a structural block diagram of template area calculation and rapid modeling shown in one embodiment of the present application.
[0072] Figure 3 It is a three-dimensional initial model shown in one embodiment of the present application.
[0073] Figure 4 It is a structural block diagram of a geometric shape set and a one-dimensional data list shown in one embodiment of the present application.
[0074] Figure 5 It is a template model shown in one embodiment of the present application.
[0075] Figure 6 It is a structural block diagram of a system for template area calculation and rapid modeling shown in one embodiment of the present application.
[0076] Explanation of the accompanying drawings: 1. Integrated entity acquisition module; 2. Surface acquisition module; 3. Surface list acquisition module; 4. Surface screening list acquisition module; 5. Area acquisition module; 6. Template model acquisition module. DETAILED DESCRIPTION
[0077] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0078] First, the terms involved in the embodiments of the present application are introduced.
[0079] Dynamo is a typical tree-structured flow-based visual programming software. The smallest unit of its code is a node. Different nodes with specific functions are connected as needed to achieve visual programming. Users input data on the left side of the node, perform node function calculations, and then output the structure from the right side of the node. Layers of nodes are logically connected in sequence to form a complete script. It allows users to call Revit's API, allowing users to achieve rapid modeling, parametric design, batch processing of model information and other operations in Revit.
[0080] Revit, designed specifically for Building Information Modeling (BIM) components, provides tools that support architectural design, MEP engineering design, and structural engineering, helping architects design, build, and maintain buildings with better quality and higher energy efficiency.
[0081] The Categories node is used to set the categories to be obtained.
[0082] The All Elements of Category node is used to select a model and obtain all elements of a specified category from the model.
[0083] Element.Geometry node, used to convert primitives into geometric shapes that can be displayed in Dynamo.
[0084] List.Create node is used to obtain the geometric shapes of the structural frame, structural columns, floor slabs, and structural foundations, and output a collection of geometric shapes.
[0085] List.Flatten node, used to reduce the data dimension by one level.
[0086] The List.RemoveIfNot node obtains a list of geometric figures and removes the figures in the list of geometric figures except the figures to be retained by the Code Block node.
[0087] Code Block node is a code node that allows you to directly write DesignScript code. You can directly input numbers, strings, lists, function commands, etc.
[0088] Solid.ByUnion node, merges a group of solids into one solid.
[0089] PolySurface.BySolid node creates a polysurface from the surface of a solid.
[0090] PolySurface.Surfaces node, which gets the basic surface converted from the polysurface.
[0091] The Surface.NormalAtParameter node determines the surface normal vector by inputting parameters in the U and V directions.
[0092] Vector.Dot node, dot product.
[0093] Vector.Zaxis node is used to set the unit vector of the Z coordinate.
[0094] == node, used to determine whether the value of input x is equal to the value of input y.
[0095] List.FilterByBoolMask node, the input list can be any list, the input mask can only be a list consisting of true and false, the data of the two lists correspond one to one according to the index items; the output in is used to output the data corresponding to true, and the output out is used to output the data corresponding to false.
[0096] Surface.PointAtParameter node, determines the point on the surface by inputting parameters in the U and V directions.
[0097] The Line.ByStartPointDirectionLength node can generate a line of a specified length starting from a certain point along a specified direction. The input end startPoint inputs a point primitive, which is the starting point of the entire line. The input end direction inputs a vector, which determines the direction in which the line extends. The vector is concretized based on this input. The input end length inputs the length of the line, which determines the distance the line extends.
[0098] The List.RemoveItemAtIndex node deletes the specified list item. The input end list is the list to be deleted as a certain list item, the input end indices is used to input the specific index item to be deleted, and the output end list is used to delete the list after the instruction index item.
[0099] The PolySurface.ByJoinedSurfaces node creates a polysurface by joining surfaces, that is, merging multiple independent rectangular surfaces into one polysurface.
[0100] Surface.Area node, query the area of the surface.
[0101] Boolean node, set the surface stretching direction.
[0102] Surface.Thicken node, thickens the surface into a solid.
[0103] Material.ByName node, query material by name.
[0104] DirectShape.ByGeometery node to import geometry from Dynamo into Revit.
[0105] The embodiment of the present application discloses a method for calculating the area of a Revit template based on Dynamo.
[0106] like Figure 1 and Figure 2 As shown, as an implementation of the method for calculating the template area, the following steps are included:
[0107] S1. respectively obtain the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation, wherein the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation are obtained by selecting the three-dimensional initial model created by Revit in Dynamo.
[0108] Specifically, Dynamo is an open source visual programming software that can be used as a plug-in in Revit software.
[0109] Combination Figure 3 , open the preset 3D initial model through Revit software, use the Categories node in Dynamo software to set the category to be obtained, and connect the output interface of the Categories node to the input interface of the All Elements of Category node. The All Elements of Category node is used to select the model and obtain all the elements of the specified category from the model. The input interface of the Element.Geometry node in Dynamo software is connected to the output interface of the All Elements of Category node to convert the elements into geometric figures that can be displayed in Dynamo.
[0110] Specifically, when you need to obtain all the structural frames in the 3D initial model, find the structural frame category through the drop-down box of the Categories node, find all the structural frame elements in the 3D initial model through the All Elements of Category node, and then convert the structural frame elements into geometric shapes that can be displayed in Dynamo and operate them through the Element.Geometry node.
[0111] Through the above operations, the structural frame elements, structural column elements, floor slab elements and structural foundation elements in the three-dimensional initial model are obtained in turn and converted into corresponding geometric shapes.
[0112] S2. Merge the geometric shapes of the structural frame, structural columns, floor slabs, and structural foundation to obtain a geometric shape set, wherein the geometric shape set includes a shape.
[0113] After using the Element.Geometry node to obtain the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation respectively, the output interfaces of multiple Element.Geometry nodes are connected to the input interface of the List.Create node. The List.Create node is used to obtain the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation, and output a collection of geometric shapes.
[0114] It should be noted that, combined with Figure 4 , the geometry collection is a nested list, and the geometry collection includes 0 List, 1 List, 2 List, and 3 Emply List, where 0 List is the geometry list of the structural frame, 1 List is the geometry list of the structural column, 2 List is the geometry list of the floor, and 3 Emply List is the geometry list of the structural foundation. The geometry list of the structural frame includes 0 List, 1 List, 2 List...n List, 0 List includes 0 Solid, 1 List includes 0 Solid, 2 List includes 0 Solid, n List includes 0 Solid, and n is the number of all the geometry shapes of the structural frame in the three-dimensional initial model.
[0115] S3. Generate one-dimensional list data according to the geometric shape set, where the one-dimensional list data includes shapes.
[0116] Use the input interface of the List.Flatten node of the Dynamo software to connect with the output interface of the List.Create node to obtain the geometric shape collection, flatten the geometric shape collection, and generate one-dimensional list data.
[0117] It should be noted that the one-dimensional list data only includes one layer of arrays. The one-dimensional list data includes 0 Solid, 1 Solid, 2 Solid, 3 Solid...n Solid, where n Solid is all the geometric shapes in the three-dimensional initial model.
[0118] S4. Extract shapes from the one-dimensional list data, and generate an integrated entity based on the extracted shapes.
[0119] The input interface of the List.RemoveIfNot node in the Dynamo software is connected to the output interface of the List.Flatten node and the output interface of the Code Block node respectively; wherein the Code Block node is used to configure the graphics to be retained by the List.RemoveIfNot node. The List.RemoveIfNot node is used to obtain one-dimensional list data, and filter the one-dimensional list data based on the graphics configured by the Code Block node, and remove the graphics in the one-dimensional list data except the graphics to be retained.
[0120] Since it is necessary to obtain all geometric shapes in the three-dimensional initial model, the graphics to be retained are configured as shapes through the Code Block node, and the List.RemoveIfNot node removes the graphics other than the shapes in the one-dimensional list data.
[0121] The input interface of the Solid.ByUnion node in the Dynamo software is connected to the output interface of the List.RemoveIfNot node to obtain all the shapes in the one-dimensional list data and merge all the shapes into an integrated entity.
[0122] S5. Obtain all surfaces that make up the integrated solid.
[0123] As an implementation method of obtaining all surfaces of the integrated entity, a first polysurface is generated according to the integrated entity, and the first polysurface is decomposed to obtain all surfaces constituting the first polysurface.
[0124] Specifically, the input interface of the PolySurface.BySolid node in the Dynamo software is connected to the output interface of the Solid.ByUnion node to obtain the integrated entity and convert the surface of the integrated entity into the first polysurface; the input interface of the PolySurface.Surfaces node is connected to the output interface of the PolySurface.BySolid node to obtain the basic surface converted from the first polysurface, so as to obtain all the surfaces constituting the integrated entity.
[0125] S6. Obtain the normal vectors of all surfaces of the integrated solid.
[0126] Use the input interface of the Surface.NormalAtParameter node in the Dynamo software to connect to the output interface of PolySurface.Surfaces and the output interface of the Code Block node, where the CodeBlock node is used to configure the parameter values of the U coordinate and the V coordinate. The Surface.NormalAtParameter node is used to obtain all surfaces of the integrated entity, and the U and V directions of the surface are regarded as two coordinate axes, both in the range of [0, 1]. By inputting the parameter values of the two directions, the normal vectors at the U and V parameters can be determined.
[0127] S7. Determine whether the normal vector is pointing upward. If so, delete the surface corresponding to the normal vector pointing upward, and obtain a surface list based on the remaining surfaces.
[0128] As an implementation method for determining whether the normal vector is pointing upward, the Z coordinate unit vector is obtained, the normal vector is dot-multiplied by the Z coordinate unit vector, and it is determined whether the dot product of the normal vector and the Z coordinate unit vector is equal to 1. If so, it is determined that the normal vector is pointing upward.
[0129] Specifically, the input interface of the Vector.Dot node in the Dynamo software is connected to the output interface of the Surface.NormalAtParameter node and the output interface of the Vector.Zaxis node, where the Vector.Zaxis node is used to set the unit vector (0,0,1) of the Z coordinate. The Vector.Dot node is used to obtain the normal vector at the U and V parameters and the unit vector of the Z coordinate, and outputs the dot product of the normal vector at the U and V parameters and the unit vector of the Z coordinate.
[0130] Specifically, the input interface of the == node in the Dynamo software is connected to the output interface of the Vector.Dot node and the output interface of the Code Block node respectively, where the Code Block node is used to set the y value to 1; the == node is used to obtain the dot product of the normal vector at the U and V parameters and the unit vector of the Z coordinate, and determine whether the dot product of the normal vector at the U and V parameters and the unit vector of the Z coordinate is equal to 1, and at the same time generate a result list of whether the normal vector at the U and V parameters is equal to 1; if the normal vector at the U and V parameters is equal to 1, it proves that the normal vector is upward.
[0131] Use the input interface of the List.FilterByBoolMask node in the Dynamo software to connect with the output interface of the == node and the output interface of the PolySurface.Surfaces node respectively to obtain the result list and all the surfaces that make up the integrated entity, and use the output terminal out to output all the surfaces whose normal vectors at the U and V parameters are not equal to 1, that is, delete the surfaces with upward normal vectors, and generate a surface list based on the remaining surfaces.
[0132] S8. Obtain the normal vectors of all the points and lines constituting the integrated solid.
[0133] As an implementation method of obtaining points on all surfaces, the input interface of the Surface.PointAtParameter node in the Dynamo software is connected to the output interface of the PolySurface.Surfaces and the output interface of the Code Block node, respectively, wherein the Code Block node is used to configure the parameter values of the U coordinate and the V coordinate. The Surface.PointAtParameter node is used to obtain all surfaces of the integrated entity, and the U and V directions of the surface are regarded as two coordinate axes, both in the range of [0, 1]. The position of the point can be determined by inputting the parameter values of the two directions.
[0134] As an implementation of the method for obtaining the line schematic normal vector, the following steps are specifically included:
[0135] S81. Obtain a preset length.
[0136] Use the Code Block node in Dynamo software to configure the length of the extended straight line.
[0137] S82, generating a line schematic normal vector based on the point, the normal vector and the preset length.
[0138] The input interface of the Line.ByStartPointDirectionLength node in the Dynamo software is connected to the output interface of the Surface.PointAtParameter node, the output interface of the Surface.NormalAtParameter node, and the output interface of the Code Block node respectively, and the direction in which the straight line extends is determined based on the normal vector. It is used to use the point as the starting point of the straight line and generate a straight line of a specified length along the direction in which the straight line extends, thereby generating a line schematic normal vector for the point.
[0139] S9. Determine specific unnecessary faces based on the line normal vector of the point, and delete the specific unnecessary faces from the surface list to obtain a surface screening list.
[0140] As an implementation method of obtaining a surface filter list, a specific unnecessary surface, that is, the bottom surface of the structural foundation, is determined by a line-shaped normal vector of a point, and the index item of the bottom surface of the structural foundation in the surface list is obtained, and the input interface of the List.RemoveItemAtIndex node in the Dynamo software is connected with the output terminal OUT of the List.FilterByBoolMask node and the output interface of the Code Block node, wherein the Code Block node is used to configure the index item of the bottom surface of the structural foundation in the surface list. The List.RemoveItemAtIndex node is used to obtain the surface list and the index item of the bottom surface of the structural foundation in the surface list, and delete the index item of the bottom surface of the structural foundation in the surface list from the surface list, that is, delete the specific unnecessary surface from the surface list to obtain a surface filter list.
[0141] S10, calculating the area of the surface included in the surface screening list and determining it as the template area.
[0142] Among them, S10 specifically includes:
[0143] S101. Obtain faces included in a surface filtering list, and combine the faces included in the surface filtering list to form a second polysurface.
[0144] Specifically, the input interface of the PolySurface.ByJoinedSurfaces node in the Dynamo software is connected to the output interface of the List.RemoveItemAtIndex node to obtain the faces included in the surface filter list, and the faces included in the surface filter list are combined to form a second polysurface.
[0145] S102: Calculate the area of the second polysurface, and determine the area of the second polysurface as the template area.
[0146] The input interface of the Surface.Area node in the Dynamo software is connected to the output interface of the PolySurface.ByJoinedSurfaces node to obtain the second polysurface and calculate the surface area of the second polysurface, that is, the template area.
[0147] The CodeBlock node is connected to the output interface of the Surface.Area node through the input interface of the Code Block node. The CodeBlock node is used to set the unit formula to be converted, so as to convert the units of the obtained template area.
[0148] Based on the method for calculating the template area, an embodiment of the present application also discloses a method for implementing Revit rapid modeling based on Dynamo, and a template model is obtained according to the surfaces included in the surface screening list.
[0149] As an implementation method of the template model acquisition method, the thickness and surface stretching direction are obtained, and the surface included in the surface screening list is stretched along the surface stretching direction by the configured thickness to form an entity; the group category and material are obtained, and the template model is generated based on the entity, group category and material.
[0150] like Figure 2 As shown, specifically, the thickness is configured through the Code Block node in the Dynamo software, the Boolean node sets the surface stretching direction, and the input interface of the Surface.Thicken node is connected with the output interface of the List.RemoveItemAtIndex node, the output interface of the Code Block node, and the output interface of the Boolean node respectively, so as to obtain all the surfaces included in the surface filter list, and stretch all the surfaces along the set surface stretching direction by the configured thickness, that is, all the surfaces included in the surface filter list are thickened to form a solid, that is, a template model.
[0151] The family category to be obtained is set through the Categories node in the Dynamo software, the material name is set through the Code Block node, and the input interface of the Material.ByName node is connected to the output interface of the Code Block node to obtain the corresponding material according to the set material name. The input interface of the DirectShape.ByGeometery node in the Dynamo software is connected to the output interface of the Surface.Thicken node, the output interface of the Categories node, and the output interface of the Material.ByName node to import the entity into Revit, set the imported family category and material, and give the entity type meaning.
[0152] Combination Figure 5 It should be noted that the template model after importing into Revit is only a shape and cannot be edited a second time.
[0153] As the technical solution of this application, the focus to be protected is to select appropriate functional nodes according to the logical relationship of target requirements and establish effective connections between them, so as to form a method that can realize template area calculation and rapid modeling. The specific Dynamo software and its built-in functional nodes are not the technical problems to be solved and the objects to be protected by this application. At the same time, the built-in functional nodes in the Dynamo software mentioned in this application are all prior art and are not the invention points of this application.
[0154] Based on the template area calculation method and the rapid modeling method, the embodiment of the present application also discloses a system for implementing Revit template area calculation and rapid modeling based on Dynamo.
[0155] As an implementation of the system for template area calculation and rapid modeling, it specifically includes:
[0156] An integrated entity acquisition module is configured to respectively acquire geometric shapes of a structural frame, a structural column, a floor slab, and a structural foundation, and generate an integrated entity based on the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation; wherein the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation are obtained by selecting a main model created by Revit in Dynamo;
[0157] A surface acquisition module, configured to acquire all surfaces constituting the integrated entity;
[0158] A surface list acquisition module is configured to acquire normal vectors of all surfaces of the integrated entity, determine whether the normal vector is upward, and if so, delete the surface corresponding to the normal vector, and obtain a surface list based on the remaining surfaces;
[0159] A surface screening list acquisition module is configured to acquire points of all surfaces of the integrated entity, determine specific unnecessary surfaces based on the points of all surfaces of the integrated entity, and delete the specific unnecessary surfaces from the surface list to obtain a surface screening list;
[0160] An area acquisition module is configured to calculate the area of the surface included in the surface screening list and determine it as the template area;
[0161] The template model acquisition module is configured to generate a template model according to the surfaces included in the surface screening list.
[0162] As an implementation of the integrated entity acquisition module, it includes:
[0163] a structural frame acquisition unit configured to acquire a geometric shape of the structural frame;
[0164] A structural column acquisition unit is configured to acquire a geometric shape of a structural column;
[0165] A floor acquisition unit configured to acquire a geometric shape of a floor;
[0166] a structural foundation acquisition unit configured to acquire a geometric shape of a structural foundation;
[0167] A geometric shape set acquisition unit is configured to merge the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation to obtain a geometric shape set;
[0168] A one-dimensional list data acquisition unit is configured to flatten the geometric shape set to obtain one-dimensional list data, wherein the one-dimensional list data includes shapes;
[0169] The category setting unit is configured to set the category to be a shape;
[0170] a removing unit configured to filter the one-dimensional list data and remove graphics other than the shapes set by the category setting unit from the one-dimensional list data;
[0171] The merging unit is configured to merge the shapes in the one-dimensional list data into an integrated entity.
[0172] As an implementation of the surface acquisition module, it specifically includes:
[0173] A first polysurface acquisition unit is configured to generate a first polysurface according to the integrated entity;
[0174] The surface acquisition unit is configured to decompose the first polysurface to obtain all surfaces constituting the first polysurface.
[0175] As an implementation of the surface list acquisition module, it includes:
[0176] A U coordinate and V coordinate parameter setting unit configured to set parameters of the U coordinate and the V coordinate;
[0177] A normal vector acquisition unit, configured to determine a normal vector of the surface according to parameters of the U coordinate and the V coordinate;
[0178] A Z coordinate setting unit, configured to set a unit vector of a Z coordinate;
[0179] A dot product unit, configured to obtain a dot product of a normal vector and a unit vector of a Z coordinate;
[0180] The y value setting unit is configured to set the y value to 1;
[0181] a determination unit configured to determine whether a dot product of the normal vector and the unit vector of the Z coordinate is equal to the y value, and if so, determine that the normal vector is upward;
[0182] The surface list generating unit is configured to obtain all surfaces constituting the first polysurface, delete the surfaces corresponding to the upward normal vectors among all the surfaces, and generate a surface list based on the remaining surfaces.
[0183] As an implementation of the surface screening list acquisition module, it includes:
[0184] A point acquisition unit, configured to determine a point of the surface according to parameters of the U coordinate and the V coordinate;
[0185] A length setting unit configured to set a length of the straight line extension;
[0186] A line schematic normal vector acquisition unit is configured to acquire the normal vectors of all surfaces in the surface list, and use a point as a starting point of a straight line, generate a straight line of a specified length along the direction of the normal vector, and generate a line schematic normal vector of the point;
[0187] An index item setting unit is configured to determine a specific unnecessary face according to the line schematic normal vector, and obtain an index item of the specific unnecessary face in the surface list;
[0188] The surface filtering list generating unit is configured to delete the index items corresponding to the specific unnecessary faces from the surface list to obtain the surface filtering list.
[0189] As an implementation of the area acquisition module, it includes:
[0190] A second polysurface acquisition unit is configured to form a second polysurface according to the surface combination included in the surface screening list;
[0191] The template area acquisition unit is configured to calculate the area of the second polysurface and determine it as the template area.
[0192] An implementation of the template model acquisition module includes:
[0193] a thickness setting unit configured to set the thickness;
[0194] A curved surface stretching direction setting unit, configured to set the curved surface stretching direction;
[0195] A curved surface thickening unit, configured to stretch the curved surface included in the curved surface screening list along the curved surface stretching direction to the thickness to form a template model;
[0196] A family type setting unit is configured to set the family type to a conventional model;
[0197] The material setting unit is configured to set the material to be plywood;
[0198] The import unit is configured to import the template model into Revit and set the family category and material after import.
[0199] An embodiment of the present application also discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and executes the above-mentioned APP management method. The computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0200] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A method for calculating the area of a Revit template based on Dynamo, characterized in that: include: Respectively obtain the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations, wherein the geometric shapes of the structural frame, structural columns, floor slabs and structural foundations are obtained by selecting a three-dimensional initial model created by Revit in Dynamo; Merging the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation to obtain a geometric shape set, wherein the geometric shape set includes a shape; Generate one-dimensional list data according to the geometric shape set, wherein the one-dimensional list data includes shapes; Extracting shapes from the one-dimensional list data, and generating an integrated entity based on the extracted shapes; Obtaining all surfaces constituting the integrated solid; The step of obtaining all the curved surfaces constituting the integrated entity specifically includes: generating a first polysurface according to the integrated entity; Decomposing the first polysurface to obtain all surfaces constituting the first polysurface; Obtaining normal vectors of all surfaces of the integrated entity; Determine whether the normal vector is upward, if so, delete the surface corresponding to the normal vector, and obtain a surface list based on the remaining surfaces; Obtaining normal vectors of points and lines of points constituting the integrated entity; Determine a specific unnecessary face based on the line schematic normal vector of the point, and delete the specific unnecessary face from the surface list to obtain a surface screening list; The step of determining a specific unwanted surface based on the normal vector of the point specifically includes: Get the preset length; Generate a line schematic normal vector based on the normal vector of the point and a preset length; determining specific unwanted faces based on the line schematic normal vectors; Calculating the area of the surface included in the surface screening list and determining it as the template area; The step of calculating the area of the surface included in the surface screening list and determining it as the template area specifically includes: Obtaining the surfaces included in the surface filter list; Combining the faces included in the surface screening list to form a second polysurface; The area of the second polysurface is calculated, and the area of the second polysurface is determined as the template area.
2. According to claim 1, a method for calculating the area of a Revit template based on Dynamo is characterized in that: The step of determining whether the normal vector is upward specifically includes: Get the Z coordinate unit vector; Get the dot product of the normal vector and the Z coordinate unit vector; It is determined whether the dot product of the normal vector and the Z coordinate unit vector is equal to 1. If so, it is determined that the normal vector is upward.
3. A method for implementing Revit rapid modeling based on Dynamo, characterized in that: The method for calculating the area of a Revit template based on Dynamo according to any one of claims 1 to 2 comprises: The surfaces included in the surface screening list are used to obtain a template model.
4. The method for implementing Revit rapid modeling based on Dynamo according to claim 3 is characterized in that: The obtaining of the template model according to the surfaces included in the surface screening list specifically includes: Get the thickness and surface stretching direction; Stretching the surfaces included in the surface screening list by the thickness along the surface stretching direction to form a solid; Get family category and material; Based on the entities, group categories and materials, a template model is generated.
5. A system for realizing Revit template area calculation and rapid modeling based on Dynamo, characterized in that: include: An integrated entity acquisition module is configured to respectively acquire geometric shapes of a structural frame, a structural column, a floor slab, and a structural foundation, and generate an integrated entity based on the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation; wherein the geometric shapes of the structural frame, the structural column, the floor slab, and the structural foundation are obtained by selecting a three-dimensional initial model created by Revit in Dynamo; A surface acquisition module, configured to acquire all surfaces constituting the integrated entity; The step of obtaining all the curved surfaces constituting the integrated entity specifically includes: generating a first polysurface according to the integrated entity; Decomposing the first polysurface to obtain all surfaces constituting the first polysurface; A surface list acquisition module is configured to acquire normal vectors of all surfaces of the integrated entity, determine whether the normal vector is upward, and if so, delete the surface corresponding to the normal vector, and obtain a surface list based on the remaining surfaces; A surface screening list acquisition module is configured to acquire points of all surfaces of the integrated entity, determine specific unnecessary surfaces based on the points of all surfaces of the integrated entity, and delete the specific unnecessary surfaces from the surface list to obtain a surface screening list; The step of determining a specific unwanted surface based on the normal vector of the point specifically includes: Get the preset length; Generate a line schematic normal vector based on the normal vector of the point and a preset length; determining specific unwanted faces based on the line schematic normal vectors; The integration entity acquisition module includes: a structural frame acquisition unit configured to acquire a geometric shape of the structural frame; A structural column acquisition unit is configured to acquire a geometric shape of a structural column; A floor acquisition unit configured to acquire a geometric shape of a floor; a structural foundation acquisition unit configured to acquire a geometric shape of a structural foundation; A geometric shape set acquisition unit is configured to merge the geometric shapes of the structural frame, structural columns, floor slabs and structural foundation to obtain a geometric shape set; A one-dimensional list data acquisition unit is configured to flatten the geometric shape set to obtain one-dimensional list data, wherein the one-dimensional list data includes shapes; The category setting unit is configured to set the category to be a shape; a removing unit configured to filter the one-dimensional list data and remove graphics other than the shapes set by the category setting unit from the one-dimensional list data; A merging unit is configured to merge the shapes in the one-dimensional list data into an integrated entity; an area acquisition module is configured to calculate the area of the surface included in the surface screening list and determine it as the template area; The template model acquisition module is configured to generate a template model according to the surfaces included in the surface screening list.
6. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Dynamo-based concrete member template modeling and area acquisition method
CN115391865A
Three-dimensional airfoil quadrilateral mesh automatic generation method based on symmetric direction field
CN116522496A
Grasshopper-based building general plane generation method and system, medium and equipment
CN117290918A
Rapid model selection method and system for ventilation equipment
CN117574598A
Electric power fitting parametric modeling system and method
CN117807645A
