Copyright © 2001, 2002 ESRI. All rights reserved.
Introduction to Programming ArcObjects with VBA
ArcObjects 的开发
2-2
Introduction to Programming ArcObjects with VBA
Copyright © 2001, 2002 ESRI. All rights reserved.
AO 开发的一般步骤
1 .用 AO 术语对问题进行描述和定义,合理地将大任务合理划分为一些
子任务;
2 .理解 AO 的层次组织关系,标识和明确各子任务的关键字;
3 .决定在什么地方来编写代码,是 VBA 呢,还是 VB 或其它工具;
4 .根据标识的关键字在 AO Developer help 和其它开发资源中搜索
有没有相关示例代码。
5 .VV打开正确的对象模型图( OMD ),寻找所需要的类、接口。
6 .VV在 AO Component Help 中浏览有关接口的详细说明及相关文档
;
7 .VV在开发环境中使用确定的接口及其方法属性等,完成代码实现。
2-3
Introduction to Programming ArcObjects with VBA
Copyright © 2001, 2002 ESRI. All rights reserved.
AO 开发的方式比较
2-4
Introduction to Programming ArcObjects with VBA
Copyright © 2001, 2002 ESRI. All rights reserved.
AO VBA 开发培训总体过程安排
VBA
skills
Classes
Objects
Object Model
Diagrams
Maps &
Layers
Subsets &
Selections
Data
Management
Application
Framework
Copyright © 2001, 2002 ESRI. All rights reserved.
Introduction to Programming ArcObjects with VBA
The VBA development
environment ( I )