AnsweredAssumed Answered

How to get map description using vb.net

Question asked by james.finlay on Feb 27, 2013
Latest reply on Feb 27, 2013 by james.finlay
Good day,

I am currently trying to figure out how to access a MapDocument's description as set in the File > Map Document Properties. I am trying to access it through a VB.NET add-in. The image below shows the description field I am referring to:

[ATTACH=CONFIG]22221[/ATTACH]


I found it easy enough to access the basic info here, such as the Title, but I cannot find a way to get the description programmatically. Here is the code I have to get the Map Document Title:

 ' Open Map Document Info Dim theMapDoc As IMapDocument = New MapDocument theMapDoc.Open("TheFileName.mxd") Dim theDocInfo As IDocumentInfo = TryCast(theMapDoc, IDocumentInfo)  Dim FileTitle as String = theDocInfo.DocumentTitle


I found that the IMap interface has a Description field, but from what I tried it doesn't seem to be the same one as in the form.
I was searching around online, but I cannot find any help in reading the Description field. Any help would be greatly appreciated.

Thanks in advance!

Attachments

Outcomes