ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMVoxelDataConnection Class
Members Example

In This Topic
    CIMVoxelDataConnection Class
    In This Topic
    Represents a voxel data connection.
    Object Model
    CIMVoxelDataConnection ClassCIMVoxelDataConnection ClassCIMVoxelDataConnection Class
    Create Voxel Layer
    //Must be on the QueuedTask.Run()
    //Must be a .NetCDF file for voxels
    var url = @"C:\MyData\";
    var cim_connection = new CIMVoxelDataConnection()
        URI = url
    //Create a VoxelLayerCreationParams
    var createParams = VoxelLayerCreationParams.Create(cim_connection);
    createParams.IsVisible = true;
    //Can also just use the path directly...
    //var createParams = VoxelLayerCreationParams.Create(url);
    //Use VoxelLayerCreationParams to enumerate the variables within
    //the voxel
    var variables = createParams.Variables;
    foreach (var variable in variables)
        var line = $"{variable.Variable}: {variable.DataType}, " +
           $"{variable.Description}, {variable.IsDefault}, {variable.IsSelected}";
    //Optional: set the default variable
    //Create the layer - map must be a local scene
    VoxelLayer voxelLayer = LayerFactory.Instance.CreateLayer<VoxelLayer>(createParams, map);
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also