function CalculateLength(Units: TIEUnits): double;
Description
Returns the length/perimeter of the lines of the polyline layer.
If PolylineClosed = True, it will measure the perimeter. If not closed, it will only measure the length of all lines.
// Show length of current polyline in MM ShowMessage( 'Length is ' + Trunc( TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateLength( ieuMillimeters )) + ' mm' );