public void UpdateSection( SectionDefinition sectionDef )
Public Sub UpdateSection( _ ByVal sectionDef As SectionDefinition _ )
Parameters
- sectionDef
- The definition of the section to update.
public void UpdateSection( SectionDefinition sectionDef )
Public Sub UpdateSection( _ ByVal sectionDef As SectionDefinition _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
System.ArgumentException | Invalid section definition specified |
System.ArgumentException | Section not found in the collection of sections |
System.ArgumentNullException | Section is null |
//var voxelLayer = ... ; //Must be on the QueuedTask.Run() if (voxelLayer.Visualization != VoxelVisualization.Surface) voxelLayer.SetVisualization(VoxelVisualization.Surface); voxelLayer.SetSectionContainerExpanded(true); voxelLayer.SetSectionContainerVisibility(true); //Use the SelectedVariableProfile to get the sections //via its associated volume var volume = voxelLayer.SelectedVariableProfile.Volume; //At 2.x - foreach (var section in voxelLayer.GetSections()) foreach (var section in volume.GetSections()) { //set each normal to 45.0 orientation and tilt section.Normal = voxelLayer.GetNormal(45.0, 45.0); //apply the change //At 2.x - voxelLayer.UpdateSection(section); volume.UpdateSection(section); }
//var voxelLayer = ... ; //Must be on the QueuedTask.Run() if (voxelLayer.Visualization != VoxelVisualization.Surface) voxelLayer.SetVisualization(VoxelVisualization.Surface); voxelLayer.SetSectionContainerExpanded(true); voxelLayer.SetSectionContainerVisibility(true); //At 2.x - var sections = voxelLayer.GetSections().Where(s => !s.IsVisible); //Use the SelectedVariableProfile to get the sections //via its associated volume var volume = voxelLayer.SelectedVariableProfile.Volume; var sections = volume.GetSections().Where(s => !s.IsVisible); //Make them all visible foreach (var section in sections) { section.IsVisible = true; //apply the change //At 2.x - voxelLayer.UpdateSection(section); volume.UpdateSection(section); }
Target Platforms: Windows 11, Windows 10, Windows 8.1