ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetFileCounts Method
Example Version

GetFileCounts Method
Gets the number of LAS and ZLAS files in this LAS dataset. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public ValueTuple<int,int> GetFileCounts()

Return Value

The number of LAS and ZLAS files that comprise this LAS dataset.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
This method or property must be called within the lambda passed to QueuedTask.Run
Example
Get Individual File Information from a LAS Dataset
var (lasFileCount, zLasFileCount) = lasDataset.GetFileCounts();
IReadOnlyList<ArcGIS.Core.Data.Analyst3D.LasFile> fileInfo = lasDataset.GetFiles();
foreach (var file in fileInfo)
{
  var path = file.FilePath;
  var name = file.FileName;
  var ptCount = file.PointCount;
  var zMin = file.ZMin;
  var zMax = file.ZMax;
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.2 or higher.
See Also