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

Subject: Parameters of AreaReinforcement and Rebar.
Summary: 
This sample shows how to use API displays and modifies parameters of AreaReinforcement. And teach user how to get all parameters of Rebar.

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.ElementSet
Autodesk.Revit.DB.ElementIterator
Autodesk.Revit.DB.Structure.RebarBarType 
Autodesk.Revit.DB.Structure.AreaReinforcementCurve
Autodesk.Revit.DB.BuiltInParameter

Project Files: 
AreaReinParameters.cs
Implement the IExternalCommand interface, Class “Command” show user how to get AreaReinforcment and change its parameters. Class “RebarParas” show user how to get all parameters of Rebar.

FloorAreaReinData.cs
Data source of PropertyGrid.

WallAreaReinData.cs
Data source of PropertyGrid.

ParameterUtil.cs
This file defines a class ParameterUtil contains methods use to manage parameter. Such as find parameter by name and change value of parameter.

Description: 
This sample shows how to use API displays and modifies parameters of AreaReinforcement:
-	Change Layout Rule in “Construction” group
-	Change Top/Bottom Minor/Major Bar Type
-	Change Top/Bottom Minor/Major Hook Orientation
-	Change Top/Bottom Minor/Major Hook Type

Instructions: 
1.	Draw an AreaReinforcement (or open AreaReinParameters.rvt) and Select it.
2.	Run “AreaReinParameters” command. (Menu->Tools->External Tools)
3.	Draw a Rebar (or open Rebar.rvt) and Select it.
4.	Run “RebarParameters” command.