Академический Документы
Профессиональный Документы
Культура Документы
Spring 2008
Customization in ARCGIS
Two levels of Customization
Customizing the Interface
To create more efficient user interfaces
For yourself (e.g. grouping frequently used tools)
For specialized applications (e.g. simplified interface for data entry operators)
Developed by you
Modelbuilder
ArcGIS Engine
Set of embeddable GIS components (ArcObjects software objects) for use
in building custom applications, independent of ArcGIS interface
Runs under Windows, Unix and Linux, with support for Java, C++, COM
and .NET
MapObjects
Avenue
The proprietary object oriented programming language used for ESRIs
first GUI based product, ArcVIEW, introduced in 1993,
Not compatible with ArcGIS 8 or 9
Most Avenue-based applications have now been replaced with ArcGIS 8/9
equivalents
Creating a Menu
Shortcut Keys
10
UI Controls
User Interface (UI)
Controls
UIButtons, UItools,
UIEditBoxs, and
UIComboBoxes
Control Properties
Text or no text
Image
Caption
Group
11
12
ToolTips
Help for your controls
Set the Tooltip property
Help message in the status bar (Message)
13
Save Customizations
14
Examples
Code for Fixed Zoom-In
What about Fixed Zoom-out
Dim pDoc As IMxDocument
Dim pEnv As IEnvelope
Set pDoc = ThisDocument
Set pEnv = pDoc.ActiveView.Extent
pEnv.Expand 0.5, 0.5, True
pDoc.ActivatedView.Extent = pEnv
pDoc.ActivatedView.Refresh
15
16
&TERM 9999
DISPLAY 9999
&ECHO &ON
&RUN utd_newtin.aml
After AML finishes, check that AML tasks completed successfully, e.g. use the DIRECTORY TIN
command to list TINs created
c:\usr\ini\custom
Use a standard text processor (e.g. Wordpad) to create/edit your AML and be sure it is saved as a text
file with the extension of .aml (place double quotes around name in save box e.g. newaml.aml)
cw c:\usr\ini\custom
DIR TIN
Issue the command END in the Arc window to close the graphic window.
17