<?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: Map.Start startup script in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581412#M3933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arcpy.mp is not included in my arcGIS 10.3 environment. I tried it in the&lt;/P&gt;&lt;P&gt;Python console; it came back "no module named mp".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 02:18:55 GMT</pubDate>
    <dc:creator>JohnBonifas1</dc:creator>
    <dc:date>2016-05-03T02:18:55Z</dc:date>
    <item>
      <title>Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581407#M3928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...I've googled all over and can't find any info on this...where is there a tutorial on where to place this file, so that ArcMap will see it. Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 20:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581407#M3928</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-04-28T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581408#M3929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, are you trying to access this programatically, and if so, what development software are you trying to use? &lt;/P&gt;&lt;P&gt;Are you trying to find it based on the ArcMap Options dialog?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="474" src="https://community.esri.com/legacyfs/online/197726_pastedImage_0.png" style="width: 343px; height: 473.737px;" width="343" /&gt;&lt;/P&gt;&lt;P&gt;My &lt;EM&gt;guess&lt;/EM&gt; is it is buried somewhere in the C:\Users\&amp;lt;user&amp;gt;\AppData\Roaming\ESRI\Desktop10.3\ArcMap\Templates\Normal.mxt&amp;nbsp;&amp;nbsp; file, but that is only a guess.&amp;nbsp; I was not able to change the value in the above dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A search of the registry shows it&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/197727_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;So that my give a clue on how to modify or control it, but again, a guess, either is it embedded in the normal.mxt, OR it just ignores is unless it finds the file in the C:\Program Files (x86)\ArcGIS\Desktop10.3\MapTemplates&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; folder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try putting a new Map.Start file in that folder and see what happens.&amp;nbsp; (I would try it, but no time right now...and don't really know what would go into the file.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not what you are going for, please supply additional info re: the version of ArcMap and the development environment you are using.&amp;nbsp; That will help others focus on what you are asking and you may get more responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 04:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581408#M3929</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-04-29T04:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581409#M3930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...A ProgID is short for "Programmatic ID". It is usually an identifier for a COM/ActiveX top-level object that can be accessed using Visual Basic for Applications (VBA) or VBscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a search through my CLSIDs, and couldn't find a ProgID called "Map.Start".&lt;/P&gt;&lt;P&gt;Then I found this article:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStartupDialog_Interface/000v0000015s000000/" target="_blank" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStartupDialog_Interface/000v0000015s000000/"&gt;ArcObjects 10 .NET SDK Help: the IStartupDialog Interface&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;...According to this article, the developer writes a .NET class that ArcMap will then look for and use upon startup. In Visual Studio, if you compile a project called "Map" and a class called "Start", and put it in the right place, ArcMap by default will look for and use that class upon startup. But by changing that registry entry you could call your project and class anything you want. That's why I didn't find a ProgID called "Map.Start" in my registry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...But all of this is moot, because as of ArcGIS version 4, VBA will be deprecated in favor of Python. That's why this question is not important, and why I will not get any other replies for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanx for your help anyways. I was curious about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 06:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581409#M3930</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-05-01T06:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581410#M3931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;THIS&lt;/EM&gt;&lt;/STRONG&gt; is what I've been looking for:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/getting-started-with-arcpy-mapping-tutorial.htm" target="_blank"&gt;Getting a Reference to the Currently Loaded Document in ArcMap &lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 09:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581410#M3931</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-05-01T09:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581411#M3932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Specifically, it is in the MapDocument class&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/mapdocument-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/mapdocument-class.htm"&gt;MapDocument—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A complete listing or classes and function can be found in their respective links&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/alphabeticallistofclasses.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/alphabeticallistofclasses.htm"&gt;Alphabetical list of arcpy.mapping classes—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/alphabeticallistoffunctions.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/alphabeticallistoffunctions.htm"&gt;Alphabetical list of arcpy.mapping functions—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is just easier to bookmark the top of the mapping tree for ArcMap and for those about to transition, check out&amp;nbsp; arcpy.mp, the replacement for arcpy.mapping&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/introduction-to-arcpy-mapping.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/introduction-to-arcpy-mapping.htm"&gt;Introduction to arcpy.mapping ...&amp;nbsp; ArcGIS for Desktop&amp;nbsp; (aka ArcMap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;Introduction to arcpy.mp ...&amp;nbsp; ArcGIS PRO&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 15:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581411#M3932</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-01T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581412#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arcpy.mp is not included in my arcGIS 10.3 environment. I tried it in the&lt;/P&gt;&lt;P&gt;Python console; it came back "no module named mp".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 02:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581412#M3933</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-05-03T02:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581413#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mp is for Pro&lt;/P&gt;&lt;P&gt;mapping is for ArcMap&lt;/P&gt;&lt;P&gt;as given in my last 2 links&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 07:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581413#M3934</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-03T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Map.Start startup script</title>
      <link>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581414#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you just looking for..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive been routinely running custom Python scripts within ArcMap, and wanting to add list of layers to the open map document. I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp; mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;except RuntimeError:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print("not in ArcMap")&lt;/P&gt;&lt;P&gt;else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;/P&gt;&lt;P&gt;&amp;nbsp; newLayer = arcpy.mapping.layer("mynewlayer")&lt;/P&gt;&lt;P&gt;&amp;nbsp; arcpy.mapping.AddLayer(df, newLayer, ("TOP")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...sometimes I loop thru a list of layers...checking to make sure they exists first, then add them.&lt;/P&gt;&lt;P&gt;sorry about not formatting the above correctly (i.e. Not highlighted as Python code).&amp;nbsp; Not able to do it on current device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thought I would add this info, but since you marked you own answer as correct, I'm assuming this is no longer an open thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 22:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-start-startup-script/m-p/581414#M3935</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-05-03T22:35:31Z</dc:date>
    </item>
  </channel>
</rss>

