PRESIDÊNCIA DA REPÚBLICA
CASA CIVIL
CENTRO GESTOR E OPERACIONAL DO SISTEMA DE PROTEÇÃO DA AMAZÔNIA
SPO – Área 05 – Quadra 03 – Bloco “J” – Brasília – DF 70610-200
Tel: (61) 3214-0200 - Fax: (61) 3214-0272
December 5, 2008.
Procedure for install source of “Synchronized Google Earth with View map of ArcMap”.
1. Sources files:
a. Class: CGoogleEarth.cls and CMapCalcGE.cls
b. Form: frmSyncArcGE.frm (pair frmSyncArcGE.frx)
c. Modules: SyncArcGE.bas and WinFunctions.bas
d. Content of ThisDocument: Init_SyncArcGE.bas
2. Import sources files to ArcMap:
This steps can used for save in MXD or Normal.MXT.
I will show for Normal.MXT.
a. Open ArcMap
b. Open VBA of ArcMap:
Menu: Tools/Macros/Visual Basic Editor
c. Open from Project Explorer: Normal/ArcObjects/ ThisDocument
Paste all content of file “Init_SyncArcGE.bas”
d. Import files into “Project Explorer: Normal”
Click right button mouse in “Normal(normal.mxt)” in windows Project Explorer and select
“Import File…”, repeat this for each file
i. CGoogleEarth.cls
ii. CMapCalcGE.cls
iii. frmSyncArcGE.frm
iv. SyncArcGE.bas
v. WinFunctions.bas
3. Setting interface ArcMap.
a. Create Button for ArcMap:
i. Open Customize: Menu Tool/Customize
ii. Select Commands dialog
iii. Select in “Save in.” option “Normal.mxt”
iv. Select Categories “UIControls”
v. Button “New UIControls...”
vi. Select Checkbox UIButtonControl