LockedSectionDefinition Class
Represents the definition of a locked section. Refer to
ArcGIS.Desktop.Mapping.VoxelLayer
Get/Set Selected Voxel Assets from the TOC
var surfaces = MapView.Active.GetSelectedIsosurfaces();
//set selected w/ MapView.Active.SelectVoxelIsosurface(isoSurface)
var slices = MapView.Active.GetSelectedSlices();
//set selected w/ MapView.Active.SelectVoxelSlice(slice)
var sections = MapView.Active.GetSelectedSections();
//set selected w/ MapView.Active.SelectVoxelSection(section)
var locked_sections = MapView.Active.GetSelectedLockedSections();
//set selected w/ MapView.Active.SelectVoxelLockedSection(locked_section)
Get the Current Collection of Locked Sections
//var voxelLayer = ... ;
//Must be on the QueuedTask.Run()
if (voxelLayer.Visualization != VoxelVisualization.Surface)
voxelLayer.SetVisualization(VoxelVisualization.Surface);
voxelLayer.SetLockedSectionContainerExpanded(true);
voxelLayer.SetLockedSectionContainerVisibility(true);
var locked_sections = voxelLayer.GetLockedSections();
Get a Locked Section
//var voxelLayer = ... ;
//Must be on the QueuedTask.Run()
var locked_section = voxelLayer.GetLockedSections().FirstOrDefault();
var locked_section2 = voxelLayer.GetLockedSections()
.First(lsec => lsec.ID == my_locked_section_id);
Get Selected Locked Section in TOC
//var voxelLayer = ... ;
//Must be on the QueuedTask.Run()
var locked_section = MapView.Active?.GetSelectedLockedSections()?.FirstOrDefault();
if (locked_section != null)
{
}
System.Object
ArcGIS.Desktop.Mapping.Voxel.LockedSectionDefinition
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.