<?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 How to find widest street value for a parcel in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-find-widest-street-value-for-a-parcel/m-p/328787#M4528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Accoding to my Project I need to access value of widest Street of a parcel (shape).&lt;/P&gt;&lt;P&gt;I wrote a python script for the solution. But in my script i could not Access the value of widest Street&lt;/P&gt;&lt;P&gt;my code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def getWidestStreet():
&amp;nbsp;&amp;nbsp;&amp;nbsp; streetWidthList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; attrList = ce.getAttributeList(ce.selection()[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp; for attr in attrList:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if attr.find("street") != -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streetWidthList.append(attr)
&amp;nbsp;&amp;nbsp;&amp;nbsp; sorted(streetWidthList, reverse=True)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print streetWidthList[0].value&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ekran Alıntısı.PNG" class="image-1 jive-image" src="/legacyfs/online/92353_Ekran Alıntısı.PNG" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;P&gt;As seen in the screenshot, there is a selected shape which has 6 neighbourhoods for streets. And&amp;nbsp; 6 streetWidth attributes respectively.&lt;/P&gt;&lt;P&gt;What I&amp;nbsp; need to do is to find the value of widest neighbour street for the selected shape.&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:34:32 GMT</pubDate>
    <dc:creator>miraybasyildirim</dc:creator>
    <dc:date>2021-12-11T15:34:32Z</dc:date>
    <item>
      <title>How to find widest street value for a parcel</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-find-widest-street-value-for-a-parcel/m-p/328787#M4528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Accoding to my Project I need to access value of widest Street of a parcel (shape).&lt;/P&gt;&lt;P&gt;I wrote a python script for the solution. But in my script i could not Access the value of widest Street&lt;/P&gt;&lt;P&gt;my code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def getWidestStreet():
&amp;nbsp;&amp;nbsp;&amp;nbsp; streetWidthList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; attrList = ce.getAttributeList(ce.selection()[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp; for attr in attrList:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if attr.find("street") != -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streetWidthList.append(attr)
&amp;nbsp;&amp;nbsp;&amp;nbsp; sorted(streetWidthList, reverse=True)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print streetWidthList[0].value&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ekran Alıntısı.PNG" class="image-1 jive-image" src="/legacyfs/online/92353_Ekran Alıntısı.PNG" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;P&gt;As seen in the screenshot, there is a selected shape which has 6 neighbourhoods for streets. And&amp;nbsp; 6 streetWidth attributes respectively.&lt;/P&gt;&lt;P&gt;What I&amp;nbsp; need to do is to find the value of widest neighbour street for the selected shape.&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-find-widest-street-value-for-a-parcel/m-p/328787#M4528</guid>
      <dc:creator>miraybasyildirim</dc:creator>
      <dc:date>2021-12-11T15:34:32Z</dc:date>
    </item>
  </channel>
</rss>

