特定レイヤーの再描画

'ThisDocumentの取得
Dim pMxDocument As IMxDocument
Set pMxDocument = ThisDocument
 
Dim pActiveView As IActiveView
Set pActiveView = pMxDocument.ActiveView
 
'対象レイヤの取得
Dim pLayer As ILayer
Set pLayer = pMxDocument.FocusMap.Layer(0) '最上位レイヤ
 
'対象範囲の取得
Dim pEnvelope as IEnvelope
Set pEnvelope = pActiveView.Extent 'ビュー範囲
 
'PartialRefresh
pActiveView.PartialRefresh esriViewGeography, pLayer, pEnvelope
  • URLをコピーしました!
目次