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

IEditorZ.ZDrapingTolerance Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditorZ Interface > IEditorZ.ZDrapingTolerance Property
ArcGIS Developer Help

IEditorZ.ZDrapingTolerance Property

Determines the allowable error from the surface when draping.

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

Product Availability

Available with ArcGIS Desktop.


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.

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