O'Reilly logo

Instant Autodesk Revit 2013 Customization with .NET How-to by Don Rudder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wall color by length (Become an expert)

We will create a command utilizing the analysis framework to colorize walls based on their length in this recipe. This command will create a new custom 3D view, set it active, and then turn everything off in the model leaving only the analysis elements visible. A legend showing the wall length ranges will be displayed in the lower-left corner of the view with the longer walls shown in blue and the shorter in red.

Getting ready

Create a new directory in your solution file named Ch6 Analysis and place this code sample in there. We also need to update the Revit2013Samples_VB.addin file so it can be accessed from the Revit session. Add the following inside the RevitAddIns tag being careful to not nest it inside ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required