Application: ViewPrinter
Revit product and version: All
Last Modified: 20/12/2006
Modified By: PP Autodesk HSL
Programming Language: C#

Subject: This sample demonstrates how to print the printable views, how to access all specified type elements within the current document and how to open a Revit project file on disk.

Classes:
Autodesk.Revit.Elements.View
Autodesk.Revit.Document

Project Files: 
Command.cs
This is the main DLL source file; it contains the class Command which implements interface IExternalCommand.
PrintMgr.cs
This is the most important class of the sample project. It will show you how to print view, provide access to all elements of specified type within the Document and how to open a Revit file on disk.
FirstPanel.cs
The first page of the wizard should ask the user if they want to print from the currently opened project or from a file on disk. In the latter case it will provide a file browser for the user to pick a Revit project file.
SecondPanel.cs
The second page should display all the printable views in the project that they chose. A tree view should be used to allow the user to select which views they wish to print.
ThirdPanel.cs
The third page should be a confirmation of what they wish to do with a Print button.

Description: This sample demonstrates the following functionalities:
-	Print the printable views.
-	Access all elements of specified type within the Document.
-	Open a Revit project file on disk.

Instructions: 
1.	Make sure the printer is available.
2.	Run Revit.
3.	Run this command.
4.	In the first page of the wizard, choose to print from the currently opened project or from a file on disk. In the latter case pick a Revit project with the file browser.
5.	In the second page, choose the views you want to print from the tree view.
6.	In the third page, make a confirmation of the views selected in the previous step. Click the “Settings…” button to set the printer and the “Print” button to print all the selected views.