ArcMap 最上位レイヤーの取得

 2016/9/1 (木)    

'ThisDocumentの取得
Dim pMxDocument As IMxDocument
Set pMxDocument = ThisDocument
 
'アクティブなデータフレームの取得
Dim pMap As IMap
Set pMap = pMxDocument.FocusMap
 
'最上位レイヤの取得
Dim pLayer As ILayer
Set pLayer = pMap.Layer(0)

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.