ArcView GIS 应用与开发技术(13)-定制ArcView
来源:互联网 发布:秀才权限管理系统源码 编辑:程序博客网 时间:2024/05/22 06:28
程序设计要素:对象;类:属性和请求;父类、子类和继承。
Script与控件连接:在ArcView按钮栏双击打开Customize对话框,category类别。
Avenue语句:
1. 对象(基本单位)和请求(该做什么):Object.Reques。eg.MsgBox.info(“Click on any state”,”state Info”)
2. 变量:
(1)TheProject=Av.GetProject;myView=theProject.FindDoc(“Atlanta”)语句返回一个对象,用赋值语句保存。
(Av应用程序本身;Project工程;Doc文档;Win窗口;MsgBox消息框)
(2)变量名必须以字母或下划线开头,可包含数字;不分大小写;不分数值变量、字符串变量。
(3)串连变量:Object.Request1.Request2.Request3
操作专题:
1. 打开:myView=av.GetProject.FindDoc(“
myTheme=myView.FindTheme(“Rail Stops”)
myTheme.SetVisible(true)
2. 有条件打开/关闭:theTheme=av.GetActiveDoc.FindTheme(“highways”)
If(theTheme.IsVisible) then
theTheme.SetVisible(false)
else
theTheme.SetVisible(true)
end
3. 从专题列表中选择:选择一个专题先要得到视图的专题列表,用GetThemes实现。
myView=av.GetProject.FindDoc("Altanta")
theThemeList=myView.GetThemes
theThemes=MsgBox.List(theThemeList,"选择一个专题","专题选择")
theThemes.SetVisible(true)
MsgBox.List滚动列表、MsgBox.Multilist表单、MsgBox.Choice下拉列表
包含三个参数:选项列表、消息、窗体标题
可以创建自己的列表,对象是字符串、数字或布尔值可使用ListAsString、MuitiAsString和ChoiceAsString。
4. 专题列表循环:for each
theView=av.GetProject.FindDoc("Altanta")
theThemeList=theView.GetThemes
for each thm in theThemeLst
name=thm.GetName
comments=thm.GetComments
ThemeMsgstring=name+NL+comments
MsgBox.Info(ThemeMsgBox,"Theme Information.")
End
- ArcView GIS 应用与开发技术(13)-定制ArcView
- ArcView GIS 应用与开发技术(2)-Tables
- ArcView GIS 应用与开发技术(4)-地图投影
- ArcView GIS 应用与开发技术(5)-统计图
- ArcView GIS 应用与开发技术(6)- 属性查询
- ArcView GIS 应用与开发技术(7)- 空间查询
- ArcView GIS 应用与开发技术(10)-影像操作
- ArcView GIS 应用与开发技术(11)-空间分析
- ArcView GIS 应用与开发技术(1)-View&Theme
- Arcview GIS应用与开发技术(12)-3D分析
- ArcView GIS 应用与开发技术(3)-地理要素的显示和标注
- ArcView GIS 应用与开发技术(9)- 创建空间数据
- ArcView GIS 应用与开发技术(8)- 利用空间关系累加数据
- GIS电子地图定制开发技术
- ArcView,ArcGis,MapObjects,ISRI有什么区别
- 在 ArcView 3.3 中裁剪 DEM 数据
- ArcGiS/ArcInfo/ArcEditor/ArcMap/ArcView的区别
- ArcView Image Analyst v1.0.rar
- C# 中如何自定义事件?
- CommonDialog中同时打开多个文件实现(转)
- .NET2.0壓縮文件
- 晨雨初露
- .NET2.0解壓縮文件
- ArcView GIS 应用与开发技术(13)-定制ArcView
- 项目软件过程的迭代设计作业(案例设计)
- 从VB6 到VB.net 2005(一)
- 学习.Net的经典网站
- Facebook App 的5种盈利建议
- ubuntu source.list
- Oracle Trigger :Before,after,each row and table level triggers ORA-04082 ORA-04084
- SOCKET_JAVA
- 可定制的数据库备份和恢复程序