ViewportGetProjectionToSheetTransform Method

Returns the transform from the view's projection space to the sheet space.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public Transform GetProjectionToSheetTransform()

Return Value

Transform
The transform from the view's projection space to the sheet space.
Exceptions
ExceptionCondition
InvalidOperationException The viewport is not on a sheet. -or- The viewport does not have transforms.
Remarks

This transform accounts for the position and rotation of a viewport on a sheet.

The transforms from the model space to the view projection space are returned by [!:View.GetModelToProjectionTransforms()].

See Also