特定レイヤーの再描画

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

'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

関連記事

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

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.