Application: CreateWallinBeamProfile
Revit Platform: Structure
Revit Version: 2011.0
First Released For: 9.0
Programming Language: C#
Skill Level: Medium
Category: Structure
Type: ExternalCommand

Subject: Create wall with Profile of selected Beams.
Summary: 
This sample demonstrates how to generate a wall which has the profile of beams selection. When the command is executed, a dialog should appear that contains a drop-down list for all types of wall and a check box for whether the walls are structural. Default should be checked.

Classes: 
Autodesk.Revit.UI.IExternalCommand 
Autodesk.Revit.UI.Elements.FamilyInstance
Autodesk.Revit.DB.Curve
Autodesk.Revit.DB.Document 

Project Files: 
CreateWallinBeamProfile.cs
The main DLL source file contains the class Command which implements interface IExternalCommand. Get necessary data from revit. Check whether the selected beams are made of a colsed and vertical profile. Show the dialog for the user to select the wall type. Create the walls using the outline generated by the beams. 

CreateWallinBeamProfileForm.cs
This file contains a form class which includes a drop-down list for all types of wall and a check box for whether the walls are structural.

Description: 
This sample should provide the following functionalities:
-	Add a command that takes a selection of beams that makes a vertical profile and make a profiled wall using the outline generated by the beams.
-	This sample should be worked for only a selection of beams that makes a vertical profile.
-	When the command is executed a dialog should appear that contains the following:
-	A drop-down list for all types of wall.
-	A check box for whether the walls are structural. Default should be checked.
-	Users should be able to select wall type which will be used in creation. And the users can choose to create structural or architecture walls also.
-	Users select the required items from these boxes. When OK is clicked the dialog should be dismissed and a profile wall should be created using the outline generated by the beams.

Instructions: 
1.	Run Revit Structure.
2.	Prepare your Revit project.
Open or new a Revit project and draw some beams which made of a closed and vertical profile. A sample project file CreateWallinBeamProfile.rvt is available in the sample’s folder
3.	Select these beams and run this command.
4.	User can select wall type and choose whether the wall is structural.
5.	Click the OK button.
6.	Application will create a profiled wall using the beams selection’s outline.