<?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: Error in Esri rule files? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288627#M3960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a wei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a link to the place where you downloaded the code? I can see several errors, but I'd like to see the publically posted version, so I can correct it before others download it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that seems to be happening here is that there was a change in CGA, so the inside of splits, everything separated by pipes must have a length specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part of the old code shown above, which worked in older versions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split(u,unitSpace,0)&amp;nbsp; { &lt;SPAN style="color: #e23d39;"&gt;Crosswalk_width * 2:&lt;/SPAN&gt; Pavement |&amp;nbsp; split(v,unitSpace,0)&amp;nbsp; { ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must change to have a length in both parts, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split(u,unitSpace,0)&amp;nbsp; { &lt;SPAN style="color: #e23d39;"&gt;Crosswalk_width * 2:&lt;/SPAN&gt; Pavement |&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;SomeValue:&lt;/SPAN&gt; split(v,unitSpace,0)&amp;nbsp; { ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SomeValue could be:&lt;/P&gt;&lt;P&gt;~1&amp;nbsp;&amp;nbsp; (means just whatever space is left. this is easiest fix)&lt;/P&gt;&lt;P&gt;'0.5&amp;nbsp;&amp;nbsp; (means relative 50%)&lt;/P&gt;&lt;P&gt;123&amp;nbsp; (a literal value)&lt;/P&gt;&lt;P&gt;something * somethingElse&amp;nbsp;&amp;nbsp; (a calculated value like Crosswalk_width * 2, as seen above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is just one error I noticed. More might be there. Please send link to download where you got this if possible.&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>Thu, 13 Aug 2015 15:46:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-08-13T15:46:08Z</dc:date>
    <item>
      <title>Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288620#M3953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems there're errors in City Engine Essential Skills Training project/Essential_street.cga. Specifically, these few lines:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;PlantingLayout --&amp;gt;
&amp;nbsp; case lenAlongV &amp;gt; 2 &amp;amp;&amp;amp; lenAlongU &amp;gt; 8&amp;nbsp; &amp;amp;&amp;amp; heightOverTerrain &amp;lt; 2:
&amp;nbsp; split(u,unitSpace,0)
&amp;nbsp; {
&amp;nbsp; Crosswalk_width * 2: Pavement | 
&amp;nbsp; split(v,unitSpace,0)
&amp;nbsp; {
&amp;nbsp; Planting_Width : split(u,unitSpace,0)
&amp;nbsp; { 
&amp;nbsp; Planting_Length&amp;nbsp; : PlantingOrPavement | { Planting_Spacing:&amp;nbsp; Pavement | Planting_Length : PlantingOrPavement }* | ~1 : Pavement
&amp;nbsp; } 
&amp;nbsp; | ~1 : Pavement
&amp;nbsp; }
&amp;nbsp; | Crosswalk_width * 2: Pavement
&amp;nbsp; }
&amp;nbsp; else :&amp;nbsp; Pavement&lt;/PRE&gt;&lt;P&gt;Am I mistaken? If there're errors, how do I fix that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288620#M3953</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2021-12-11T13:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288621#M3954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the Bar after Pavement.&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122072_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288621#M3954</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-12T17:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288622#M3955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah but that created more errors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288622#M3955</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-08-13T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288623#M3956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.&amp;nbsp; This seemed to fix the error in my code.&amp;nbsp; I know we are using the same file, but could you upload your Essential_Street.cga so I can use it?&amp;nbsp; I might be able to see what is different about your copy. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288623#M3956</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-13T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288624#M3957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding this asterisk...This will run this line of code for the entire sidewalk until it ends that segment.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122240_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288624#M3957</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-13T15:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288625#M3958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, here is a link to the Complete_Street rule. It offers many more options and will most likely be of more use to you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=http://www.arcgis.com/home/item.html?id=863f4e7139314101a5cee1d7cde079d9" rel="nofollow" target="_blank" title="https://community.esri.com/external-link.jspa?url=http://www.arcgis.com/home/item.html?id=863f4e7139314101a5cee1d7cde079d9"&gt;https://community.esri.com/external-link.jspa?url=http://www.arcgis.com/home/item.html?id=863f4e7139314101a5cee1d7cde079d9&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288625#M3958</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-13T15:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288626#M3959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uploaded! Thank you Micah!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288626#M3959</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-08-13T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288627#M3960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a wei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a link to the place where you downloaded the code? I can see several errors, but I'd like to see the publically posted version, so I can correct it before others download it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that seems to be happening here is that there was a change in CGA, so the inside of splits, everything separated by pipes must have a length specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part of the old code shown above, which worked in older versions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split(u,unitSpace,0)&amp;nbsp; { &lt;SPAN style="color: #e23d39;"&gt;Crosswalk_width * 2:&lt;/SPAN&gt; Pavement |&amp;nbsp; split(v,unitSpace,0)&amp;nbsp; { ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must change to have a length in both parts, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split(u,unitSpace,0)&amp;nbsp; { &lt;SPAN style="color: #e23d39;"&gt;Crosswalk_width * 2:&lt;/SPAN&gt; Pavement |&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;SomeValue:&lt;/SPAN&gt; split(v,unitSpace,0)&amp;nbsp; { ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SomeValue could be:&lt;/P&gt;&lt;P&gt;~1&amp;nbsp;&amp;nbsp; (means just whatever space is left. this is easiest fix)&lt;/P&gt;&lt;P&gt;'0.5&amp;nbsp;&amp;nbsp; (means relative 50%)&lt;/P&gt;&lt;P&gt;123&amp;nbsp; (a literal value)&lt;/P&gt;&lt;P&gt;something * somethingElse&amp;nbsp;&amp;nbsp; (a calculated value like Crosswalk_width * 2, as seen above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is just one error I noticed. More might be there. Please send link to download where you got this if possible.&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>Thu, 13 Aug 2015 15:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288627#M3960</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-08-13T15:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288628#M3961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the rule now (attached)...I was able to generate the following with this rule (image)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122241_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288628#M3961</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-13T15:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288629#M3962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems the sidewalk and planting textures are clashing though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 16:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288629#M3962</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-08-13T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288630#M3963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, and there is an unused median rule in the file as well.&amp;nbsp; I think this may be an out-of-date/ flawed version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288630#M3963</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-08-13T17:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Esri rule files?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288631#M3964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I downloaded the rule from this &lt;A href="https://www.youtube.com/watch?v=ognDzymP6JQ&amp;amp;list=PLWGP11THb9EpvmuokMrj_yJ6L4qCuKVli&amp;amp;index=6" title="https://www.youtube.com/watch?v=ognDzymP6JQ&amp;amp;list=PLWGP11THb9EpvmuokMrj_yJ6L4qCuKVli&amp;amp;index=6"&gt;#6 CityEngine Essential Skills: Importing Streets - YouTube&lt;/A&gt; &lt;/P&gt;&lt;P&gt;From the link from that video.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 18:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/error-in-esri-rule-files/m-p/288631#M3964</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-08-13T18:15:45Z</dc:date>
    </item>
  </channel>
</rss>

