ShowElements Method (ICollection(ElementId))


Shows the elements by zoom to fit.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public void ShowElements(
	ICollection<ElementId> elementIds
)
Visual Basic
Public Sub ShowElements ( _
	elementIds As ICollection(Of ElementId) _
)
Visual C++
public:
void ShowElements(
	ICollection<ElementId^>^ elementIds
)

Parameters

elementIds
Type: System.Collections.GenericICollectionElementId
The set of element ids which will be shown.

Remarks

Places all the elements on the screen by moving the view.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullExceptionelementIds is null.
Autodesk.Revit.ExceptionsArgumentExceptionMember of elementIds is null.
Autodesk.Revit.ExceptionsArgumentExceptionMember of elementIds is not valid.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →