<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcMap, storing a variable inside MxDocument? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389024#M10337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One possibility would be to create an extension that implements IPersistVariant:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000027z000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000027z000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 21:22:51 GMT</pubDate>
    <dc:creator>JeffMatson</dc:creator>
    <dc:date>2014-05-07T21:22:51Z</dc:date>
    <item>
      <title>ArcMap, storing a variable inside MxDocument?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389023#M10336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to store a variable inside the MxDocument itself like you would for AutoCAD?&amp;nbsp; I ask because we want to create our own scale factor for a drawing/document that is set by the user and just our custom tools will use it.&amp;nbsp; I haven't really been able to find anything about there from searching online and it seems like something that would be very useful and used often.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is possible, does anyone have an example or a link to an example of this for me to go off?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 20:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389023#M10336</guid>
      <dc:creator>TonyE</dc:creator>
      <dc:date>2014-05-07T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap, storing a variable inside MxDocument?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389024#M10337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One possibility would be to create an extension that implements IPersistVariant:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000027z000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000027z000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 21:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389024#M10337</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2014-05-07T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap, storing a variable inside MxDocument?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389025#M10338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know that you can store it in the Mxd, but I've used a txt file that prompts the user to update it through a custom script. Then other scripts can read the value from the txt file. I've also used tabular files as well when there are multiple variables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 21:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389025#M10338</guid>
      <dc:creator>BondHarper</dc:creator>
      <dc:date>2014-05-07T21:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap, storing a variable inside MxDocument?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389026#M10339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you may add ITextElement that stores your info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 16:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389026#M10339</guid>
      <dc:creator>ThavitinaiduGulivindala</dc:creator>
      <dc:date>2014-05-08T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap, storing a variable inside MxDocument?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389027#M10340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are lots of ways to approach this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe Jeff's answer is the best way to store a value actually inside the MXD but I've often created code that reads and writes from a simple XML file. This would allow people to edit values outside the ArcMap environment but then you would need to either have a well known location to read/write or have it associated with the MXD in some way. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively write it into Excel and use automation to connect and read from the worksheet?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could even try writing to the registry?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 13:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-storing-a-variable-inside-mxdocument/m-p/389027#M10340</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-05-12T13:28:43Z</dc:date>
    </item>
  </channel>
</rss>

