<?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: Select A Range of Edge Index in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639711#M8496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use a conditional rule with indexes, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;attr startIndex &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
attr endIndex &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;

@StartRule 
 Lot &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
 comp&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;side&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;IndexCase&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; 
 
IndexCase &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
 case comp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; startIndex &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; comp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; endIndex&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; DoThing
 &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Stop‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:10:46 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2021-12-12T03:10:46Z</dc:date>
    <item>
      <title>Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639708#M8493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to CityEngine and wondering if there is a way to select multiple edges in the setback operation without typing in each one separately. For instance, I want edges with index from 0 to 4 to have a 3m setback. I can do it by&amp;nbsp;&lt;/P&gt;&lt;P&gt;setback(3){0:X|1:X|2:X|3:X|4:X|remainder:Y}&lt;/P&gt;&lt;P&gt;But is there a way I can do it more efficiently? I have lots with over 90 edges because of the curves. So it will help me tremendously if there is an easier way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any pointers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 23:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639708#M8493</guid>
      <dc:creator>LesiMai1</dc:creator>
      <dc:date>2017-09-22T23:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639709#M8494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No but you can use Excel to build rules like that easily. For example, put &lt;SPAN style="color: #3366ff;"&gt;=A1&amp;amp;": "&amp;amp;B1&amp;amp;" |"&lt;/SPAN&gt; in cell C1, Index in A and rule name in B. Then just pull the cells down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 11:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639709#M8494</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-09-28T11:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639710#M8495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an interesting way to do it! I just wish it can be accomplished dynamically within CityEngine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 17:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639710#M8495</guid>
      <dc:creator>LesiMai1</dc:creator>
      <dc:date>2017-09-28T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639711#M8496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use a conditional rule with indexes, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;attr startIndex &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
attr endIndex &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;

@StartRule 
 Lot &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
 comp&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;side&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;IndexCase&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; 
 
IndexCase &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
 case comp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; startIndex &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; comp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; endIndex&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; DoThing
 &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Stop‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639711#M8496</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-12T03:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639712#M8497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all the helpful suggestions along the way! If you don't mind, I'd like to add&amp;nbsp;a little context to the original question. I'm interested in setting different setbacks based on the street width&amp;nbsp;the lot front is facing. For example, if a corner lot has two street fronts, how can I set up the rule so that it can read the streetWidth attribute to decide the amount of setback needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 20:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639712#M8497</guid>
      <dc:creator>LesiMai1</dc:creator>
      <dc:date>2017-09-29T20:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select A Range of Edge Index</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639713#M8498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With regards to your larger goal, unfortunately, I don't know of a good way to do this.&amp;nbsp; It's not possible to make a single setback with different distances on different edges.&amp;nbsp; If you do one setback followed by another setback on the remainder, then you&amp;nbsp;might accomplish what you want for somewhat rectangular lots.&amp;nbsp; However, as soon as you have the rounded corner&amp;nbsp;with many edges that are all considered to be part of street.front, then you have to choose a single setback distance to get a nice result.&amp;nbsp; Otherwise, if you try to do multiple setbacks, then you'll probably get something ugly and unintended like this (so I'm not sure if recursive setbacks will solve your problem) (and, also, minor disclaimer: this screenshot has the second setback on street.front, so it repeats a setback on the first edge, but it serves the purpose to show that a result would be ugly):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380115_double_setbacks.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to grouping indices, no, sorry, it is not possible to group indices for use as a selector in either setback or comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to not have better news, but maybe someone else has an idea for a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-a-range-of-edge-index/m-p/639713#M8498</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-10-16T13:45:19Z</dc:date>
    </item>
  </channel>
</rss>

