页面载入中....
Google


如何使用程序获取或者新建一个arcmap 
zdq 发表于 2007-4-2 22:21:00

在GIS应用中,Arcmap的有些功能在 ArcEngine并不好使,那么使用arcmap进行批处理对于数据处理挺有用的。可是如何在程序中捕获一个已经打开的Arcmap呢?过程下面代码所示:

    Dim app As IApplication = Nothing
    Dim appRot As New AppROT
'寻找打开的ArcMap
    For i As Integer = 0 To appRot.Count - 1
      If TypeOf appRot.Item(i) Is IMxApplication Then
        app = appRot.Item(i)
        Exit For
      End If
    Next
'找不到就新建一个
    If app Is Nothing Then
      Dim pDoc As IDocument = New MxDocument
      app = pDoc.Parent
      app.Visible = True
    End If

阅读全文 | 回复(0) | 引用通告 | 编辑
发表评论:
页面载入中....

 

页面载入中....

  公告
页面载入中....

  我的分类(专题)
页面载入中....
  日志搜索
    最近日志
页面载入中....

  最新评论
页面载入中....

  留言板
页面载入中....

  链接

  Blog信息
页面载入中....





Powered by Oblog.