ShowElements Method (ElementSet)


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(
	ElementSet elements
)
Visual Basic
Public Sub ShowElements ( _
	elements As ElementSet _
)
Visual C++
public:
void ShowElements(
	ElementSet^ elements
)

Parameters

elements
Type: Autodesk.Revit.DBElementSet
The set of elements that will be shown.

Remarks

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullExceptionElements is null.
Autodesk.Revit.ExceptionsArgumentExceptionMember of elements is null.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →