© 2010 Autodesk
Introduction to the Navisworks 2011 .NET API
Using The Search Class
Create A Search
Search search = new Search();
Add Selection and Conditions
search.Selection.SelectAll();
search.SearchConditions.Add(
  SearchCondition.HasPropertyByName("LcRevitData“,
    "LcRevitPropertyElementCategory").
    EqualValue(VariantData.FromDisplayString("Stairs")));
Execute Search
ModelItemCollection items = search.FindAll(Application.ActiveDocument,
                                           false);
Application.ActiveDocument.CurrentSelection.CopyFrom(items);
First, create a new search.
Add a selection and conditions. Here, we are searching the entire document. Next we add a search for the Revit Element category where it is equal to the string value “Stairs”.
Finally execute the search. Returns a model collection.

Show demo?