调用ArcMap现有功能Editor_Merge

 Sub ExecuteCmd()
  Dim pCommandItem As ICommandItem
  ' Use ArcID module and the Name of the SaveAs command
 Set pCommandItem = Application.Document.CommandBars.Find(ArcID.Editor_Merge)
  pCommandItem.Execute
End Sub

或者

Sub ExecuteCmd2()

  Dim pUID As New UID

  Dim pCommandItem As ICommandItem

  ' Use the GUID of the Save command

  pUID.Value = "{119591DB-0255-11D2-8D20-080009EE4E51}"

  ' or you can use the ProgID

  ' pUID.Value = "esriCore.MxFileMenuItem"

  pUID.SubType = 3

  Set pCommandItem = Application.Document.CommandBars.Find(pUID)

  pCommandItem.Execute

End Sub

posted on 2006-06-14 17:49 简单就是美 阅读(435) 评论(0)  编辑  收藏 所属分类: ArcGIS开发

导航

统计

常用链接

随笔分类(95)

随笔档案(91)

新闻分类(6)

新闻档案(15)

积分与排名

最新评论

阅读排行榜