Camera
A collection of camera settings for the current view.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.DirectContext3D.Camera
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
Name
Description
Public Method
Camera
Camera
Properties
Name
Description
Public Property
EyePosition
Camera’s position in the world
Public Property
FarDistance
Distance to far clipping plane
Public Property
HorizontalExtent
Horizontal extent of the camera’s view, measured at target distance.
Public Property
HorizontalOffset
Horizontal offset of the camera’s view center from target, measured at target distance.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
NearDistance
Distance to near clipping plane
Public Property
ProjectionMethod
Projection method
Public Property
TargetDistance
Distance from camera to its target
Public Property
UpDirection
Up direction of the camera
Public Property
VerticalExtent
Vertical extent of the camera’s view, measured at target distance.
Public Property
VerticalOffset
Vertical offset of the camera’s view center from target, measured at target distance.
Public Property
ViewDirection
Direction that the camera is facing
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the Camera
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
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)
Public Method
Transform
Transforms the camera
Remarks
The current Camera can be obtained from DrawContext