很高兴的告诉你,我成功了!经过5个小时的奋战,在Google上查询,ESRI论坛(国外),找到了答案!简单的一句代码!
Application.Templates.Item(Application.Templates.count - 1)
ITemplates的属性有:Count 和 Item ArcCatalog环境只有1个Template ArcMAP环境可以有2个到3个Template,如果加上Base Template就有3个Template,其他两个是 Normal Template和Document |
来自:http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=49094&highlight=mxd%2B%2B%C2%B7%BE%B6