| Revit 2017 API |
| UIDocument..::..ShowElements Method (ElementSet) |
| UIDocument Class See Also |
Shows the elements by zoom to fit.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 17.0.0.0 (17.0.484.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.DB..::..ElementSet
The set of elements that will be shown.
Remarks
Places all the elements on the screen by moving the view.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | Elements is null. |
| Autodesk.Revit.Exceptions..::..ArgumentException | Member of elements is null. |