ArcGIS Pro 2.7 API Reference Guide
Create(String) Method

ArcGIS.Desktop.Mapping Namespace > VoxelLayerCreationParams Class > Create Method : Create(String) Method
The full path to the datasource
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
)
Public Overloads Shared Function Create( _
   ByVal uri As String _
) As VoxelLayerCreationParams

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 10, Windows 8.1

See Also

Reference

VoxelLayerCreationParams Class
VoxelLayerCreationParams Members
Overload List