I’ve been running a modified version of the scripts shown in some of the threads like here . It takes a keyword and exports NWCs for any views with that keyword.
But if I have a model with many views, each with a section box for a different area, and some views don’t have model content in them, yet, is there a setting in the NavisworksExportOptions to automatically skip over views that don’t have model content in them?
Right now, I must watch the script as it runs to manually click the ‘OK’ button on the popup for each empty view.
I didn’t see an option in the Revit API (https://www.revitapidocs.com/2019/8a8483f0-b8b8-219e-1bcd-e26833495ba8.htm) to skip over empty views – but am I missing something?
Workarounds I’ve considered:
- Count the elements in a view collector, and only export if that list is greater than 0. But FilteredElementCollector** (doc, view.Id). ToElements ()” still returns elements that are outside the view’s section box.
- Hardcode an exclusion list. But the model is being constantly updated, so I want to avoid maintaining a list. Also, I’d have to search through the model to find which views are still empty whenever I want to export.
Thanks