This document is archived and information here might be outdated.  Recommended version.


IEditorZ.ZDrapingTolerance Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditorZ.ZDrapingTolerance Property

Determines the allowable error from the surface when draping.

[Visual Basic .NET]
Public Property ZDrapingTolerance As Double
[C#]
public double ZDrapingTolerance {get; set;}

Product Availability

Available with ArcGIS Desktop.

Remarks

Double value that defines the maximum offset used to generalize the draped geometry. Will only remove points inserted via draping; does not affect any points explicitly defined by the user. Default value is 0. ZDrapingTolerance is only applied when IEditorZ::UseZDrapingTolerance is TRUE.

[C#]
private void SetZDrapingProps(ESRI.ArcGIS.Editor.IEditor editor)
{
  // the following code snippet determines the z capture source and
  // if it is a surface then sets up some capture properties that apply
  IEditorZ editorZ=m_editor as IEditorZ;  
  if (editorZ.ZCaptureType == esriZCaptureType.esriCaptureSurfaceZ)
  {
    editorZ.Draping=true;
    editorZ.UseZDrapingTolerance=true;
    editorZ.ZDrapingTolerance=2;
  }
}

See Also

IEditorZ Interface