ArcCatalog のプレビュー タブ内のマップを拡大

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

Public Sub ZoomIn()
 
    Dim pGxApplication As IGxApplication
    Set pGxApplication = Application
     
    If Not TypeOf pGxApplication.View Is IGxPreview Then Exit Sub
     
    Dim pPreview As IGxPreview
    Set pPreview = pApp.View
     
    If Not TypeOf pPreview.View Is IGxGeographicView Then Exit Sub
     
    Dim pGeoView As IGxGeographicView
    Set pGeoView = pPreview.View
     
    Dim pActiveView As IActiveView
    Set pActiveView = pGeoView.Map
     
    Dim pExtent As IEnvelope
    Set pExtent = pActiveView.Extent
    pExtent.Expand 0.75, 0.75, True
    pActiveView.Extent = pExtent
    pActiveView.Refresh
   
End Sub

関連記事

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

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.