ShowElements Method (ElementId)


Shows the element 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(
	ElementId elementId
)
Visual Basic
Public Sub ShowElements ( _
	elementId As ElementId _
)
Visual C++
public:
void ShowElements(
	ElementId^ elementId
)

Parameters

elementId
Type: Autodesk.Revit.DBElementId
Element id that will be shown.

Remarks

Places the element in the center of screen by moving the view.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentExceptionElement id is not valid.

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 →