<?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: Setting default names for stops in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286446#M2803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Anna,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for answering. Script you sent is OK but what I need is that points are named automatically when user adds stop on the map. This way, when user adds stop at the map, stop gets default name (Graphic Pick1, Graphic Pick 2...) and after that script needs to be started in order names to be changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Entering default name in route properties raises a problem that all stops are named identically and that can be confusing for users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Boban&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2011 06:26:32 GMT</pubDate>
    <dc:creator>SlobodanKostic</dc:creator>
    <dc:date>2011-04-29T06:26:32Z</dc:date>
    <item>
      <title>Setting default names for stops</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286444#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to change names of stops/barriers from default GraphicPick1, GraphicPick2... to something more appropriate. It is easy to set default value for Name property in route layer properties but is it possible to set increasing index for every new loaction (for instance: Point1, Point2, Point3...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286444#M2801</guid>
      <dc:creator>SlobodanKostic</dc:creator>
      <dc:date>2011-04-28T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default names for stops</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286445#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap, you can open the Geoprocessing-&amp;gt;Python window to execute the following python scripts to change the names. Just copy and past the code into the python window and click the Enter button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;rows = arcpy.UpdateCursor("MyRoute\Stops")
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentName = row.getValue("Name")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newName = currentName.replace("Graphic Pick", "Point")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue("Name", newName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286445#M2802</guid>
      <dc:creator>NaAn</dc:creator>
      <dc:date>2021-12-11T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default names for stops</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286446#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Anna,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for answering. Script you sent is OK but what I need is that points are named automatically when user adds stop on the map. This way, when user adds stop at the map, stop gets default name (Graphic Pick1, Graphic Pick 2...) and after that script needs to be started in order names to be changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Entering default name in route properties raises a problem that all stops are named identically and that can be confusing for users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Boban&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 06:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/setting-default-names-for-stops/m-p/286446#M2803</guid>
      <dc:creator>SlobodanKostic</dc:creator>
      <dc:date>2011-04-29T06:26:32Z</dc:date>
    </item>
  </channel>
</rss>

