In Previous, Use uiDocument.Selection.Elements.Clear(), but in Revit 2015, It's Obsolete, How to Clear Selection
I'm also having this issue from within an iDropHandler.
I'm using "document.Selection.GetElementIds.Clear()" but it is still returning previously selected elements even though they are defiantly unselected in the Revit UI.
Any Ideas?
Thanks for the hint.
I have tried that and it still not working correctly.
Please see below video that explains my issue. It is as though there is a bug in the IDrop event 😞
https://dl.dropboxusercontent.com/u/7827802/iDropSSIssue.wmv
Any help is much apreciated.
Regards
Phillip Miller
There is probably a shorter way but this works:
ElementId invalid = ElementId.InvalidElementId; List<ElementId> invalidList = new List<ElementId>(); invalidList.Add(invalid); uidoc.Selection.SetElementIds(invalidList);