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.
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 ...