RVTDocs.com

Selection.SetElementIds

Method
Description:
Selects the elements.
Remarks:
This function will select the specified elements within the project and update the UI. See SetReferences for more selection options.
Syntax
public void SetElementIds(
	ICollection<ElementId> elementIds
)
Parameters
Parameter Type Description
elementIds ICollection The ids of the elements to be selected.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
InvalidOperationException Changing the selection is not permitted while handling SelectionChanged Event.