Selection.GetElementIds
Description:
Returns the ids of the elements that are currently selected.
Returns the ids of the elements that are currently selected.
public ICollection<ElementId> GetElementIds()
ICollection<ElementId>
The collection containing the ids of the selected elements.