RVTDocs.com
Namespace: Autodesk.Revit.DB

ViewDisplayDepthCueing

Class
Description:
Represents the settings for depth cueing.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ViewDisplayDepthCueing
Syntax
public class ViewDisplayDepthCueing : IDisposable
Examples
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();
        }
    }
}