<?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: Automatically apply different rules to roads and sidewalks in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545676#M7386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Matthias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works as you described it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I had to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Select all shapes in my Streetnetwork&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the Cityengine main menu, click "Graph"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Select "Reset Shape Attributes"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with a fresh new import from a file GDB and your scenario works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For other begginers like me, may I had one step in between steps 3 and 4 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;On the "Set Start Rule" window, choose "Skip"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/is/create/streetshapes.html"&gt;help page&lt;/A&gt;&lt;SPAN&gt; about this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After setting the rules properly, I guess for the generation to be error free, all the default start rules must be defined :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Street&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Sidewalk&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Crossing&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Junction&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;JunctionEntry&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Thibault&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Aug 2013 12:27:32 GMT</pubDate>
    <dc:creator>ThibaultThibault1</dc:creator>
    <dc:date>2013-08-02T12:27:32Z</dc:date>
    <item>
      <title>Automatically apply different rules to roads and sidewalks</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545674#M7384</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;I have a CGA file named "street.cga" with 2 rules :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;@StartRule
Road --&amp;gt; ...

@StartRule
Sidewalk --&amp;gt; ... &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I imported polyline shapes from a file GDB representing my streets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my Streetnetwork , in one shape, I manually select the road (the middle part) and apply the "street.cga" rule and assign the "Road" starting rule. I manually select both sidewalks (both part on the road side) and I apply the "street.cga" rule and assign the starting rule "Sidewalk".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the expected result for one shape of my Streetnetwork. But I have 600 shapes and I would like to find a way to automatically select the road or the sidewalk and apply the related starting rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't figure out how to do this automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with split and comp, but without success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea how to do this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 09:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545674#M7384</guid>
      <dc:creator>ThibaultThibault1</dc:creator>
      <dc:date>2013-08-02T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically apply different rules to roads and sidewalks</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545675#M7385</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;BR /&gt;&lt;SPAN&gt;Why are you using 'Road' and not the default which is 'Street' ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Street and Sidewalk are the default Start Rules which are set by CityEngine. So if you have according start rules in your code, then everything works automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course you can override those defaults, but it just makes your life harder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1] create your street shapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2] select 1 shape &amp;gt; RMB click &amp;gt; select shapes in same layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3] drag and drop rule on those selected shapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4] done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that drag-n-drop automatically triggers the model generation if the @StartRule annotations are well-defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545675#M7385</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-08-02T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically apply different rules to roads and sidewalks</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545676#M7386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Matthias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works as you described it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I had to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Select all shapes in my Streetnetwork&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the Cityengine main menu, click "Graph"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Select "Reset Shape Attributes"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with a fresh new import from a file GDB and your scenario works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For other begginers like me, may I had one step in between steps 3 and 4 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;On the "Set Start Rule" window, choose "Skip"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/is/create/streetshapes.html"&gt;help page&lt;/A&gt;&lt;SPAN&gt; about this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After setting the rules properly, I guess for the generation to be error free, all the default start rules must be defined :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Street&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Sidewalk&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Crossing&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Junction&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;JunctionEntry&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Thibault&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 12:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545676#M7386</guid>
      <dc:creator>ThibaultThibault1</dc:creator>
      <dc:date>2013-08-02T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically apply different rules to roads and sidewalks</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545677#M7387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;correct. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 12:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/automatically-apply-different-rules-to-roads-and/m-p/545677#M7387</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-08-02T12:30:05Z</dc:date>
    </item>
  </channel>
</rss>

