Message 1 of 7

Not applicable
01-04-2016
11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I tried to highlight elements by their ids in Revit 2016. I use this code:
UIDocument uiDoc = new UIDocument(Document); uiDoc.Selection.SetElementIds(Elements); uiDoc.RefreshActiveView();
But it just select element without highlighting. When i try call PickObjects() method like:
uiDoc.Selection.PickObjects(ObjectType.Element, "Select Objects");
it throw me InvalidOperationException with next message: "The active view is non-graphical and does not support capture of the focus for pick operations."
Thank you!
Solved! Go to Solution.