ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetSurfaceConstraintCount Method
Example

In This Topic
    GetSurfaceConstraintCount Method (LasDataset)
    In This Topic
    Gets the number of surface constraints used in this LAS dataset. Also see GetSurfaceConstraints. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int GetSurfaceConstraintCount()
    Public Function GetSurfaceConstraintCount() As Integer

    Return Value

    The number of surface constraints used in this LAS dataset.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Get Surface Constraint information from a LAS Dataset
    var constraintCount = lasDataset.GetSurfaceConstraintCount();
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.SurfaceConstraint> constraints = lasDataset.GetSurfaceConstraints();
    foreach (var constraint in constraints)
    {
      var dsName = constraint.DataSourceName;
      var wksPath = constraint.WorkspacePath;
      var heightField = constraint.HeightField;
      var surfaceType = constraint.SurfaceType;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also