Public Function GetLockedSections() As IList(Of LockedSectionDefinition)
public IList<LockedSectionDefinition> GetLockedSections()
Public Function GetLockedSections() As IList(Of LockedSectionDefinition)
public IList<LockedSectionDefinition> GetLockedSections()
{
// Note: call within QueuedTask.Run()
{
if (voxelLayer.Visualization != VoxelVisualization.Surface)
voxelLayer.SetVisualization(VoxelVisualization.Surface);
voxelLayer.SetLockedSectionContainerExpanded(true);
voxelLayer.SetLockedSectionContainerVisibility(true);
var locked_sections = voxelLayer.GetLockedSections();
}
}
{
var my_locked_section_id = -1;
var locked_section = voxelLayer.GetLockedSections().FirstOrDefault();
var locked_section2 = voxelLayer.GetLockedSections()
.First(lsec => lsec.ID == my_locked_section_id);
}
{
// Note: call within 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 Home, Pro, Enterprise (64 bit)