ArcGIS Pro 2.8 API Reference Guide
Create(CIMVoxelDataConnection) Method

ArcGIS.Desktop.Mapping Namespace > VoxelLayerCreationParams Class > Create Method : Create(CIMVoxelDataConnection) Method
A valid CIMVoxelDataConnection
Create a VoxelLayerCreationParams using the given CIMVoxelDataConnection. This method must be called on the MCT. Use QueuedTask.Run
Syntax

Parameters

dataConnection
A valid CIMVoxelDataConnection

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