Application: ProjectInfo
Revit product and version: Revit Architecture 2008
Last Modified: 08/12/2006
Modified By: AL Autodesk HSL
Programming Language: C#

Subject:  Demonstrates how to get and set the current project information.

Classes: 
Autodesk.Revit.Document
Autodesk.Revit.Elements.ProjectInfo
Autodesk.Revit.Elements.gbXMLParamElem
Autodesk.Revit.Parameters.BuildInParameter
Autodesk.Revit.Parameters.BuildingType

Project Files: 
Command.cs
This file contains the class Command which inherits from IExternalCommand. The function of the class is to retrieve the current project information, and then display it in a form.

ProjectInfoData.cs
This file contains the class ProjectInfoData which is a wrapper class of ProjectInfo. The class could preserve and modify data of ProjectInfo.

ProjectInfoForm.cs
This file contains a Form class ProjectInfoForm which consists of ok, cancel buttons and a group of text controls which could show the project information such as project name and so on.

Description: 
The function of this sample is same as clicking menu “Settings->Project Information…” in Revit application.
-	To get the project information of a document, use Document.ProjectInformation property.
-	To get the “Energy Data” use ProjectInfo.gbXMLSettings property which includes the “Postal code” and “Building type”.

Instructions: 
1.	Run the command. 
2.	Change some information (such as project name), than click “OK” button to save them.