ArcGIS Pro 2.6 API Reference Guide
Length3D Method (IGeometryEngine)

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : Length3D Method
The input geometry.
Gets the 3D length for a specified geometry.
Syntax
double Length3D( 
   Geometry geometry
)
Function Length3D( _
   ByVal geometry As Geometry _
) As Double

Parameters

geometry
The input geometry.

Return Value

The calculated length in the same units as the geometry's spatial reference unit.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag or Multipatch.
The geometry is not Z-Aware.
Cannot do 3D operations on curve segments.
Geometry is not a polyline or polygon.
Remarks
The geometry must be z-aware or else an exception is thrown.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members