$ 0 0 You can set a new empty selection :List<ElementId> elementIdList = new List<ElementId>(); uidoc.Selection.SetElementIds(elementIdList);