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


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

IEditorZ.Draping Property

Indicates whether sketches are draped onto the surface.

[Visual Basic .NET]
Public Property Draping As Boolean
[C#]
public bool Draping {get; set;}

Product Availability

Available with ArcGIS Desktop.

Remarks

This property determines whether new segments added to the edit sketch are draped onto the defined surface. This behavior is only active when the editor's ZCaptureType is SurfaceZ. When draping is TRUE and the ZCaptureType is SurfaceZ then a new vertex will be inserted at each elevation change in the surface (triangle edges in TINs, cell boundaries in Rasters). When using very accurate surfaces, the number of points can be very high. To minimize the number of vertices inserted into the sketch, a tolerance can be defined using IEditorZ::ZDrapingTolerance; this uses the Douglas-Poiker algorithm to determine significant vertices in Z. The Default value is FALSE.

[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