Application: AnalyticalViewer
Revit Platform: Structure
Revit Version: 2010.0
First Released For: 8.0
Last Modified: 02/26/2008
Modified By: PP Autodesk
Programming Language: VB.NET
Skill Level: Medium
Category: Geometry
Type: ExternalCommand

Subject: View analytical model wireframe.
Summary: 
This program demonstrates the usage of a structural analytical model. This sample uses a helper program RevitViewer.

Classes: 
Autodesk.Revit.Structural.AnalyticalModel
Autodesk.Revit.Structural.AnalyticalModel3D
Autodesk.Revit.Structural.AnalyticalModelFloor
Autodesk.Revit.Structural.AnalyticalModelFrame
Autodesk.Revit.Structural.AnalyticalModelLocation
Autodesk.Revit.Structural.AnalyticalModelWall
Autodesk.Revit.Elements.FamilyInstance
Autodesk.Revit.Elements.Wall
Autodesk.Revit.Elements.ContFooting
Autodesk.Revit.Elements.Floor

Project Files:                                
Main.vb
This is the main DLL source file; it contains the class Command which implements interface IExternalCommand, and get the analytical model from element to draw.

Description: 
-	The analytical mode can be retrieved from the property AnalyticalModel of structure element. And an exception should be raised if the selected element is not structural.
-	There are five sub- types of analytical model: 3D, floor, frame, location and wall. They have curve array containing the Analytical Model.

Instructions: 
1.	Draw some structure elements, e.g. structure wall, structure slab.
2.	Run the external command. It will show the analytical model of the element(s) in a viewer.