<?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 Split Index Function in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-index-function/m-p/716908#M9387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to split a lot and retrieve the index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;BR /&gt;split(x) {{~Length : SPLITZ | ~Length : SPLITZ | Road_Width : Road_Color}* | ~Length : SPLITZ }&lt;/P&gt;&lt;P&gt;SPLITZ --&amp;gt; split(z) {{~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt;&amp;nbsp;| ~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt; | Road_Width : Road_Color}* | ~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extrude_Building --&amp;gt; &lt;BR /&gt;extrude (world.y, Extruding)&lt;BR /&gt; comp(f) {top : Numbering | side: Colorize}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Numbering --&amp;gt; &lt;BR /&gt; set(SplitCount, split.index) &lt;BR /&gt; texture("assets/no/no_"+SplitCount+".png") &lt;BR /&gt; alignScopeToGeometry(zUp, 0, world.lowest) &lt;BR /&gt; setupProjection(0, scope.xy, '1.0000, '1.0000) &lt;BR /&gt; projectUV(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/364831_Indexing.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/364832_Indexing_needed.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion to achieve the index like that with spliting the plot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 07:14:03 GMT</pubDate>
    <dc:creator>AbhishekSobbana</dc:creator>
    <dc:date>2017-07-28T07:14:03Z</dc:date>
    <item>
      <title>Split Index Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-index-function/m-p/716908#M9387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to split a lot and retrieve the index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;BR /&gt;split(x) {{~Length : SPLITZ | ~Length : SPLITZ | Road_Width : Road_Color}* | ~Length : SPLITZ }&lt;/P&gt;&lt;P&gt;SPLITZ --&amp;gt; split(z) {{~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt;&amp;nbsp;| ~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt; | Road_Width : Road_Color}* | ~Width : &lt;SPAN&gt;Extrude_Building&lt;/SPAN&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extrude_Building --&amp;gt; &lt;BR /&gt;extrude (world.y, Extruding)&lt;BR /&gt; comp(f) {top : Numbering | side: Colorize}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Numbering --&amp;gt; &lt;BR /&gt; set(SplitCount, split.index) &lt;BR /&gt; texture("assets/no/no_"+SplitCount+".png") &lt;BR /&gt; alignScopeToGeometry(zUp, 0, world.lowest) &lt;BR /&gt; setupProjection(0, scope.xy, '1.0000, '1.0000) &lt;BR /&gt; projectUV(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/364831_Indexing.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/364832_Indexing_needed.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion to achieve the index like that with spliting the plot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-index-function/m-p/716908#M9387</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-07-28T07:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split Index Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-index-function/m-p/716909#M9388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the values for split.index and split.total to future rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(x) { ~1: Col(split.index, split.total) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Col(col_ind, nCols) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(z) { ~1: Cell(split.index, col_ind, nCols) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Cell(row_ind, col_ind, nCols) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//cell index starting at 0 = row_ind*nCols + col_ind
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//cell index starting at 1 = row_ind*nCols + col_ind + 1
‍‍‍‍‍‍‍‍‍&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...
&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 06:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-index-function/m-p/716909#M9388</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T06:41:59Z</dc:date>
    </item>
  </channel>
</rss>

