<?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: Automatization of ArcMap in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162974#M12481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can call your model from command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Export your model as Script file.&lt;/LI&gt;&lt;LI&gt;Include below lines at the start of your script &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14087948643986616 jive_text_macro" jivemacro_uid="_14087948643986616" modifiedtitle="true"&gt;
&lt;P&gt;# Import system modules&lt;/P&gt;
&lt;P&gt;import sys, string, os, logging&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;WORK_FOLDER = "E:\\Workfolder"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# initiate logging&lt;/P&gt;
&lt;P&gt;logging.basicConfig(filename=WORK_FOLDER+'Script.log',format='%(asctime)s %(message)s',level=logging.DEBUG)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Set the License...&lt;/P&gt;
&lt;P&gt;arcpy.SetProduct("ArcEditor")&lt;/P&gt;
&lt;P&gt;logging.debug('product initialised')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Load required toolboxes...&lt;/P&gt;
&lt;P&gt;arcpy.AddToolbox("c:\program files\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx")&lt;/P&gt;
&lt;P&gt;arcpy.AddToolbox("c:\program files\arcgis\desktop10.2\ArcToolbox\Toolboxes\Conversion Tools.tbx")&lt;/P&gt;
&lt;P&gt;logging.debug('Loaded toolbox')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can execute this script from command line or scheduled task by calling python.exe like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #4d4d4d; font-family: 'Courier New', Courier, monospace;"&gt;c:\python27\python.exe c:\gisWork\myscript.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Aug 2014 12:04:25 GMT</pubDate>
    <dc:creator>RiyasDeen</dc:creator>
    <dc:date>2014-08-23T12:04:25Z</dc:date>
    <item>
      <title>Automatization of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162973#M12480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deal All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get an idea how to write a scenario for ArcMAP. There is a external code which provides a numerical result for ArcMAP calculations. After finishing of this code ArcMAP need to be started to join this data to my shape file and convert and export it to KML. I tried to use ModelBuilder but it can be started only under ArcMap. The other way is to write Python script for starting Arcmap and doing my Model. Am I right or it is possible to start Model under Windows or Command line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 11:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162973#M12480</guid>
      <dc:creator>NickPopow</dc:creator>
      <dc:date>2014-08-23T11:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatization of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162974#M12481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can call your model from command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Export your model as Script file.&lt;/LI&gt;&lt;LI&gt;Include below lines at the start of your script &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14087948643986616 jive_text_macro" jivemacro_uid="_14087948643986616" modifiedtitle="true"&gt;
&lt;P&gt;# Import system modules&lt;/P&gt;
&lt;P&gt;import sys, string, os, logging&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;WORK_FOLDER = "E:\\Workfolder"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# initiate logging&lt;/P&gt;
&lt;P&gt;logging.basicConfig(filename=WORK_FOLDER+'Script.log',format='%(asctime)s %(message)s',level=logging.DEBUG)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Set the License...&lt;/P&gt;
&lt;P&gt;arcpy.SetProduct("ArcEditor")&lt;/P&gt;
&lt;P&gt;logging.debug('product initialised')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Load required toolboxes...&lt;/P&gt;
&lt;P&gt;arcpy.AddToolbox("c:\program files\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx")&lt;/P&gt;
&lt;P&gt;arcpy.AddToolbox("c:\program files\arcgis\desktop10.2\ArcToolbox\Toolboxes\Conversion Tools.tbx")&lt;/P&gt;
&lt;P&gt;logging.debug('Loaded toolbox')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can execute this script from command line or scheduled task by calling python.exe like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #4d4d4d; font-family: 'Courier New', Courier, monospace;"&gt;c:\python27\python.exe c:\gisWork\myscript.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 12:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162974#M12481</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-23T12:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automatization of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162975#M12482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Riyas!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help! I've got an idea!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 06:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/automatization-of-arcmap/m-p/162975#M12482</guid>
      <dc:creator>NickPopow</dc:creator>
      <dc:date>2014-08-26T06:47:46Z</dc:date>
    </item>
  </channel>
</rss>

