ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasDatasetLayer Class / SetSelectVisiblePoints Method
If true, then only visible points are selectable.
Example

In This Topic
    SetSelectVisiblePoints Method
    In This Topic
    Specifies if only visible points are selectable or not. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetSelectVisiblePoints( 
       bool selectVisiblePoints
    )
    Public Sub SetSelectVisiblePoints( _
       ByVal selectVisiblePoints As Boolean _
    ) 

    Parameters

    selectVisiblePoints
    If true, then only visible points are selectable.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    This setting is not preserved in the layer's CIM definition. It is only stored for the active map session.
    Example
    Selection Settings
    // configure the LAS selection settings
    
    // set visible points and a specific set of classification codes selectable
    lasDatasetLayer.SetSelectVisiblePoints(true);
    lasDatasetLayer.SetSelectableClassCodes(new List<int>() { 3, 4, 5 });
    
    // this example sets all classification codes selectable
    lasDatasetLayer.SetSelectableClassCodes(new List<int>());
    
    
    // get the current LAS selection settings
    var canSelectVisible = lasDatasetLayer.GetSelectVisiblePoints();
    var selectableClassCodes = lasDatasetLayer.GetSelectableClassCodes();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also