Message 1 of 4
Filtered Element Collector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have created a plugin that uses a filtered element collector to capture Electrical Equipment in a model. It works perfectly on a model that is based on our network however does not find the elements when a Bim 360 model is opened.
My code
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application app = uiapp.Application;
Document doc = uidoc.Document;
//Retrieve elements from database
FilteredElementCollector col1
= new FilteredElementCollector(doc)
.WhereElementIsNotElementType() .OfCategory(BuiltInCategory.OST_ElectricalEquipment);
Thanks for your help.
Michael