Application: ElementViewer
Revit product and version: All
Last Modified: 15/12/2006
Modified By: PP Autodesk HSL
Programming Language: VB.NET

Subject: This program demonstrates the usage of element's geometry. This sample uses a helper program RevitViewer.  

Classes: 
Autodesk.Revit.Geometry.Element
Autodesk.Revit.Geometry.GeometryObject

Project Files:                                
Main.vb
This is the main DLL source file. It contains the class Command which implements interface IExternalCommand, and gets the geometry model from element to draw.

Description: This sample demonstrates the following functionalities:
-	The property Geometry can retrieve the geometric representation of the element. It will retrieve 3d representation of the element. Nothing will be returned for symbols, annotations or details. This involves extensive parsing or Revit's data structures, so try to minimize calls if performance is critical.

Instructions: 
1.	Draw an element first
2.	Then, select it.
3.	Run the external command.  
4.	Expected result: It will show the element's geometry in a wireframe in a viewer.
Note: Some elements don’t expose geometry, for example, curtain wall and dimension.
In case of a curtain wall, try selecting a whole wall by a window/box instead of a single pick. 
So that internal components will be selected and its geometry will be able to be displayed.