<?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: Finding Number of Edges a Plot Shares with a Street in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112647#M1551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit tricky to do, but I have done it before, see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/227207"&gt;Re: How to test whether a lot is on a corner?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps .. (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;--------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" style="color: #1155cc;" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="http://www.garsdaledesign.co.uk/" style="color: #1155cc;" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 09:50:26 GMT</pubDate>
    <dc:creator>MatthiasBuehler</dc:creator>
    <dc:date>2015-07-02T09:50:26Z</dc:date>
    <item>
      <title>Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112646#M1550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somebody help me in writing a rule which can tell how many edges does a plot share with the street and apply different rules according to it.&lt;/P&gt;&lt;P&gt;Example: If it is a corner plot then it shares 2 of its edges with the street. Hence a different rule applies to it than to a site which shares only one edge. For now it is a user defined value : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Range("CLASS_A","CLASS_B", "CLASS_C") &lt;/P&gt;&lt;P&gt;attr Type = "CLASS_A"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;/P&gt;&lt;P&gt;case Type == "CLASS_A" : LotA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #shares one edge, apply rule LotA#&lt;/P&gt;&lt;P&gt;case Type == "CLASS_B" : LotB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #shares two edges, apply rule LotB#&lt;/P&gt;&lt;P&gt;case Type == "CLASS_C" : LotC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #shares three edges, apply rule LotC#&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NIL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a rule that automatically does that. I can get the number of edges from geometry.egdes(correct me if I am wrong) but I dont know exactly how should I write the rule.&lt;/P&gt;&lt;P&gt;&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>Thu, 02 Jul 2015 09:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112646#M1550</guid>
      <dc:creator>ankitadiwan2</dc:creator>
      <dc:date>2015-07-02T09:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112647#M1551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit tricky to do, but I have done it before, see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/227207"&gt;Re: How to test whether a lot is on a corner?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps .. (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;--------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" style="color: #1155cc;" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="http://www.garsdaledesign.co.uk/" style="color: #1155cc;" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 09:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112647#M1551</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2015-07-02T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112648#M1552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey! Thanks so much it works &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; I thought it would be an easy one and I was missing some small logic in my mind but I don't fully understand the code. I understood how you are recursively checking each edge of the lot but beyond that I don't understand how are you checking it with the street edges. Can you please explain, especially nStreetEdges. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="441" src="https://community.esri.com/legacyfs/online/115367_pastedImage_1.png" style="height: 441px; width: 705.811004784689px;" width="706" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 08:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112648#M1552</guid>
      <dc:creator>ankitadiwan2</dc:creator>
      <dc:date>2015-07-03T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112649#M1553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a tricky one .. and not so intuitive ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nStreetEdges ("number of street edges") is just a rule parameter I made up that starts with zero, and whenever the current edge in the recursion has a streetWidth attribute that is &amp;gt; 0, I add 1 to this rule parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the shape's streetWidth() attributes in the Object Attributes tab (Inspector).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means after the recursion is done, if nStreetEdges is &amp;gt;= 2, we know this is a corner lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" style="color: #1155cc;" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="http://www.garsdaledesign.co.uk/" style="color: #1155cc;" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 08:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112649#M1553</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2015-07-03T08:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112650#M1554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah! Understood &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks. I could easily extend it for sites with more than two edges common with the street.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 04:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112650#M1554</guid>
      <dc:creator>ankitadiwan2</dc:creator>
      <dc:date>2015-07-06T04:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112651#M1555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I know a lot of time has passed since this original thread was created, but I'm really struggling with Matthias' solution above. The solution is completely logical, and I can follow what the code is intending to do just fine. The only problem is...the streetWidths returned on any lot I run the code on just return 0! I'm missing something, but I'm not sure what. The streetwidth values are there in the Object Attributes in the Inspector when I select the lot, so why isn't the code returning them?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone out there help, because this is driving me crazy!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2019 11:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112651#M1555</guid>
      <dc:creator>JackCurran</dc:creator>
      <dc:date>2019-09-01T11:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Number of Edges a Plot Shares with a Street</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112652#M1556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See other post:&amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/38802?commentID=227207#comment-875080" title="https://community.esri.com/thread/38802?commentID=227207#comment-875080"&gt;https://community.esri.com/thread/38802?commentID=227207#comment-875080&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/finding-number-of-edges-a-plot-shares-with-a/m-p/112652#M1556</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2019-09-02T11:48:12Z</dc:date>
    </item>
  </channel>
</rss>

