

{
//Use the SelectedVariableProfile to get the sections currently in the TOC
//via its associated volume
var volume = voxelLayer.SelectedVariableProfile.Volume;
var section = volume.GetSections().FirstOrDefault();
var section2 = volume.GetSections().First(sec => sec.ID == my_section_id);
}
{
var section = MapView.Active?.GetSelectedSections()?.FirstOrDefault();
if (section != null)
{
//Do something with the section
}
}
{
voxelLayer = null;
var section = MapView.Active?.GetSelectedSections()?.FirstOrDefault();
if (section != null)
{
voxelLayer = section.Layer;
//TODO - use the layer
}
}
System.Object
ArcGIS.Desktop.Mapping.Voxel.SectionDefinition
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)