Skip to content

Camera

Public Class

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

Camera’s position in the world


Public Property

Distance to far clipping plane


Public Property

Horizontal extent of the camera’s view, measured at target distance.


Public Property

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

Distance to near clipping plane


Public Property

Projection method


Public Property

Distance from camera to its target


Public Property

Up direction of the camera


Public Property

Vertical extent of the camera’s view, measured at target distance.


Public Property

Vertical offset of the camera’s view center from target, measured at target distance.


Public Property

Direction that the camera is facing


Methods

Name

Description


Public Method

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

Transforms the camera


Remarks

The current Camera can be obtained from DrawContext