Application: DesignOptionReader
Revit Platform: All
Revit Version: 2009.0
First Released For: 9.0
Last Modified: 02/26/2008
Modified By: LL Autodesk
Programming Language: VB.NET
Skill Level: Beginning
Category: Database (info)
Type: ExternalCommand

Subject: Display design options.
Summary: 
This sample demonstrates how to get the design options in the current document of Revit.

Classes: 
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Application
Autodesk.Revit.Element
Autodesk.Revit.Elements.DesignOption

Project Files: 
Command.vb
It contains the class Command which implements interface IExternalCommand. It also retrieves all the design options and sends the names of them to UI.

DesignOptionsDialog.vb
This file contains a form class DesignOptionsDialog which consists of a list box that shows the design options.

Description: 
This sample provides the following functionality.
-	Iterates all elements in the current project and retrieves all the design options.

Instructions: 
1.	Prepare your Revit project. 
Open or new a Revit project and make sure there are some design options in the project. A sample project file DesignOptionReader.rvt is available in the sample’s folder.
[Tip] Design options can be added to project through menu [Tools] – [Design Options].
2.	Execute the external Command.