UIDocument.ShowElements(ElementId) Method

UIDocumentShowElements(ElementId) Method

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.
Exceptions
ExceptionCondition
ArgumentExceptionElement id is not valid.
Remarks
Places the element in the center of screen by moving the view.
See Also