ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping.Voxel Namespace / VoxelVariableProfile Class
Members Example

In This Topic
    VoxelVariableProfile Class
    In This Topic
    Represents a variable for a value stored within a voxel cube.
    Object Model
    VoxelVariableProfile ClassCIMColor ClassCIMVoxelRenderer ClassVoxelVariableStatistics ClassVoxelVolume Class
    Syntax
    public class VoxelVariableProfile 
    Public Class VoxelVariableProfile 
    Remarks
    Voxel layers are structured in dimensional regularly gridded cubes or "voxels" which store one or more variables. The variables can store values for either quantitative continuous data or qualitative discrete data. Temperature measurements are represented as continuous data. Other data, such as lithography classes of an underground model, are discrete. Refer to DataType
    Example
    Get the Variable Profiles
    //var voxelLayer = ... ;
    //Must be on the QueuedTask.Run()
    
    var variable_profiles = voxelLayer.GetVariableProfiles();
    
    Get the Variable Renderer
    //var voxelLayer = ... ;
    //Must be on the QueuedTask.Run()
    
    var variable = voxelLayer.GetVariableProfiles().First();
    var renderer = variable.Renderer;
    if (variable.DataType == VoxelVariableDataType.Continuous)
    {
        //Renderer will be stretch
        var stretchRenderer = renderer as CIMVoxelStretchRenderer;
        //access the renderer
    
    }
    else //VoxelVariableDataType.Discrete
    {
        //Renderer will be unique value
        var uvr = renderer as CIMVoxelUniqueValueRenderer;
        //access the renderer
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.Voxel.VoxelVariableProfile

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also