Camera Class

A collection of camera settings for the current view.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.DirectContext3DCamera

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

The Camera type exposes the following members.

Constructors
 NameDescription
Public methodCamera Camera
Top
Properties
 NameDescription
Public propertyEyePosition Camera's position in the world
Public propertyFarDistance Distance to far clipping plane
Public propertyHorizontalExtent Horizontal extent of the camera's view, measured at target distance.
Public propertyHorizontalOffset Horizontal offset of the camera's view center from target, measured at target distance.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyNearDistance Distance to near clipping plane
Public propertyProjectionMethod Projection method
Public propertyTargetDistance Distance from camera to its target
Public propertyUpDirection Up direction of the camera
Public propertyVerticalExtent Vertical extent of the camera's view, measured at target distance.
Public propertyVerticalOffset Vertical offset of the camera's view center from target, measured at target distance.
Public propertyViewDirection Direction that the camera is facing
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the Camera
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)
Public methodTransform Transforms the camera
Top
Remarks
The current Camera can be obtained from DrawContext
See Also