Professional Documents
Culture Documents
ARCOBJECTS FRAMEWORK
Type inheritance
Primary Line
Secondary Line
Instantiation
Transformer
Customization
Adding buttons to a
toolbar
Make sure the toolbar you just created is visible.
If it is not visible, display the Customize dialog box.
Click the Commands tab of the Customize dialog box.
Select the Pan/Zoom category from the Categories list.
Scroll to the bottom of the Commands list.
Select the Zoom in command and drag it to the
toolbar. Release the command when the arrow cursor
with a small box below it appears.
Continue adding commands from the Pan/Zoom
category
You may switch to other categories to select
commands.
Resize the toolbar so that its width allows the display
of two commands per row.
Note that you can dock the toolbar or drag it to any of
the toolbar drop sites on the application window.
Renaming a toolbar
Adding a menu to a
toolbar
Saving changes to a
template
Creating a macro
Adding a macro to a
toolbar
Changing button
properties
Thank you..
Advantages
Its fast and easy to create, test, and debug
macros inside Arc Map and Arc Catalog.
The standard ESRI type libraries are already
referenced.
Important global variables, such as the
Application and Document, are available.
Its simple to assemble UI forms using VBA
and ActiveX components.
Its straightforward to integrate VBA code
with new Arc Objects UIControls.
Its relatively easy to migrate VBA code to
VB ActiveX DLL projects.
Advantages
They can be easily delivered to end users via custom
setup programs.
You can hide Arc Objects code in a binary file and then
deliver the functionality to end users with a setup program.
You can extend and customize virtually every aspect of
the ArcGIS technology.
Disadvantages
Have to acquire and use another COMcompliant development tool
Do not have direct access to the Application
and ThisDocument global variables.
It is often more difficult to debug the code.
Standalone Applications
Advantages
You can use the ESRI Arc Objects Map control to simplify the
embedding of Arc Objects functionality in your application.
You can design a highly customized user interface specific to
your application.
You can quickly create small, lightweight applications.
Disadvantages
You cannot take advantage of the extensive functionality that
ESRI has built into the existing ArcGIS applications such as
Arc Map or Arc Catalog.
You cannot use Arc Map documents or templates
to their fullest capacity.
None of the extensions, including the Editor, can
be used.
APPLICATION COCLASS
MXDOCUMENT COCLASS
Views
View is the main application window, or the place where all data is drawn.
Arc Map currently has two different views,data view and layout view
Objects implement the IActiveView interface to establish themselves as views.
The data view corresponds to a Map object, and the layout
view corresponds to the PageLayout object.
Either of these objects can be set as the documents active
view, and only one view is visible at a time.
Application Extensions
TOCDISPLAYVIEW AND
TOCCONTENTSVIEW COCLASSES
MAP COCLASS
SELECTIONENVIRONMENT COCLASS
Display Objects
FEATURE RENDERER
A feature renderer is a method for drawing feature layers.
Use symbols and colors to visually display features, possibly based on one or
more attributes.
Types of feature renderers:
SimpleRenderer uses the same symbol for each feature.
ClassBreaksRenderer allows classes of numeric attribute values to be defined
A different symbol is specified for each class.
UniqueValueRenderer uses a different symbol for each unique attribute value
ProportionalSymbolRenderer modifies the size of the symbol in proportion to
an attribute from a field.
DotDensityRenderer displays a scattering of marker symbols in polygon
features, the density of which reflects the value of an attribute.
ChartRenderer displays pie, bar, or stacked bar charts that are comprised from
one or more attribute fields.
ScaleBreaksRenderer switches renderers depending on the map viewing scale
Color Objects
Symbol Objects
Types of Symbols
Marker symbols,
Line symbols,
Fill symbols.
Display Objects
Display Objects
DISPLAYTRANSFORMATION COCLASS
IDisplayTransformation
To prepare a transform for use, follow these
steps:
1. Set the full map extent with the Bounds
property.
2. Set the visible map extent (zoom
rectangle) with the VisibleBounds property.
3. Set the output area of the device using the
DeviceFrame property.
4. Set the resolution of the output device
using the Resolution property.
IRubberBand Interface
TrackNew method