<?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: set object attributes in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-object-attributes/m-p/1215219#M10668</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/168537"&gt;@biaozeng&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In order to do this you need to report geometry.height in your rule and then run a script based export on your shapes where you then can query each reported value after the model generation and write the value as an object attribute with ce.setAttribute.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/python-script-based-export.htm#ESRI_SECTION1_BA8508820A6D462E9FD1A5763E01BE38" target="_self"&gt;Python: Script-based export: Processing CGA report data&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-cityengine-questions/using-python-to-create-an-object-attribute-from-a/m-p/539822/highlight/true#M7300" target="_self"&gt;example snippet in another forum thread&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Please note&lt;/STRONG&gt; that the object attributes are not updated automatically you have to run the script each time you want to update the object attributes.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 18:50:31 GMT</pubDate>
    <dc:creator>JonasObertuefer</dc:creator>
    <dc:date>2022-09-22T18:50:31Z</dc:date>
    <item>
      <title>set object attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-object-attributes/m-p/1215196#M10667</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I created a pile of geometry. I need to assign the height calculated by cga to the object attributes. I have a lot of shapes that need such operations&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biaozeng_0-1663868669464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51921i8768F806C1C6455B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biaozeng_0-1663868669464.png" alt="biaozeng_0-1663868669464.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="biaozeng_0-1663868861324.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51922i515B308DB3A887E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biaozeng_0-1663868861324.png" alt="biaozeng_0-1663868861324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 17:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-object-attributes/m-p/1215196#M10667</guid>
      <dc:creator>biaozeng</dc:creator>
      <dc:date>2022-09-22T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: set object attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-object-attributes/m-p/1215219#M10668</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/168537"&gt;@biaozeng&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In order to do this you need to report geometry.height in your rule and then run a script based export on your shapes where you then can query each reported value after the model generation and write the value as an object attribute with ce.setAttribute.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/python-script-based-export.htm#ESRI_SECTION1_BA8508820A6D462E9FD1A5763E01BE38" target="_self"&gt;Python: Script-based export: Processing CGA report data&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-cityengine-questions/using-python-to-create-an-object-attribute-from-a/m-p/539822/highlight/true#M7300" target="_self"&gt;example snippet in another forum thread&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Please note&lt;/STRONG&gt; that the object attributes are not updated automatically you have to run the script each time you want to update the object attributes.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 18:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-object-attributes/m-p/1215219#M10668</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-09-22T18:50:31Z</dc:date>
    </item>
  </channel>
</rss>

