<?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: Script fails to change all block parameters in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454568#M6207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to check the blocks of CE whether all the closures were exactly made, and reiterate to get the entire blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dr. Selvavinayagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Nov 2016 03:16:33 GMT</pubDate>
    <dc:creator>selvavinayagamkanagavel2</dc:creator>
    <dc:date>2016-11-19T03:16:33Z</dc:date>
    <item>
      <title>Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454567#M6206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a simple python script that changes the block type. &amp;nbsp;When I run it, it seems to skip some of the blocks.&lt;/P&gt;&lt;P&gt;To run, just load the attached script and run it. &amp;nbsp;It looks for all the blocks and changes it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 02:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454567#M6206</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2016-11-19T02:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454568#M6207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to check the blocks of CE whether all the closures were exactly made, and reiterate to get the entire blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dr. Selvavinayagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 03:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454568#M6207</guid>
      <dc:creator>selvavinayagamkanagavel2</dc:creator>
      <dc:date>2016-11-19T03:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454569#M6208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have 9 blocks. &amp;nbsp;When I run the script, it works on 8 of them. &amp;nbsp;The 9th one does not change.&lt;/P&gt;&lt;P&gt;However, I can select the block and change the type manually using the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give your suggestion a try, nonetheless, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 03:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454569#M6208</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2016-11-19T03:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454570#M6209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some more experiments, I found that if I select the block that did not respond to the script, and&lt;/P&gt;&lt;P&gt;update it manually using the UI, the block will then respond to the script thereafter. &amp;nbsp;This seems like a bug,&lt;/P&gt;&lt;P&gt;or there is something I am not doing correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 16:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454570#M6209</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2016-11-19T16:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454571#M6210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah. figured it out. &amp;nbsp;I needed to add this line:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;ce.setAttributeSource(block,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/ce/block/type"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"USER"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 17:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454571#M6210</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2016-11-19T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails to change all block parameters</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454572#M6211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bit tricky. &amp;nbsp;When setting attributes in Python, it's the user set values of these attributes that are changed. &amp;nbsp;The default values for the attribute type are not changed. &amp;nbsp;So, if you have a block with the attribute type whose&amp;nbsp;source is&amp;nbsp;"default", its&amp;nbsp;value won't change. &amp;nbsp;If you have a block with the attribute type&amp;nbsp;whose source is a user-set value (bold in the Inspector), then this&amp;nbsp;value will change. &amp;nbsp;Basically, this means that in Python you have to set the attribute value and set the source to be "USER" as you've figured out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/script-fails-to-change-all-block-parameters/m-p/454572#M6211</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-11-21T18:01:38Z</dc:date>
    </item>
  </channel>
</rss>

