Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个 Visual Basic for Application Function,它显示当前文档的路径。
例如,如果 ArcMap 正在显示map.mxd,我需要显示它的路径。
map.mxd
我只找到了一些查询显示图层的数据源路径的示例。
用这个:
Dim DocAbsPath As String DocAbsPath = Application.Templates.Item(Application.Templates.Count - 1)
取自这个线程。