Revit-based automatic modeling method and system for assembly type shear wall
Technical Field
The invention relates to the technical field of building information model information, in particular to a method and a system for automatically modeling an assembled shear wall based on Revit.
Background
The basis of the building-on-building BIM application is the creation of a BIM model. At present, the BIM modeling process of the fabricated building is as follows: firstly, a design institute designs and graphs according to a cast-in-place structure model, then a PC deepening company carries out deepening design on an assembly type component to obtain a deepening drawing of the PC component, and the BIM model of the assembly type component is built according to a deepened CAD detailed drawing. However, since the structure of the fabricated components is more complex and varied than the cast-in-place structure, the workload of manually creating the BIM model of the fabricated shear wall is huge and tedious, especially the steel bar model. How to rapidly, effectively and accurately model the BIM model of the fabricated shear wall is an urgent problem to be solved.
Therefore, a program capable of automatically generating the BIM model of the fabricated shear wall is developed, and the method has practical operation significance for improving the working efficiency of modeling and the accuracy of the model.
Disclosure of Invention
1. Technical problem to be solved
In order to solve the problems in the prior art, the invention provides an automatic modeling method and system for an assembled shear wall based on Revit.
2. Technical scheme
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for automatically modeling an assembled shear wall based on Revit comprises the following steps:
step 1, acquiring geometric parameters of a wall body through a Form window: inputting geometric parameters in a window according to the selected type of the assembled shear wall body, and performing unit conversion and storage on the input data;
step 2, creating a family file: family boilerplate files are extracted from the family boilerplate folder through a method in a Revit API development tool, and family documents are created and family management for all editing behaviors in the family is managed;
step 3, generating a wall body outline and a hole: in the created family template file, generating a wall outline of an entity and an opening of a cut body through a stretching method in a Revit API development tool according to the acquired wall geometric parameters, and regenerating a model of the entity and the cut body to be connected through a primitive connection method in the Revit API development tool;
step 4, generating an accessory component: in the created family template file, a hanging nail, a hemispherical groove, a temporary support embedded part and a key groove are generated by a rotation and fusion method in a Revit API development tool and are connected with a generated wall body outline and a hole in a graphic element mode;
and 5, defining parameters in the family: creating parameters such as family materials, wall body geometric dimensions, construction types and the like in the created family documents, traversing the parameters capable of enabling the reinforcing steel bars to be attached to the main body through a Revit API development tool when the family categories and the component parameters are set, and automatically selecting the parameters;
step 6, acquiring reinforcement parameters: the method comprises the steps of reading input steel bar marks and steel bar diameters according to different wall types by identifying the obtained wall types to form steel bar types;
step 7, generating a steel bar example: setting a reinforced concrete protective layer for the created wall structure model, calculating the initial coordinate position of each reinforcing steel bar according to the position of the reinforcing steel bar relative to the wall and the type of the reinforcing steel bar, and combining the introduced geometric parameters and coordinate points of the wall, referring to a national building standard design atlas, simultaneously obtaining the shape and type of the reinforcing steel bar provided in Revit, and finally generating a reinforcing steel bar example based on a Revit API development tool;
step 8, generating a grouting sleeve: firstly, calculating a coordinate base point of the sleeve, creating hollow and solid sleeve primitives at the coordinate base point through a Revit API development tool, connecting the hollow and solid sleeve primitives with a previous model, and finally loading the hollow and solid sleeve primitives into a project.
Preferably, the wall body type is divided into a non-opening external wall panel, a single-door-opening external wall panel, a double-door-opening external wall panel, a non-opening internal wall panel, a fixed door buttress internal wall panel, a middle door-opening internal wall panel and a hilt internal wall panel.
Preferably, the geometric parameters comprise wall body external contour dimension, hole geometric dimension and hole position parameters.
Preferably, the steel bar example generation realizes the automatic generation of BIM models of all steel bars in national building standard design atlas (15G365-1 and 15G365-2), including wall body steel bars, edge member steel bars, coupling beam steel bars and the like.
A system for automated modeling of fabricated shear walls based on Revit, comprising:
obtaining a wall geometric parameter module: selecting the type of an assembled shear wall body to be generated in a Form window program, popping up an input interface by the program according to different selected wall body types, requiring to input the profile size, the geometric size of a hole and the position parameters of the hole corresponding to the selected wall body type, performing unit conversion on the input data, and storing the unit conversion data in a double-precision floating point variable of a program background;
the wall model generation module: reading a 'metric conventional model' from a group template file folder based on a method in a Revit API development tool, creating a group document and group management, automatically generating a wall contour and a hole model by a program in the created group file according to wall parameters stored in a background through a stretching method, automatically generating a hanging nail, a hemispherical groove, a temporary support embedded part and a key groove through a rotation and fusion method, and performing automatic pixel connection;
the wall model generation module: based on a Revit API development tool, automatically defining family internal parameters of the generated model, wherein the family internal parameters comprise family material parameters, wall geometric dimension parameters, wall member type parameters, family category parameters and set structure attribute parameters;
a reinforcement parameter acquisition module: selecting an assembled shear wall model which needs to be generated, selecting the diameters and the grades of reinforcing steel bars of a connecting beam, an edge component and a concrete wall in a window program of a reinforcement module, and storing the type of the reinforcing steel bars formed by the system according to the selected grade and the diameter of the reinforcing steel bars in a program background;
the steel bar example generation module: setting a reinforced concrete protective layer for the created wall structure model based on a Revit API development tool, calculating the initial coordinate position of each reinforcing steel bar according to the position of the reinforcing steel bar relative to the wall and the type of the reinforcing steel bar, combining the brought geometric parameters and coordinate points of the wall, referring to a national building standard design atlas, associating the type of the reinforcing steel bar stored in a background and acquiring the shape of the reinforcing steel bar provided in Revit, and completing automatic reinforcement allocation of the model;
grouting sleeve generation module: and re-editing the selected wall body, acquiring an initial coordinate point of the sleeve steel bar in the wall body by using a Revit API development tool, calculating to obtain a base point coordinate of the grouting sleeve, respectively creating a numerical value part and a side grouting opening part of the grouting sleeve in the base point coordinate, and finally connecting the generated grouting sleeve model with the original wall body and loading the grouting sleeve model into the project again.
Preferably, the acquisition set parameter module, the wall model generation module and the wall model generation module are integrated into a window body, and are used for completing a model of the assembled shear wall profile.
Preferably, the reinforcement parameter acquiring module, the reinforcement instance generating module and the grouting sleeve generating module are integrated in a window body to complete reinforcement of the built shear wall model.
3. Advantageous effects
Compared with the prior art, the invention has the advantages that:
according to the invention, the BIM model of the assembled shear wall meeting the national standard and CAD drawing is automatically generated according to the parameter data of the assembled shear wall input by a user, and meanwhile, the accurate reinforcement of the model is completed.
Drawings
FIG. 1 is a schematic flow chart of a method for automatically modeling an assembled shear wall based on Revit according to the present invention;
fig. 2 is a program process diagram of a method and a system for automatically modeling an assembled shear wall based on Revit according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Example 1:
referring to fig. 1-2, a method for automatically modeling an assembled shear wall based on Revit includes the following steps:
step 1, acquiring geometric parameters of a wall body through a Form window: inputting geometric parameters in a window according to the selected type of the assembled shear wall body, and performing unit conversion and storage on the input data;
step 2, creating a family file: family boilerplate files are extracted from the family boilerplate folder through a method in a Revit API development tool, and family documents are created and family management for all editing behaviors in the family is managed;
step 3, generating a wall body outline and a hole: in the created family template file, generating a wall outline of an entity and an opening of a cut body through a stretching method in a Revit API development tool according to the acquired wall geometric parameters, and regenerating a model of the entity and the cut body to be connected through a primitive connection method in the Revit API development tool;
step 4, generating an accessory component: in the created family template file, a hanging nail, a hemispherical groove, a temporary support embedded part and a key groove are generated by a rotation and fusion method in a Revit API development tool and are connected with a generated wall body outline and a hole in a graphic element mode;
and 5, defining parameters in the family: creating parameters such as family materials, wall body geometric dimensions, construction types and the like in the created family documents, traversing the parameters capable of enabling the reinforcing steel bars to be attached to the main body through a Revit API development tool when the family categories and the component parameters are set, and automatically selecting the parameters;
step 6, acquiring reinforcement parameters: the method comprises the steps of reading input steel bar marks and steel bar diameters according to different wall types by identifying the obtained wall types to form steel bar types;
step 7, generating a steel bar example: setting a reinforced concrete protective layer for the created wall structure model, calculating the initial coordinate position of each reinforcing steel bar according to the position of the reinforcing steel bar relative to the wall and the type of the reinforcing steel bar, and combining the introduced geometric parameters and coordinate points of the wall, referring to a national building standard design atlas, simultaneously obtaining the shape and type of the reinforcing steel bar provided in Revit, and finally generating a reinforcing steel bar example based on a Revit API development tool;
step 8, generating a grouting sleeve: firstly, calculating a coordinate base point of the sleeve, creating hollow and solid sleeve primitives at the coordinate base point through a Revit API development tool, connecting the hollow and solid sleeve primitives with a previous model, and finally loading the hollow and solid sleeve primitives into a project.
Furthermore, the wall body type is divided into a non-opening external wall panel, a single-door-opening external wall panel, a double-door-opening external wall panel, a non-opening internal wall panel, a fixed door buttress internal wall panel, a middle door-opening internal wall panel and a hilt internal wall panel.
Furthermore, the geometric parameters comprise wall body outer contour dimension, hole geometric dimension and hole position parameters.
Further, the steel bar example generation realizes the automatic generation of BIM models of all steel bars in the national building standard design atlas (15G365-1 and 15G365-2), wherein the BIM models comprise wall body steel bars, edge member steel bars, coupling beam steel bars and the like.
A system for automated modeling of fabricated shear walls based on Revit, comprising:
obtaining a wall geometric parameter module: selecting the type of an assembled shear wall body to be generated in a Form window program, popping up an input interface by the program according to different selected wall body types, requiring to input the profile size, the geometric size of a hole and the position parameters of the hole corresponding to the selected wall body type, performing unit conversion on the input data, and storing the unit conversion data in a double-precision floating point variable of a program background;
the wall model generation module: reading a 'metric conventional model' from a group template file folder based on a method in a Revit API development tool, creating a group document and group management, automatically generating a wall contour and a hole model by a program in the created group file according to wall parameters stored in a background through a stretching method, automatically generating a hanging nail, a hemispherical groove, a temporary support embedded part and a key groove through a rotation and fusion method, and performing automatic pixel connection;
the wall model generation module: based on a Revit API development tool, automatically defining family internal parameters of the generated model, wherein the family internal parameters comprise family material parameters, wall geometric dimension parameters, wall member type parameters, family category parameters and set structure attribute parameters;
a reinforcement parameter acquisition module: selecting an assembled shear wall model which needs to be generated, selecting the diameters and the grades of reinforcing steel bars of a connecting beam, an edge component and a concrete wall in a window program of a reinforcement module, and storing the type of the reinforcing steel bars formed by the system according to the selected grade and the diameter of the reinforcing steel bars in a program background;
the steel bar example generation module: setting a reinforced concrete protective layer for the created wall structure model based on a Revit API development tool, calculating the initial coordinate position of each reinforcing steel bar according to the position of the reinforcing steel bar relative to the wall and the type of the reinforcing steel bar, combining the brought geometric parameters and coordinate points of the wall, referring to a national building standard design atlas, associating the type of the reinforcing steel bar stored in a background and acquiring the shape of the reinforcing steel bar provided in Revit, and completing automatic reinforcement allocation of the model;
grouting sleeve generation module: and re-editing the selected wall body, acquiring an initial coordinate point of the sleeve steel bar in the wall body by using a Revit API development tool, calculating to obtain a base point coordinate of the grouting sleeve, respectively creating a numerical value part and a side grouting opening part of the grouting sleeve in the base point coordinate, and finally connecting the generated grouting sleeve model with the original wall body and loading the grouting sleeve model into the project again.
Furthermore, the acquisition set parameter module, the wall model generation module and the wall model generation module are integrated into a window body and used for completing the model of the assembled shear wall contour.
Further, the module for acquiring the reinforcement parameters, the module for generating the reinforcement examples and the module for generating the grouting sleeve are integrated in a window body, so as to complete reinforcement of the built shear wall model.
In the invention, an assembled shear wall BIM model creating tool is started, a double-opening outer wall plate type is selected on an assembled shear wall BIM model creating tool interface, an outer wall contour, a window opening size 1, a window opening size 2, a window opening position and name parameters are input on a parameter interface, a 'confirm' button is clicked, a program starts to automatically generate a shear wall family according to the input wall parameters, a user clicks a 'place model' button to arrange an example model for the just created family, an assembled shear wall BIM model reinforcing bar distributing tool is started, the user clicks the 'confirm' button according to a prompt box to select the just created assembled shear wall, the program pops up a reinforcing bar interface prompt box of a wall body of a corresponding type according to the selected wall body type, the anti-seismic grade of a component is selected, the anti-seismic grade is one grade, an encrypted stirrup is automatically selected, the diameters and the brand numbers of reinforcing steel bars of a coupling beam, an edge component and a concrete wall are selected, and clicking a 'confirm' button, and automatically reinforcing the assembled shear wall group by the program according to the selected parameters to prompt that the 'model reinforcing is successful', namely, completing the automatic reinforcing of the selected wall.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.