選択オプションの設定

投稿日:2016/9/1 (木) 更新日:

Sub GetSelectionEnvironment()
    Dim pMxApplication As IMxApplication
    Set pMxApplication = Application
     
    Dim pSelectionEnvironment As ISelectionEnvironment
    Set pSelectionEnvironment = pMxApplication.SelectionEnvironment
     
    Debug.Print pSelectionEnvironment.AreaSelectionMethod   '[選択] → [選択オプション] → [選択方法]
     
    Dim pSelectionEnvironmentLayer As ISelectionEnvironmentLayer
    Set pSelectionEnvironmentLayer = pSelectionEnvironment
     
    Debug.Print pSelectionEnvironmentLayer.ClearInvisibleLayers '新しい選択セットが作成されたとき、非表示レイヤの選択セットを解除
     
End Sub

関連記事

-プログラミング, ArcGIS
-, ,

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.