<?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: Script geoprocessing dialog window help in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521115#M40855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean by "geoprocessing dialog window". Do you mean the results window? What exactly do you see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 01:06:44 GMT</pubDate>
    <dc:creator>SepheFox</dc:creator>
    <dc:date>2015-04-15T01:06:44Z</dc:date>
    <item>
      <title>Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521114#M40854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS 10.3, I had my shapefile list working in the script geoprocessing dialog window for the projection tool&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: #1f497d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Get the spatial reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;spatialRef = arcpy.Describe(template).spatialReference.name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Loop through shapfiles in folder and reproject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;for fc in fcList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; fcspatialRef = arcpy.Describe(fc).spatialReference.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; if fcspatialRef != spatialRef:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; arcpy.Project_management(fc, outFolder + "\\" + fc, template) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Print shapefile Project results&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; arcpy.AddMessage(fc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Return any errors&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;except:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt; arcpy.AddMessage(arcpy.GetMessages())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic','sans-serif'; color: #3d3d3d;"&gt;But when I add in copyFeatures_management because I want to copy the files which are already in the same projection and not reproject them, the dialog window changes and I lose my shapefile list in the geoprocessing dialog window;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Get the spatial reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt; spatialRef = arcpy.Describe(template).spatialReference.name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Loop through shapfiles in folder and reproject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;for fc in fcList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; fcspatialRef = arcpy.Describe(fc).spatialReference.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; if fcspatialRef != spatialRef:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; arcpy.Project_management(fc, outFolder + "\\" + fc, template)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, outFolder + "\\" + fc) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Print shapefile Project results&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt; arcpy.AddMessage(fc) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Return any errors&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;except:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt; arcpy.AddMessage(arcpy.GetMessages())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;Can anyone please assist?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 00:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521114#M40854</guid>
      <dc:creator>MarkWisniewski</dc:creator>
      <dc:date>2015-04-15T00:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521115#M40855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean by "geoprocessing dialog window". Do you mean the results window? What exactly do you see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 01:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521115#M40855</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-15T01:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521116#M40856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sephe, the results windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to see this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/85213_Capture.JPG" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now I don't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 01:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521116#M40856</guid>
      <dc:creator>MarkWisniewski</dc:creator>
      <dc:date>2015-04-15T01:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521117#M40857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok. Did the script perform the project and/or copy features? Well, anyway it's hard to tell from your formatting, but I think the script should be formatted like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;for fc in fcList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; fcspatialRef = arcpy.Describe(fc).spatialReference.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; if fcspatialRef != spatialRef:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Project_management(fc, outFolder + "\\" + fc, template)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, outFolder + "\\" + fc) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;Notice the if/else statements are indented under the for statement, and the commands are indented under those.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 01:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521117#M40857</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-15T01:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521118#M40858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sephe, I couldn't work out why my script stopped working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, instead of printing out only the projected shapefiles (should be 6) in the list in the dialog window, it is printing both the projected and copied files (all 8 files).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 04:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521118#M40858</guid>
      <dc:creator>MarkWisniewski</dc:creator>
      <dc:date>2015-04-15T04:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521119#M40859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, try it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;# Loop through shapfiles in folder and reproject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;for fc in fcList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; fcspatialRef = arcpy.Describe(fc).spatialReference.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; if fcspatialRef != spatialRef:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Project_management(fc, outFolder + "\\" + fc, template)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif'; color: red;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Print shapefile Project results&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(fc) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Century Gothic','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, outFolder + "\\" + fc) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 14:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521119#M40859</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-15T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script geoprocessing dialog window help</title>
      <link>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521120#M40860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the solution is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;arcpy.AddMessage(fc)&lt;/P&gt;&lt;P&gt;arcpy.Project_management(fc, outFolder + "\\" + fc, template)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;arcpy.Project_management(fc, outFolder + "\\" + fc, template)&lt;/P&gt;&lt;P&gt;arcpy.AddMessage(fc)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 10:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-geoprocessing-dialog-window-help/m-p/521120#M40860</guid>
      <dc:creator>MarkWisniewski</dc:creator>
      <dc:date>2015-04-16T10:05:10Z</dc:date>
    </item>
  </channel>
</rss>

