Revit 2026 API
UIDocumentShow |
Shows the elements by zoom to fit.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void ShowElements( ElementSet elements )
Public Sub ShowElements ( elements As ElementSet )
public: void ShowElements( ElementSet^ elements )
member ShowElements : elements : ElementSet -> unit
Parameters
- elements ElementSet
- The set of elements that will be shown.

Exception | Condition |
---|---|
ArgumentNullException | Elements is null. |
ArgumentException | Member of elements is null. |

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