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


IEditSketch2.ZAware Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditSketch2.ZAware Property

Indicates if the edit sketch geometry will contain Zs.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

If the EditSketch geometry contains elevation (z) values, the ZAware property will return a boolean value of True.

To view the z values for the edit sketch right click over a sketch segment and display the edit sketch properties dialog. If the sketch is ZAware, an additional column will appear next to the y column showing the z values.

[C#]

The following example demonstrates how you can set the EditSketch ZAware in C#.

public void EditSketch2()
{
UID editorUid=new UIDClass();
editorUid.Value="esriEditor.Editor";
  //You can get app from ICommand :: OnCreate() hook parameter
  IEditSketch2 editSketch=app.FindExtensionByCLSID(editorUid) as IEditSketch2;
  if (!editSketch.ZAware)
editSketch.ZAware=true;
}
[Visual Basic .NET]

The following example demonstrates how you can set the EditSketch ZAware in VBNet.

Public  Sub EditSketch2()  
   Dim editorUid As UID= New UIDClass() 
   editorUid.Value="esriEditor.Editor"
 
   'You can get app from ICommand :: OnCreate() hook parameter 
   Dim editSketch As IEditSketch2= TryCast(app.FindExtensionByCLSID(editorUid), IEditSketch2)
 
   If Not editSketch.ZAware Then
     editSketch.ZAware=True
   End If
End Sub

See Also

IEditSketch2 Interface