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 www.developerfusion.com/tools/convert/vb-to-csharp ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.