开发者

How to (programmatically) figure out the path of the current ArcMap document with VBA

开发者 https://www.devze.com 2022-12-28 01:21 出处:网络
I would like a Visual Basic for Application Function which shows the path of the current document. For example if ArcMap is displaying map.mxd I need to display its path.

I would like a Visual Basic for Application Function which shows the path of the current document.

For example if ArcMap is displaying map.mxd I need to display its path.

I found only s开发者_如何学Goome examples for querying the path of the datasources of the displayed layers.


Use this:

Dim DocAbsPath As String
DocAbsPath = Application.Templates.Item(Application.Templates.Count - 1)

Taken from this thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号