<?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: Split into grid and select cell in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-into-grid-and-select-cell/m-p/1364197#M11269</link>
    <description>&lt;P&gt;I tried the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@hidden
attr id = 0

@Group("split",0)
attr split_column = 2
@Group("split",0)
attr split_row = 2

@Group("select",1)
attr column_selected = 1
@Group("select",1)
attr row_selected = 1

Lot --&amp;gt; 
	split(x){'(1/ split_column ) : A(split.index)}*

A(col_num) --&amp;gt; 
	split(z){'(1/ split_row &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; B(col_num, split.index)}*

B(col_num, row_num) --&amp;gt;
	comp(f){all : set(id, col_num*split.total+row_num) D(col_num, row_num)}
	

D(col_num, row_num)--&amp;gt;
	case col_num+1 == column_selected &amp;amp;&amp;amp; row_num+1 == row_selected :
		color(1,0,0) X.
	else : X.&lt;/LI-CODE&gt;&lt;P&gt;The ID value can be viewed in the inspector panel after selecting a face in the MODEL HIERARCHY panel.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6343820536112w854h480r915" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6343820536112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6343820536112w854h480r915');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6343820536112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Dec 2023 09:32:28 GMT</pubDate>
    <dc:creator>desert</dc:creator>
    <dc:date>2023-12-24T09:32:28Z</dc:date>
    <item>
      <title>Split into grid and select cell</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-into-grid-and-select-cell/m-p/1228884#M10721</link>
      <description>&lt;P&gt;I'm trying to split a shape into a grid and I want to be able to access an index of values for the grid cells. For example, if I have a 5x5 grid, I want to be able to access value 1,1 (row 1, column 1), and 1,2 (row 1, column 2) from within the rule. Or, I want to be able to assign unique values to each square, (e.g. 1 - 25 in a 5x5 grid).&lt;/P&gt;&lt;P&gt;Currently, when I create a grid and I use split.index = 1, it selects an entire row rather than just 1 grid square.&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-into-grid-and-select-cell/m-p/1228884#M10721</guid>
      <dc:creator>DKossowsky</dc:creator>
      <dc:date>2022-11-04T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Split into grid and select cell</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-into-grid-and-select-cell/m-p/1364197#M11269</link>
      <description>&lt;P&gt;I tried the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@hidden
attr id = 0

@Group("split",0)
attr split_column = 2
@Group("split",0)
attr split_row = 2

@Group("select",1)
attr column_selected = 1
@Group("select",1)
attr row_selected = 1

Lot --&amp;gt; 
	split(x){'(1/ split_column ) : A(split.index)}*

A(col_num) --&amp;gt; 
	split(z){'(1/ split_row &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; B(col_num, split.index)}*

B(col_num, row_num) --&amp;gt;
	comp(f){all : set(id, col_num*split.total+row_num) D(col_num, row_num)}
	

D(col_num, row_num)--&amp;gt;
	case col_num+1 == column_selected &amp;amp;&amp;amp; row_num+1 == row_selected :
		color(1,0,0) X.
	else : X.&lt;/LI-CODE&gt;&lt;P&gt;The ID value can be viewed in the inspector panel after selecting a face in the MODEL HIERARCHY panel.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6343820536112w854h480r280" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6343820536112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6343820536112w854h480r280');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6343820536112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 09:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-into-grid-and-select-cell/m-p/1364197#M11269</guid>
      <dc:creator>desert</dc:creator>
      <dc:date>2023-12-24T09:32:28Z</dc:date>
    </item>
  </channel>
</rss>

