- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My automated add-in is using some code that calls into ReferenceIntersector with the default {3D} view in a document several times in a loop. The doc has reference links to other external revit files. When I don't load these files (ignore the links and load without them), the ReferenceIntersector completes reasonably quickly. However, with the links, I get continued progress bars in the bottom for "Generating graphics for 3D view {3D}" and the process takes an order of magnitude longer time. Revit is essentially generating the 3D view graphics and throwing them away and regenerating them again and again on each iteration. Is there anything I can do here to avoid these unnecessary delays?
I tried using an idle handler to pre-open the 3D view via `uiapp.ActiveUIDocument.ActiveView = default3DView;` in advance of running my code but it has zero effect (won't change or open the 3D view).
Pretty much out of ideas here.
Solved! Go to Solution.