CameraInfo Class

An object holding information about the projection mapping of a 3D view.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBCameraInfo

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class CameraInfo : IDisposable

The CameraInfo type exposes the following members.

Properties
 NameDescription
Public propertyFarDistance Distance from eye point to far plane of view frustum along the view direction.
Public propertyHorizontalExtent Distance between left and right planes on the target plane.
Public propertyIsPerspective Identifies whether the projection is orthographic or perspective
Public propertyIsPespective Identifies whether the projection is orthographic or perspective
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyNearDistance Distance from eye point to near plane of view frustum along the view direction.
Public propertyRightOffset Distance that the target plane is offset towards the right where right is normal to both Up direction and View direction. This offset shifts both left and right planes.
Public propertyTargetDistance Distance from eye point along view direction to target plane.
Public propertyUpOffset Distance that the target plane is offset in the direction of the Up direction. This offset shifts both top and bottom planes.
Public propertyVerticalExtent Distance between top and bottom planes on the target plane.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the CameraInfo
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

CameraInfo can be obtained directly from a ViewNode If camera info is not available, an orthographic view should be assumed.

See also: OnViewBegin(ViewNode).

See Also