<?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: Corner lot test not working in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515096#M6983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you rephrase this as a question? I'm not sure what you are saying/asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 19:35:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-05-05T19:35:14Z</dc:date>
    <item>
      <title>Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515095#M6982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;imports fail to load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;reports "no such function" : ? streetWidth()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;file Colors.cga contains:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt; SNOW --&amp;gt;color("#FFFAFA")&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;real bummer if this is the case, as you cant test a corner lots if you have imports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this code was the default example to test corners, WHY this is not a standard "geometry.isCorner" is beyond me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2014.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import col&amp;nbsp; : "Colors.cga"&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; error &lt;SPAN style="color: #e23d39;"&gt; "no such function" : ? streetWidth()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#BuildingVariables&lt;/P&gt;&lt;P&gt;attr&amp;nbsp;&amp;nbsp;&amp;nbsp; BldMasterHeightMin = 10&lt;/P&gt;&lt;P&gt;attr&amp;nbsp;&amp;nbsp;&amp;nbsp; BldMasterHeightMax = 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr BldIsCorner =&amp;nbsp; false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr streetWidth(i) =&amp;nbsp; 0&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;the offending line needed for index Recursion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CornerRecursion(geometry.nVertices - 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CornerRecursion ( edgeID, nStreetEdges ) --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case edgeID &amp;gt;= 0 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case streetWidth(edgeID) &amp;gt; 0 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print (edgeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CornerRecursion ( edgeID - 1, nStreetEdges + 1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print (edgeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CornerRecursion ( edgeID - 1, nStreetEdges )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case nStreetEdges &amp;gt;= 2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #set(BldIsCorner, true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doLot #corner Lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #set(BldIsCorner, false)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doLot #Not corner lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doLot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(rand(BldMasterHeightMin, BldMasterHeightMax))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) { top: doTop | all: doFacard }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doTop--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofHip(20) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col.PINK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doFacard--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col.PINK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515095#M6982</guid>
      <dc:creator>curtedmonds</dc:creator>
      <dc:date>2015-05-05T15:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515096#M6983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you rephrase this as a question? I'm not sure what you are saying/asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 19:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515096#M6983</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T19:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515097#M6984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;normally the recursive test "CornerRecursion ( edgeID, nStreetEdges ) --&amp;gt;" should function correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However (&lt;STRONG&gt;in testing 2014&lt;/STRONG&gt;) the same method for testing a corner Lot produces a strange error when the import function is also used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included&amp;nbsp; the recursion test source code and where the error occurs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: &lt;STRONG&gt;has the structure or method for testing a corner lot changed? &lt;/STRONG&gt;and if not&lt;/P&gt;&lt;P&gt;why does&lt;STRONG&gt; attr streetWidth(i) =&amp;nbsp; 0 &lt;/STRONG&gt;produce an error when simultaneously using an &lt;STRONG&gt;import function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried stripping out the import of source code and still be exists, it is only when I don't use &lt;STRONG&gt;import or &lt;/STRONG&gt;don't&amp;nbsp; use the function &lt;STRONG&gt;attr streetWidth(i) =&amp;nbsp; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Has anyone else had experience in "2014" when testing for a&amp;nbsp; corner lot with this problem or is there a new solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps the heading should have said: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import function producers an error...when using &lt;STRONG&gt;attr streetWidth(i) =&amp;nbsp; 0 function. &lt;/STRONG&gt;to test corner lots&lt;STRONG&gt; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps clarify the issue&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 20:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515097#M6984</guid>
      <dc:creator>curtedmonds</dc:creator>
      <dc:date>2015-05-05T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515098#M6985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;attr streetWidth(i) =&amp;nbsp; 0 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attributes can not be parameterized in CGA. The import has nothing to do with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where did you find this strange code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 16:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515098#M6985</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-06T16:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515099#M6986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lol, nice Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is causing the failure, but what then is the the solution to test for a corner lot? &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;an alternative to this usage..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see &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;this also has &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;attr streetWidth(i) =&amp;nbsp; 0 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;cheers&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 19:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515099#M6986</guid>
      <dc:creator>curtedmonds</dc:creator>
      <dc:date>2015-05-06T19:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515100#M6987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong. This code does work. It is StartRules that cannot have parameters, not attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tested it and it seems to work in version 2014.1 and 2015.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad to see this, because I did not know about it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 20:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515100#M6987</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-06T20:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515101#M6988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, it does not work in 2013 or 2014.0. I think that was a feature that got pulled for a few versions. Not sure. So definitely upgrade to version 2015. It has other improvements... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 23:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515101#M6988</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-06T23:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Corner lot test not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515102#M6989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k, good to know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As doubting ones sanity is only fun at parties &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/corner-lot-test-not-working/m-p/515102#M6989</guid>
      <dc:creator>curtedmonds</dc:creator>
      <dc:date>2015-05-07T09:55:12Z</dc:date>
    </item>
  </channel>
</rss>

