RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Viewport

Viewport.GetBoxCenter

Method
Description:
Returns the center of the outline of the viewport on the sheet, excluding the viewport label.
Syntax
public XYZ GetBoxCenter()
Exceptions
Exception Condition
InvalidOperationException The viewport is not on a sheet.