<?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 set default block parameters in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25450#M339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I try to summarize: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Currently, CE uses the existing/nearest settings when you draw/split a new block - if this is not the case, then it would be a bug.&lt;/LI&gt;&lt;LI&gt;However, you do not like this "smart" behavior and would prefer that each new block has always the same default parameters, correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I'd recommend to make a small Python script that takes the selected block and sets your preferred values. You can attach the scripts in the GUI in the menu bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 15:22:45 GMT</pubDate>
    <dc:creator>PascalMueller</dc:creator>
    <dc:date>2014-08-12T15:22:45Z</dc:date>
    <item>
      <title>How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25445#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project I face a problem that, when I draw new streets and subdivide an existing block, new blocks do not take block parameters I have previously set. For instance, if I want to connect selected road segment on the left with the selected segment on the right, I will get two new blocks, which do not pick parameters of the block that is there now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is troublesome, because I am trying to set up a system where one can interactively create various urban block configurations in an area by editing and adjusting street network. The idea is that the buildings will be then automatically redrawn. The problem is that I rely not only on CGA script, but also on particular block parameters, 12 m offset split into 1 m wide lots, for the buildings generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions how I can control the new blocks parameters? I am aware of Street Creation Settings dialogue, but I am only able to set the subdivision type and the rule file for new blocks there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3023" alt="perspective-5.png" class="jive-image image-1" height="327" src="https://community.esri.com/legacyfs/online/3023_perspective-5.png" style="width: 364px; height: 327.01290322580644px;" width="364" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 07:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25445#M334</guid>
      <dc:creator>PetrBocharnikov</dc:creator>
      <dc:date>2014-08-05T07:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25446#M335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi .. I'm not sure if I don't follow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you make a step by step example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 17:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25446#M335</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-08-07T17:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25447#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding. I will try to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to create a continuous building along the perimeter of an urban block. I begin with Offset Subdivision, which has offset width of 12m and InnerLot subdivision switched off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I need to take care of existing buildings. My work-around for this problem is to draw exclusion zones around the existing buildings - the black rectangles under the buildings is my map layer. I set offset lots to be 1m wide and extrude the lots on the condition that the map layer is white under the lot. This way I get new building mass only in the areas that neither overlap with the existing buildings nor with the shades they cast.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG __jive_id="3230" alt="perspective-6.png" class="jive-image image-1" height="330" src="https://community.esri.com/legacyfs/online/3230_perspective-6.png" style="height: 330px; width: 367.35849056603774px;" width="367" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good. But having set up my mapping layer and CGA script, I want to to utilize Dynamic Street Layouts to interactively draw new streets. In my example, I want to draw a street across the urban block. This would allow me to have an interactive system of drawing and adjusting urban blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I this point I have a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3231" alt="perspective-7.png" class="jive-image image-2" height="329" src="https://community.esri.com/legacyfs/online/3231_perspective-7.png" style="width: 367px; height: 329.46590909090907px;" width="367" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two new blocks now, which have default settings for OffsetWidth, subdivisionRecursive and lotWidthMin. As I mentioned&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;, I am able to set the subdivision type and the rule file for new blocks in &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Street Creation Settings&lt;/SPAN&gt;, but not these parameters. So my system doesn't work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;How can I set OffsetWidth, subdivisionRecursive and lotWidthMin for the new blocks - can I hardcode it somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 09:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25447#M336</guid>
      <dc:creator>PetrBocharnikov</dc:creator>
      <dc:date>2014-08-08T09:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25448#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Impressive setup. Which version of CE are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 16:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25448#M337</guid>
      <dc:creator>PascalMueller</dc:creator>
      <dc:date>2014-08-10T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25449#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I am using 2014 version. Would you have any suggestions on how I can proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the idea that with Dynamic City Layouts, I can interactively edit street network, while all building masses are instantly updated. However, to make that work for urban planning purposes, I would need to be able control the default settings for new urban blocks. Otherwise, there is an extra step: after each edit, I would need to go back to the parameters of the new blocks and set them up manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 06:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25449#M338</guid>
      <dc:creator>PetrBocharnikov</dc:creator>
      <dc:date>2014-08-12T06:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25450#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I try to summarize: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Currently, CE uses the existing/nearest settings when you draw/split a new block - if this is not the case, then it would be a bug.&lt;/LI&gt;&lt;LI&gt;However, you do not like this "smart" behavior and would prefer that each new block has always the same default parameters, correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I'd recommend to make a small Python script that takes the selected block and sets your preferred values. You can attach the scripts in the GUI in the menu bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25450#M339</guid>
      <dc:creator>PascalMueller</dc:creator>
      <dc:date>2014-08-12T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25451#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now been able to get back to the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right that it is a bag: when I drew a new network in a new file, the blocks were 'picking up' parameters from surrounding blocks. That is good news.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to redraw my network, though, so I thought to try Python solution. Here is a script I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;'''&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Created on 26 August 2014&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;@author: Petr Bocharnikov&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;'''&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;from scripting import *&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;# get a CityEngine instance&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ce = CE()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;def blockParameters(offset, area, width):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedBlocks = ce.getObjectsFrom(ce.scene, ce.isBlock)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for block in selectedBlocks:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setAttribute(blocks,'/ce/block/offsetWidth', 12)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setAttribute(blocks,'/ce/block/subdivisionRecursive', False)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setAttribute(blocks,'/ce/block/lotAreaMin', 12)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setAttribute(blocks,'/ce/block/lotAreaMax', 12)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setAttribute(blocks,'/ce/block/lotWidthMin', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to add so that the script modifies the default block parameters? I am not sure how I can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25451#M340</guid>
      <dc:creator>PetrBocharnikov</dc:creator>
      <dc:date>2014-08-26T13:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25452#M341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is missing, does your script not work properly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 20:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-set-default-block-parameters/m-p/25452#M341</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-09-03T20:13:50Z</dc:date>
    </item>
  </channel>
</rss>

