This document is archived and information here might be outdated. Recommended version. |
Indicates if the edit sketch geometry will contain Zs.
[Visual Basic .NET]
Public Property ZAware As Boolean
[C#]
public bool ZAware {get; set;}
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.
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;
}
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