ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1462回复:4

arcMap中定义的mxd文件定制相关

楼主#
更多 发布于:2004-07-12 16:28
<P><b>arcMap中定义的mxd文件相关
</b>      该mxd各个图层中的数据是连接自某GIS数据库。现将该mxd带到外地使用,数据库名称变了机器名称变了,但是数据库中的数据是一样的。请问我怎么设置使其中的数据指向新的数据库??</P>
<P>    同时针对该文件定制的菜单项、工具栏是否可以保持一致?谢谢。</P>
喜欢0 评分0
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2004-07-12 17:13
你可以在图层列表中,点 右键,有set data source的菜单,重新设置数据源;菜单和工具是可以保持一致的,你可以看看using arcmap这本书
举报 回复(0) 喜欢(0)     评分
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
2楼#
发布于:2004-07-12 17:23
This is from the ICommandBar interface topic in the developer help:

Note, all programmatic customizations are temporary. If you execute VBA code to modify a commandbar or create a new menu, these changes are temporary. If you programmatically customize ArcMap, these changes will only appear while the current document is open in the current ArcMap session. Programmatic changes are never saved in the document or templates. Once you close that document or shutdown ArcMap, the changes are removed. If you are customizing ArcCatalog, these changes will only appear during the current ArcCatalog session.
举报 回复(0) 喜欢(0)     评分
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
3楼#
发布于:2004-07-12 17:53
Private Function m_pDocumentEvents_OnContextMenu(ByVal X As Long, ByVal Y As Long) As Boolean
m_pDocumentEvents_OnContextMenu = True
End Function
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2004-07-13 14:52
谢谢,已经解决。
举报 回复(0) 喜欢(0)     评分
游客

返回顶部