ViewDisplayDepthCueing
Description:
Represents the settings for depth cueing.
Represents the settings for depth cueing.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.ViewDisplayDepthCueing
System.Object
Autodesk.Revit.DB.ViewDisplayDepthCueing
public class ViewDisplayDepthCueing : IDisposable
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();
}
}
}
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| SetStartEndPercentages(Int32, Int32) | None | Sets start and end percentages. |
| Name | Return Type | Description |
|---|---|---|
| EnableDepthCueing | bool | True to enable depth cueing. False to disable it. |
| EndPercentage | int | The end percentage defines where depth cueing ends. Values between 0 and 100. |
| FadeTo | int | The fade to defines the maximum fading in per cent. Values between 0 and 100. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| StartPercentage | int | The start percentage defines where depth cueing starts. Values between 0 and 100. |