SetActiveSurfaceConstraints Method
Sets the group of active surface constraints.
This method must be called on the MCT. Use QueuedTask.Run.
Active Surface Constraints
var activeSurfaceConstraints = lasDatasetLayer.GetActiveSurfaceConstraints();
// clear all surface constraints (i.e. none are active)
lasDatasetLayer.SetActiveSurfaceConstraints(null);
// set all surface constraints active
using (var lasDataset = lasDatasetLayer.GetLasDataset())
{
var surfaceConstraints = lasDataset.GetSurfaceConstraints();
var names = surfaceConstraints.Select(sc => sc.DataSourceName).ToList();
lasDatasetLayer.SetActiveSurfaceConstraints(names);
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.2 or higher.