public IList<LockedSectionDefinition> GetLockedSections()
Public Function GetLockedSections() As IList(Of LockedSectionDefinition)
public IList<LockedSectionDefinition> GetLockedSections()
Public Function GetLockedSections() As IList(Of LockedSectionDefinition)
//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();
//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);
//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().Where(ls => !ls.IsVisible); //Make them visible foreach (var locked_section in locked_sections) { locked_section.IsVisible = true; //apply change voxelLayer.UpdateSection(locked_section); }
Target Platforms: Windows 11, Windows 10, Windows 8.1