ViewDisplayDepthCueing
Represents the settings for depth cueing.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ViewDisplayDepthCueing
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ViewDisplayDepthCueing : IDisposableThe ViewDisplayDepthCueing type exposes the following members.
Properties
Name
Description
Public Property
EnableDepthCueing
True to enable depth cueing. False to disable it.
Public Property
EndPercentage
The end percentage defines where depth cueing ends. Values between 0 and 100.
Public Property
FadeTo
The fade to defines the maximum fading in per cent. Values between 0 and 100.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
StartPercentage
The start percentage defines where depth cueing starts. Values between 0 and 100.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the ViewDisplayDepthCueing
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
SetStartEndPercentages
Sets start and end percentages.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Example
private void AdjustDepthCueing(View view){ if (view.CanUseDepthCueing()) { using (Transaction t = new Transaction(view.Document, "Change depth cueing")) { t.Start(); ViewDisplayDepthCueing depthCueing = view.GetDepthCueing(); depthCueing.EnableDepthCueing = true; depthCueing.FadeTo = 50; // set fade to percent depthCueing.SetStartEndPercentages(0, 75); view.SetDepthCueing(depthCueing); t.Commit(); } }}