The design of building water supply and drainage is an important part of the whole of architecture design.For the numerous of piping systems,the collision between pipes and specialized components,between pipes and pipelines are likely to occur in the construction process,which are difficult to be solved in CAD.With the emergence and development of Revit MEP,it can be used to improve design quality and make the design effective.Revit MEP is gradually used in the design of building water supply and drainage now.It is still in the early stage,especially the study and application of redevelopment based on Revit API is immature.This paper introduces the functions、project preparation、basic settings of Revit MEP and uses Revit MEP to design the building water supply and drainage of an energy-saving demonstration project.Firstly,this paper combines with current codes and relevant technical requirements,using Revit MEP to design domestic water system、hot water system、reclaimed water system、domestic wastewater system、sewage drainage system and rainwater drainage system.Secondly,this paper analyzes the model to generate lists、check the piping system、browse the systems.It helps designers to check and view the design.Finally,this paper uses the function of collision detection to generate the pipe conflict report and modifies more than 40 collision primitives.This helps to minimize the cross-line during the design phrase.The usage of Visual Studio 2010 and Revit API,achieving the function of create multiple elevation and diameter diversification.Firstly,this paper introduces the preparation of redevelopment of Revit.Secondly,this paper introduces the creation of MyLevel.dll and PipeSize.dll by C#.Finally,this paper introduces two ways to achieve the function in Revit,respectively are executing external commands and creating buttons.This study offers some good experiences to water supply and drainage design、the redevelopment of Revit MEP.The study has theoretical and practical significances,and it can provide a reference to the application practice and the follow-up study. |