GetAllElementsVisibleInActiveView
only returns IDs from the main model
#1399
Labels
type:bug
Error or unexpected behaviour
Description:
GetAllElementsVisibleInActiveView()
fromActiveViewVisibilityContext
is supposed to return visible element IDs grouped by their host documents. Currently, it only returns IDs from the active document. IDs from links are missing.Revit_Toolkit/Revit_Core_Engine/Objects/ActiveViewVisibilityContext.cs
Lines 55 to 65 in 796ad08
Steps to reproduce:
Run the method on any Revit file with a visible link in the current view to observe the symptom above. This is because
m_DocumentLookup[linkInstance.Document.PathName] = linkInstance.Document;
in the method below wont' add the link's document tom_DocumentLookup
.linkInstance.Document
should have beenlinkInstance.GetLinkDocument().
Revit_Toolkit/Revit_Core_Engine/Objects/ActiveViewVisibilityContext.cs
Lines 94 to 111 in 796ad08
Expected behaviour:
Test file(s):
The text was updated successfully, but these errors were encountered: