<?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 How to subdivide shapes(blocks) using CGA or python code? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1213805#M10656</link>
    <description>&lt;P&gt;Hi, I'm curious about how to subdivide an input 2D initial shape using CCA rule or python script?&lt;/P&gt;&lt;P&gt;I''ve seen many solutions about using split or splitArea to complete this, but there is a problem: the initial shape is still ONE object and cannot report informations about every subdivided lots respectively.&lt;/P&gt;&lt;P&gt;That means, I want the splitted lots be independent and can be assigned CGA rules respectively,&amp;nbsp; I think that is&amp;nbsp;the same as the&amp;nbsp;&lt;STRONG&gt;Shapes-Subdivide &lt;/STRONG&gt;function in CityEngine menu bar,&amp;nbsp; but can I get them using CGA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some pictures to illustrate——&lt;/P&gt;&lt;P&gt;What 'split' function gets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_0-1663594442447.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51539i981B77C3D622464A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_0-1663594442447.png" alt="Vita_Vonanli_0-1663594442447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_1-1663594471635.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51541iCE5997D02430C763/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_1-1663594471635.png" alt="Vita_Vonanli_1-1663594471635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(only the initial shape can be selected)&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_3-1663594579646.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51543iDB8252FE2F8E8DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_3-1663594579646.png" alt="Vita_Vonanli_3-1663594579646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;（only one object is selected）&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Very need your help! Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 13:44:22 GMT</pubDate>
    <dc:creator>Vita_Vonanli</dc:creator>
    <dc:date>2022-09-19T13:44:22Z</dc:date>
    <item>
      <title>How to subdivide shapes(blocks) using CGA or python code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1213805#M10656</link>
      <description>&lt;P&gt;Hi, I'm curious about how to subdivide an input 2D initial shape using CCA rule or python script?&lt;/P&gt;&lt;P&gt;I''ve seen many solutions about using split or splitArea to complete this, but there is a problem: the initial shape is still ONE object and cannot report informations about every subdivided lots respectively.&lt;/P&gt;&lt;P&gt;That means, I want the splitted lots be independent and can be assigned CGA rules respectively,&amp;nbsp; I think that is&amp;nbsp;the same as the&amp;nbsp;&lt;STRONG&gt;Shapes-Subdivide &lt;/STRONG&gt;function in CityEngine menu bar,&amp;nbsp; but can I get them using CGA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some pictures to illustrate——&lt;/P&gt;&lt;P&gt;What 'split' function gets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_0-1663594442447.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51539i981B77C3D622464A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_0-1663594442447.png" alt="Vita_Vonanli_0-1663594442447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_1-1663594471635.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51541iCE5997D02430C763/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_1-1663594471635.png" alt="Vita_Vonanli_1-1663594471635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(only the initial shape can be selected)&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_3-1663594579646.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51543iDB8252FE2F8E8DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_3-1663594579646.png" alt="Vita_Vonanli_3-1663594579646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;（only one object is selected）&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Very need your help! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1213805#M10656</guid>
      <dc:creator>Vita_Vonanli</dc:creator>
      <dc:date>2022-09-19T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to subdivide shapes(blocks) using CGA or python code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1214976#M10664</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/574332"&gt;@Vita_Vonanli&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There is no &lt;STRONG&gt;Shapes-Subdivide&lt;/STRONG&gt; functionality in CGA but you can apply it to a shape using python and then assign your rule onto the created shapes again by python or via ui.&lt;/P&gt;&lt;P&gt;For more information check the python docs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/subdivide-shapes-settings.htm" target="_self"&gt;SubdivideShapesSettings&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/ce.htm#ESRI_SECTION1_8AD4181731F44C64B1D38C01C4570CDF" target="_self"&gt;setRuleFile&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/2020.1/tutorials/tutorial-10-python-scripting.htm" target="_self"&gt;Tutorial 10: Python scripting&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1214976#M10664</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-09-22T08:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to subdivide shapes(blocks) using CGA or python code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1220114#M10688</link>
      <description>&lt;P&gt;Thanks a lot for your suggestion Jonas! Using Python script in CE is a little difficult for me but I will try my best!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 08:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-subdivide-shapes-blocks-using-cga-or-python/m-p/1220114#M10688</guid>
      <dc:creator>Vita_Vonanli</dc:creator>
      <dc:date>2022-10-08T08:37:12Z</dc:date>
    </item>
  </channel>
</rss>

