<?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: Any issues with ms?? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639764#M28508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/358947"&gt;Samantha Griffore&lt;/A&gt;‌ you might want to get a python IDE to use so you don't have to do it line-by-line&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/13/spyder"&gt;/blogs/dan_patterson/2018/12/13/spyder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2019 23:56:10 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-10-24T23:56:10Z</dc:date>
    <item>
      <title>Any issues with ms??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639761#M28505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I really hope someone can help me. I have been using the same code to export map series for some weeks and today I'm getting an error telling me that my syntax is invalid when exporting ms.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p = arcpy.mp.ArcGISProject("Current")&lt;BR /&gt;l = p.listLayouts()[2]&lt;BR /&gt;if not l.mapSeries is None:&lt;BR /&gt; ms = l.mapSeries&lt;BR /&gt; if ms.enabled:&lt;BR /&gt; ms = l.mapSeries&lt;BR /&gt; indexLyr = ms.indexLayer&lt;BR /&gt; arcpy.SelectLayerByAttribute_management(indexLyr, "NEW_SELECTION", "SA = 19 and AMA = 'A'")&lt;BR /&gt; print("Exporting SA{} AMA-{}".format(currentSA, currentAMA)&lt;BR /&gt; ms.exportToPDF(relpath + "\P19_MapAtlas_FGD_SA19_AMA-A_SCR.pdf", "SELECTED")&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;File "&amp;lt;string&amp;gt;", line 12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ms.exportToPDF(relpath + "\P19_MapAtlas_FGD_SA19_AMA-A_SCR.pdf", "SELECTED")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;SyntaxError: invalid syntax&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Why is my ms not valid? I've individually checked that each variable is pointing to the correct feature and I've tested the SelectLayerByAttribute as well, working great. It just does not want to export... Any ideas??&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 16:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639761#M28505</guid>
      <dc:creator>SamanthaGriffore</dc:creator>
      <dc:date>2019-10-24T16:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Any issues with ms??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639762#M28506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt;&amp;nbsp; so there are line numbers and proper formatting.&lt;/P&gt;&lt;P&gt;what is the value of &lt;STRONG&gt;relpath&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639762#M28506</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-10-24T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Any issues with ms??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639763#M28507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the tip on formatting &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;, I knew there was a better way!&lt;BR /&gt;The path is OK, and I got the code to work somehow without modifying anything, I simply had to run each line of code on it's own, slightly painful..... If I figure out what happened I'll post my solution.&lt;/P&gt;&lt;P&gt;Also I should mention I'm running within ArcGIS Pro Python Window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639763#M28507</guid>
      <dc:creator>SamanthaGriffore</dc:creator>
      <dc:date>2019-10-24T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Any issues with ms??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639764#M28508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/358947"&gt;Samantha Griffore&lt;/A&gt;‌ you might want to get a python IDE to use so you don't have to do it line-by-line&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/13/spyder"&gt;/blogs/dan_patterson/2018/12/13/spyder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 23:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639764#M28508</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-10-24T23:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Any issues with ms??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639765#M28509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, indeed. The issue was simple syntax it turns out, a parentheses missing on the print statement which made the ms.export function fall within the print function. The error threw off my troubleshooting!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 20:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/any-issues-with-ms/m-p/639765#M28509</guid>
      <dc:creator>SamanthaGriffore</dc:creator>
      <dc:date>2019-10-25T20:19:13Z</dc:date>
    </item>
  </channel>
</rss>

