ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / LineSegment Class / Length3D Property
Version

Length3D Property (LineSegment)
Gets the 3D length of this instance.
Syntax
public double Length3D {get;}
Exceptions
ExceptionDescription
The geometry has undefined Z-values for some of its vertices.
Remarks
If the start or end point of the segment is not Z-aware, then the default Z-value, z = 0, is used.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also