阅读:1462回复:4
arcMap中定义的mxd文件定制相关
<P><b>arcMap中定义的mxd文件相关
</b> 该mxd各个图层中的数据是连接自某GIS数据库。现将该mxd带到外地使用,数据库名称变了机器名称变了,但是数据库中的数据是一样的。请问我怎么设置使其中的数据指向新的数据库??</P> <P> 同时针对该文件定制的菜单项、工具栏是否可以保持一致?谢谢。</P> |
|
1楼#
发布于:2004-07-12 17:13
你可以在图层列表中,点 右键,有set data source的菜单,重新设置数据源;菜单和工具是可以保持一致的,你可以看看using arcmap这本书
|
|
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. |
|
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 |
|
4楼#
发布于:2004-07-13 14:52
谢谢,已经解决。
|
|