ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayerCreationParams Class / Create Method / Create(String) Method
The full path to the datasource
Version

Create(String) Method
Create a VoxelLayerCreationParams using the data source at the given uri. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static VoxelLayerCreationParams Create( 
   string uri
)

Parameters

uri
The full path to the datasource

Return Value

Exceptions
ExceptionDescription
Thrown when a method is called on the wrong Pro thread
dataConnection is null
'dataConnection URI' does not exist
'dataConnection URI' must be a NetCDF file (.nc)
Remarks
Valid datasources for voxel layers are:
- NetCDF (.nc) data files
Voxel layers can only be added to local scenes. If a voxel layer is added to a global scene the layer will not draw. If a voxel layer is added to a 2D map or stereo map a System.InvalidOperationException is thrown when calling LayerFactory.CreateLayer<T>
If adding to a group layer, it must be SceneLayerType.SceneLayer3D or a System.InvalidOperationException is thrown when calling LayerFactory.CreateLayer<T>
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also