Application: CreateWallsUnderBeams
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 under selected Beams.
Summary: 
This sample demonstrates how to generate simple rectangular wall(s) under the beam(s) 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.DB.FamilyInstance
Autodesk.Revit.DB.Document 

Project Files: 
CreateWallsUnderBeams.cs
The main DLL source file which contains the class Command which implements interface IExternalCommand. Find the selection of beams in Revit; Make sure all the beams have horizontal analytical line; Show the dialog for the user to select the wall style and Create walls which along and under the path of the beams. 

CreateWallsUnderBeamsForm.cs
This file contains a form class contains 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 command will take a selection of beams and draw simple rectangular walls along and under the path of the beams.
-	This sample should be worked for only horizontal beam objects.
-	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 the wall type which will be used in creation. And 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 simple rectangular walls should be created along and under the path of the selected beams.

Instructions: 
1.	Open Revit Structure and draw some beams.
2.	Select the beams and run this command.
3.	Users can select the wall type and choose whether the wall(s) is structural.
4.	Click the OK button.
5.	Application will create simple rectangular wall(s) under the beams.