ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping.Voxel Namespace / LockedSectionDefinition Class
Members Example

In This Topic
    LockedSectionDefinition Class
    In This Topic
    Represents the definition of a locked section. Refer to ArcGIS.Desktop.Mapping.VoxelLayer
    Object Model
    LockedSectionDefinition ClassVoxelLayer ClassCoordinate3D StructureCoordinate3D Structure
    Syntax
    public class LockedSectionDefinition 
    Public Class LockedSectionDefinition 
    Remarks
    A locked section is a "dynamic" section that has been locked or "tied" to a specific voxel variable. Once locked, the section position and orientation can no longer be changed and are not updated if the selected voxel variable profile is changed. Locked sections are useful for comparing sections for different variable profiles. Refer to Voxel layer sections
    Example
    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)
    {
    
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.Voxel.LockedSectionDefinition

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also