The Sample Project

Now that you have a basic grasp of the Revit API, let's build a project from scratch. The sample in this section contains both an external command and an external application. The command generates 3D workset views for each user-created workset found in the model. This type of view is commonly used to diagnose workset assignments for elements in the model. Each of these 3D views has all worksets turned off except for the workset for which the view is named. The external application adds a tab to the ribbon where you can access your custom command.

The code samples in this section are all written in VB.NET using Visual Studio 2010 Premium. If you prefer to work in C#, you can translate the code by pasting it into ...

Get Mastering Autodesk® Revit® Architecture 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.