Filters the items based on a set of search conditions
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Examples
CopyUsing a where clause
ModelItemCollection newCollection = new ModelItemCollection();
newCollection.CopyFrom(
Autodesk.Navisworks.Api.Application.ActiveDocument.
CurrentSelection.SelectedItems.Descendants.
Where(SearchCondition.HasCategoryByName(PropertyCategoryNames.Geometry)));
Autodesk.Navisworks.Api.Application.ActiveDocument.CurrentSelection.CopyFrom(newCollection);
See Also