How to hide other elements when highlighting an element?
Not applicable
03-31-2018
05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone! When I highlight an element, I want to hide other elements, how can I do this after I enter these codes?
ICollection<ElementId> ids = new List<ElementId>(); ids.Add(elem.Id); UIDocument uiDoc = new UIDocument(elem.Document); uiDoc.Selection.SetElementIds(ids); uiDoc.ShowElements(ids);
Thank you in advance:)
Link copied