isolate elements

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi ,
I can isolate a pair of elements via the following code if the elements are in the same document but if one of them is in linked doc the code does not isolates the element if its in a linked doc.
IList<ElementId> ids = new List<ElementId>();
ids.Add(new ElementId(1);
ids.Add(new ElementId(2);
ViewFamilyType viewFamilyType = (from v in new FilteredElementCollector(doc).
OfClass(typeof(ViewFamilyType)).
Cast<ViewFamilyType>()
where v.ViewFamily == ViewFamily.ThreeDimensional
select v).First();
View3D view = null;
view = View3D.CreateIsometric(doc, viewFamilyType.Id);
view.IsolateElementsTemporary(ids);
view.ConvertTemporaryHideIsolateToPermanent();
uidoc.ActiveView = view;
doc.ActiveView.set_ProjColorOverrideByElement(ids, color);
view.UnhideElements(ids);
Thanks & Regards
Sanjay Pandey