Application: DeleteDimensions
Revit product and version: All
Last Modified: 7/12/2006
Modified By: VL Autodesk HSL
Programming Language: C#

Subject: Show how to delete Dimension elements.

Classes: 
Autodesk.Revit.IExternalCommand 
Autodesk.Revit.Elements.Dimension
Autodesk.Revit.Document

Project Files: 
DeleteDimesions.cs
This file contains a class Command that implements the IExternalCommand, the function of the class is to get the dimension objects from the selected elements and delete those that are not pinned.

Description: 
-	To get the select elements use ActiveDocument.Seleciton.Elements.
-	To verify the dimension is pinned or not use Dimension.Pinned.
-	To delete a dimension use Document.Delete(ElementSet).

Instructions: 
1.	Select some dimensions to be deleted.
2.	Run the command.
3.	The dimensions will be deleted if it is not pinned.