<?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: No Sidewalk and minArcRadius=0 in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/no-sidewalk-and-minarcradius-0/m-p/204477#M2701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The street and intersection parameters cannot be changed through CGA rules.&amp;nbsp; You cannot change the underlying shapes, but you can create models that don't have sidewalks, for example, by making the following rule:&amp;nbsp; Sidewalk --&amp;gt; NIL.&amp;nbsp; But, this is probably not what you want to do since it would be harder to deal with the minArcRadius in the rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change some default settings used when drawing streets by going to Graph -&amp;gt; Street Creation Settings.&amp;nbsp; You can set values for sidewalk widths, but unfortunately, the intersection parameters are missing, so you cannot set a value for minArcRadius.&amp;nbsp; (We hope to improve this in the future.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the minArcRadius, you'll have to draw all of your streets first, select them all, and then manually set the value of minArcRadius to 0 in the Inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you can use a Python script to set the values of sidewalkWidthLeft, sidewalkWidthRight, and minArcRadius for all of the streets in your scene.&amp;nbsp; Here is some code that does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# get graph segments and nodes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;segments = ce.getObjectsFrom(ce.scene, ce.isGraphSegment)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;nodes = ce.getObjectsFrom(ce.scene, ce.isGraphNode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# set sidewalk widths to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthLeft'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthLeft'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthRight'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthRight'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# set minArcRadius to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(nodes, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/crossing/minArcRadius'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(nodes, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/crossing/minArcRadius'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 15:28:22 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2016-05-24T15:28:22Z</dc:date>
    <item>
      <title>No Sidewalk and minArcRadius=0</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/no-sidewalk-and-minarcradius-0/m-p/204476#M2700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way of changing the defaults for the streets and intersections. This way I could draw my streets with design that i elected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible is there a way to manipulate the intersections in a rule file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried also with a rule but I got stuck with the intersections. I don't know how to "call" the "minArcRadius"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final goal, it is a street with no sidewalk and sharp corners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a rule file. Here is the extract related with the street: :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sidewalkWidthLeft&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (geometry.dv(0,unitSpace)) &lt;/P&gt;&lt;P&gt;sidewalkWidthRight&amp;nbsp;&amp;nbsp;&amp;nbsp; = (geometry.dv(0,unitSpace))&lt;/P&gt;&lt;P&gt;minArcRadius&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed that by giving the direct name of the attributes present in the inspector it would work. But in fact in the inspector when I select a segment there is no start rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sidewalk --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(v,unitSpace,0) {1 : Curbs | 0: Pavement}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curbs--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I copy an existing rule "street modern simple". but again it didn't work. I had a look (in fact I am still doing it) to a rule file named "Complete street simple" but appear to be just for streets with sidewalks; although it looks very complete it does not have any example without sidewalk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 12:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/no-sidewalk-and-minarcradius-0/m-p/204476#M2700</guid>
      <dc:creator>PmssS</dc:creator>
      <dc:date>2016-04-18T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: No Sidewalk and minArcRadius=0</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/no-sidewalk-and-minarcradius-0/m-p/204477#M2701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The street and intersection parameters cannot be changed through CGA rules.&amp;nbsp; You cannot change the underlying shapes, but you can create models that don't have sidewalks, for example, by making the following rule:&amp;nbsp; Sidewalk --&amp;gt; NIL.&amp;nbsp; But, this is probably not what you want to do since it would be harder to deal with the minArcRadius in the rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change some default settings used when drawing streets by going to Graph -&amp;gt; Street Creation Settings.&amp;nbsp; You can set values for sidewalk widths, but unfortunately, the intersection parameters are missing, so you cannot set a value for minArcRadius.&amp;nbsp; (We hope to improve this in the future.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the minArcRadius, you'll have to draw all of your streets first, select them all, and then manually set the value of minArcRadius to 0 in the Inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you can use a Python script to set the values of sidewalkWidthLeft, sidewalkWidthRight, and minArcRadius for all of the streets in your scene.&amp;nbsp; Here is some code that does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# get graph segments and nodes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;segments = ce.getObjectsFrom(ce.scene, ce.isGraphSegment)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;nodes = ce.getObjectsFrom(ce.scene, ce.isGraphNode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# set sidewalk widths to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthLeft'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthLeft'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthRight'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(segments, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/street/sidewalkWidthRight'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: silver;"&gt;# set minArcRadius to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttribute(nodes, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/crossing/minArcRadius'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ce.setAttributeSource(nodes, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'/ce/crossing/minArcRadius'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #00aa00; font-size: 10.0pt; font-family: 'Courier New';"&gt;'USER'&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 15:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/no-sidewalk-and-minarcradius-0/m-p/204477#M2701</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-05-24T15:28:22Z</dc:date>
    </item>
  </channel>
</rss>

