ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayer Class / GetVolumes Method
Example

In This Topic
    GetVolumes Method
    In This Topic
    Gets the collection of volumes.
    Syntax
    Public Function GetVolumes() As IList(Of VoxelVolume)
    public IList<VoxelVolume> GetVolumes()
    Example
    Get the Voxel Volume Dimensions
    {
      var x_max = voxelLayer.GetVolumes().Max(v => v.GetVolumeSize().X);
      var y_max = voxelLayer.GetVolumes().Max(v => v.GetVolumeSize().Y);
      var z_max = voxelLayer.GetVolumes().Max(v => v.GetVolumeSize().Z);
    
      //Get the dimensions of just one volume
      var dimensions = voxelLayer.GetVolumes().FirstOrDefault();
      //Get the dimensions of the volume associated with the selected variable
      var dimensions2 = voxelLayer.SelectedVariableProfile.Volume.GetVolumeSize();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also