| In recent years,the Ministry of Water Resources has organized and formulated a series of standards for soil and water conservation planning and design,which provide guidance for the planning and design of soil and water conservation projects.However,the work efficiency and achievement quality of soil and water conservation design still need to be improved.At the same time,BIM technology,with the advantages of changing the traditional construction engineering management concept and improving the management integration degree,has a strong development and application momentum in China,and has been widely used in collision detection,3D modeling,scheme design,construction simulation and other aspects of the water conservancy industry.The Ministry of Water Resources proposed to build a digital watershed,which added heat to the deepening application of BIM technology in the water conservancy industry.Due to the diversified application requirements of BIM,there have been many researches on secondary development technology based on BIM,but it is seldom used in soil and water conservation work.In this paper,BIM technology is applied to the design of soil and water conservation measures,and Autodesk Revit is redeveloped to realize the auxiliary design of soil and water conservation measures and improve the efficiency and quality of soil and water conservation work,so as to avoid or reduce the difficulty in implementing soil and water conservation measures due to design quality problems.The main research contents are as follows:(1)Consulting relevant literature and production reports,visiting people in the field of soil and water conservation,summarizing the shortcomings of current soil and water conservation,analyzing the reasons,and putting forward ideas and methods to solve this problem by applying BIM technology.(2)Summarize the categories of soil and water conservation measures,and clarify the design points of various soil and water conservation measures.By using the metric model family template in Autodesk Revit,the parameterization of soil and water conservation measures model is studied,the model and parameters are coded and named uniformly,and the standard parameterized three-dimensional family library is established.(3)Taking Revit as the modeling software and development platform,the secondary development method of Autodesk Revit is systematically studied and applied to the development of plug-ins,which includes: the technical principle of Revit API interface,the use of collectors and filters,the control of code to the parameter values of 3D models,the control of model attributes,the output of program running results,etc.(4)Using Microsoft Visual Studio as secondary development environment and C# as programming language,applying MVC programming mode,designing plug-in operation logic(controller)and user interface(view),compiling data processing process(model),and forming plug-in for soil and water conservation measures design.After debugging and registration,it can realize the expected functions such as automatic modeling,related calculation,drawing and engineering quantity calculation.(5)The plug-in for soil and water conservation measures design formed by secondary development is applied to practical engineering cases,and the components in the family library are used to lay out soil and water conservation measures,and the plug-in function is used to complete automatic design calculation,design drawing,engineering quantity export and three-dimensional model export,thus realizing the auxiliary design of soil and water conservation measures for production and construction projects,and verifying the feasibility and advantages of the application of the family library and secondary development plug-in in this study. |