Revit 2026 API
UIDocumentShow |
Shows the element 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( ElementId elementId )
Public Sub ShowElements ( elementId As ElementId )
public: void ShowElements( ElementId^ elementId )
member ShowElements : elementId : ElementId -> unit
Parameters
- elementId ElementId
- Element id that will be shown.

Exception | Condition |
---|---|
ArgumentException | Element id is not valid. |

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