Skip to content

TransformWithBoundary

Public Class

This class contains the transform from model space to projection space for a view and the boundary in model space in which the transform is valid.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.TransformWithBoundary

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class TransformWithBoundary : IDisposable

The TransformWithBoundary type exposes the following members.

Constructors

Name

Description


Public Method
TransformWithBoundary

Constructs a new copy of the input TransformWithBoundary object.


Properties

Name

Description


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Methods

Name

Description


Public Method

Releases all resources used by the TransformWithBoundary


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method
GetBoundary

Returns the boundary for the model space to view projection space transform.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method
GetModelToProjectionTransform

Gets the model space to view projection space transform.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

Use the model-to-projection transform returned by GetModelToProjectionTransform. to transform model points to the view’s projection space. The model-to-projection transform is only valid for points in 3D model space that that can be seen through the 2D boundary returned by GetBoundary., when looking in the direction of [!:View.ViewDirection].

For views that are placed on sheets, you can combine the View’s model-to-projection transform and the Viewport’s projection-to-sheet transform to transform model points to sheet space:

sheetXYZ = projectionToSheetTransform * modelToProjectionTransform * modelXYZ

Model space is the global 3D coordinate space in which the 3D geometry of the model lives.

View projection space is the 3D Euclidean space with a coordinate system such that X and Y are horizontal and vertical directions in the view projection plane and Z is the cross product of X and Y. Distances in the projection space are the same as would be measured on paper if the view is printed without additional scaling.

Sheet space is the coordinate space of one sheet. This is the space in which viewports and titleblocks are arranged on the sheet.