<?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: Report -&amp;gt; Object Attribute in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717020#M9395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Matt!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to do it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 11:34:43 GMT</pubDate>
    <dc:creator>SheylaSantana</dc:creator>
    <dc:date>2013-09-05T11:34:43Z</dc:date>
    <item>
      <title>Report -&amp;gt; Object Attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717018#M9393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm making some calculations in cityengine and i'm facing a problem at this moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can have the reports os this calculation but i need to transform it in a object attribut in the layer Lots that is already in the cityengine. I need this because i should make some other calculations with the result of this report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to calculate the volume of the real city and the legally city. I need to subtract the volumes results to have a constructive stock. My first problem is how to calculate volume and that how can i put this report in the attributes of an object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Frontal = 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Lateral = 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr TO = 0.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr CA = 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr GFHeight = 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr UFHeight = 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myFunction = 0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr parcelArea = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt; Area(geometry.area)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Area(area) --&amp;gt; set (parcelArea, geometry.area) report ("Area do Lote PD", parcelArea) Afast_F(area) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afast_F(area) --&amp;gt;&amp;nbsp; setback(Frontal) { streetSide : NIL&amp;nbsp; | remainder : Afast_L(area) }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afast_L(area) --&amp;gt; setback(Lateral) { noStreetSide : NIL&amp;nbsp; | remainder : projecao(area) }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;projecao(area) --&amp;gt; case geometry.area &amp;gt; area * TO :&amp;nbsp; Redimensiona(area, geometry.area) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else : Sobe(area, geometry.area)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Redimensiona(area, areaP) --&amp;gt;&amp;nbsp;&amp;nbsp; s('area*TO/areaP, 'area*TO/areaP, '1) center (xz)&amp;nbsp; Sobe (area, geometry.area)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sobe (area, areaSC ) --&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extrude(3*(area*CA/areaSC)) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; split (y) {GFHeight : Volume("GF") | ~1 : UpperFloor }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UpperFloor --&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; split (y) { ~ UFHeight : Volume("UF") } *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Volume (volumeType) --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case volumeType == "GF":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; color ("#990000")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; set (material.opacity, 0.5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Reporting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; color ("#990000")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; set (material.opacity, 0.5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Reporting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reporting --&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; report("Primeiro Andar PD", geometry.area(bottom))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; report("Demais Andares PD", geometry.area(bottom) / parcelArea )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sheyla&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 11:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717018#M9393</guid>
      <dc:creator>SheylaSantana</dc:creator>
      <dc:date>2013-09-04T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report -&gt; Object Attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717019#M9394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll need to create a Python script for this. This cannot be done automatically in the GUI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go through tutorial 12 very carefully (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=e1d05298b8ee469fbe0f3256634a76a3"&gt;http://www.arcgis.com/home/item.html?id=e1d05298b8ee469fbe0f3256634a76a3&lt;/A&gt;&lt;SPAN&gt;), you'll find a way to access reported values. Make sure you download the tutorial files, this is not covered in the video version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have the values, you can create an object attr with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try diving into this. I can help you later on if questions remain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 11:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717019#M9394</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-04T11:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Report -&gt; Object Attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717020#M9395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Matt!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to do it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 11:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/report-amp-gt-object-attribute/m-p/717020#M9395</guid>
      <dc:creator>SheylaSantana</dc:creator>
      <dc:date>2013-09-05T11:34:43Z</dc:date>
    </item>
  </channel>
</rss>

