Represents the settings for depth cueing.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since:
2017
Syntax
Visual Basic |
---|
Public Class ViewDisplayDepthCueing _
Implements IDisposable |
Visual C++ |
---|
public ref class ViewDisplayDepthCueing : IDisposable |
Examples
CopyC#
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;
depthCueing.SetStartEndPercentages(0, 75);
view.SetDepthCueing(depthCueing);
t.Commit();
}
}
}
CopyVB.NET
Private Sub AdjustDepthCueing(view As View)
If view.CanUseDepthCueing() Then
Using t As New Transaction(view.Document, "Change depth cueing")
t.Start()
Dim depthCueing As ViewDisplayDepthCueing = view.GetDepthCueing()
depthCueing.EnableDepthCueing = True
depthCueing.FadeTo = 50
depthCueing.SetStartEndPercentages(0, 75)
view.SetDepthCueing(depthCueing)
t.Commit()
End Using
End If
End Sub
Inheritance Hierarchy
See Also