<?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: How to split parcels into lots using Python? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1262738#M10906</link>
    <description>&lt;P&gt;Instead of using &lt;FONT face="courier new,courier"&gt;ce.subdivideShapes()&lt;/FONT&gt;, another way to subdivide parcels into lots would be to write a cga rule that uses splits.&amp;nbsp; The cga rule can be assigned in python (&lt;FONT face="courier new,courier"&gt;ce.setRuleFile()&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;ce.setStartRule()&lt;/FONT&gt;), then generated (&lt;FONT face="courier new,courier"&gt;ce.generateModels()&lt;/FONT&gt;), and converted to shapes (&lt;FONT face="courier new,courier"&gt;ce.convertModelsToShapes()&lt;/FONT&gt;).&amp;nbsp; Here is a simple cga rule that creates the first example (top right in your screenshot) with some randomness built in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Parcel --&amp;gt;
	split(z) { 'rand(0.3,0.7): split(x) { 'rand(0.4,0.6): Lot.
										| ~1: Lot. }
			 | ~1: Lot. }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One random result looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="split_result.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63941iF4C70DB9DFC9D3B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="split_result.png" alt="split_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 21:27:43 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2023-02-28T21:27:43Z</dc:date>
    <item>
      <title>How to split parcels into lots using Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1223181#M10703</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using Python in CityEngine and I want to split my shapes (I treated them as parcels) into various size of lots. I have known "ce.subdivideShapes" can do this like the tool in menu bar (Shapes &amp;gt; Subdivide...), but errors occured many times using this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I want to know if there is another way to split parcels into lots? I have seen a case video about this for Transit Oriented Development simulations (seen &lt;A href="https://www.youtube.com/watch?v=ooEF_bDSchY" target="_self"&gt;here&lt;/A&gt;), and it mentioned python scripting (as shown below) but no details about how to complete this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vita_Vonanli_0-1666161865554.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53913i88848020851DC67C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vita_Vonanli_0-1666161865554.jpeg" alt="Vita_Vonanli_0-1666161865554.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What's more, I knew the key algorithm of &lt;STRONG&gt;Recursive Subdivision&lt;/STRONG&gt; in CityEngine is OBB (Oriented Bounding Box), so it will be greatly appreciated if anyone can give suggestion about how to implement the OBB algorithm in python code!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 06:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1223181#M10703</guid>
      <dc:creator>Vita_Vonanli</dc:creator>
      <dc:date>2022-10-19T06:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to split parcels into lots using Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1262738#M10906</link>
      <description>&lt;P&gt;Instead of using &lt;FONT face="courier new,courier"&gt;ce.subdivideShapes()&lt;/FONT&gt;, another way to subdivide parcels into lots would be to write a cga rule that uses splits.&amp;nbsp; The cga rule can be assigned in python (&lt;FONT face="courier new,courier"&gt;ce.setRuleFile()&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;ce.setStartRule()&lt;/FONT&gt;), then generated (&lt;FONT face="courier new,courier"&gt;ce.generateModels()&lt;/FONT&gt;), and converted to shapes (&lt;FONT face="courier new,courier"&gt;ce.convertModelsToShapes()&lt;/FONT&gt;).&amp;nbsp; Here is a simple cga rule that creates the first example (top right in your screenshot) with some randomness built in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Parcel --&amp;gt;
	split(z) { 'rand(0.3,0.7): split(x) { 'rand(0.4,0.6): Lot.
										| ~1: Lot. }
			 | ~1: Lot. }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One random result looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="split_result.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63941iF4C70DB9DFC9D3B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="split_result.png" alt="split_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 21:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1262738#M10906</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2023-02-28T21:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to split parcels into lots using Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1265332#M10921</link>
      <description>&lt;P&gt;Thanks for your reply! I have tried this method before, but it seemed the resulting split lots cannot 'Report' property/attributes respectively. That means, the input parcel is still one shape, but I want every subdivided lots to report their own areas/perimeters/or building heights generated later....So i think split in cga cannot fufill my needs, or&amp;nbsp;it can do this but I haven't found out yet?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 03:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1265332#M10921</guid>
      <dc:creator>Vita_Vonanli</dc:creator>
      <dc:date>2023-03-08T03:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to split parcels into lots using Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1302035#M11052</link>
      <description>&lt;P&gt;After assigning the subdivision rule to the parcels, you would have to generate it and convert the models to shapes.&amp;nbsp; Then, each lot will be a separate shape which has its own attributes and can report its own values.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 15:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-split-parcels-into-lots-using-python/m-p/1302035#M11052</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2023-06-22T15:01:40Z</dc:date>
    </item>
  </channel>
</rss>

