ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetFiles Method
Example

In This Topic
    GetFiles Method
    In This Topic
    Gets the list of LasFile used in this LAS dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<LasFile> GetFiles()
    Public Function GetFiles() As IReadOnlyList(Of LasFile)

    Return Value

    An IReadOnlyList of LasFile.
    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