<?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 How do I calculate a value between two object attributes within a range in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661280#M8765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to explain this, and hopefully it will make sense &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I got a building building height left and a building height right. Since they are delivered from Lidar, those are not completely equal, but can vary with 0.3 m for a gable roof. What I would like to do is to get the color “red” if left and right minus each other has a range from -0.3 to 0.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Ecxel it could look like this:&lt;/P&gt;&lt;P&gt;=IF(AND(Left-Right&amp;gt;=-0.3; Left-Right &amp;lt;=0.3);"Yes"; "Shape") So this brings a Yes if my calculation is between -0.3 and 0.3.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 11:17:54 GMT</pubDate>
    <dc:creator>KennethLindhardt</dc:creator>
    <dc:date>2014-10-02T11:17:54Z</dc:date>
    <item>
      <title>How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661280#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to explain this, and hopefully it will make sense &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I got a building building height left and a building height right. Since they are delivered from Lidar, those are not completely equal, but can vary with 0.3 m for a gable roof. What I would like to do is to get the color “red” if left and right minus each other has a range from -0.3 to 0.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Ecxel it could look like this:&lt;/P&gt;&lt;P&gt;=IF(AND(Left-Right&amp;gt;=-0.3; Left-Right &amp;lt;=0.3);"Yes"; "Shape") So this brings a Yes if my calculation is between -0.3 and 0.3.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661280#M8765</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-10-02T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661281#M8766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your data look that you are evaluating ?&lt;/P&gt;&lt;P&gt;Is it geometry ?&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited &lt;/SPAN&gt;&lt;BR /&gt; &lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.garsdaledesign.co.uk/" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661281#M8766</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-10-02T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661282#M8767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is attribute values on a building footprint. I got left, right, front, back, center height. If left, right front, back height is between a small range, but the center height is 2 m above, I would know that this is a roofHip. If let’s say left, right and center is between a small height range, but front and back is 2 m below, then we have a roofGable.&lt;/P&gt;&lt;P&gt;In that way I need to set up a rule that take all these different combinations and equal a roof type, which would be straight forward if my Lidar height left, right and so on had the exact same height, but they of course got a little variation&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661282#M8767</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-10-02T11:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661283#M8768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rint function will round up and down, and will then be able to calculate the roof form. So I’m ready to move forward again. This seems a lot easier to do it like that, instead of writing it in a rule. &lt;/P&gt;&lt;P&gt;I started out by filed calculation in ArcMAP, whit gave me the idea, and a little searching in the help file got me going, then I can maintain my original attributes, and don’t have to get 5 more object attributes inside CityEngine &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 13:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661283#M8768</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-10-02T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661284#M8769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course that didn’t work, since I could have a value with 2.499 that would go to 2 and 2.501 would go to 3 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 14:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661284#M8769</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-10-02T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661285#M8770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the late reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, you can encode such heuristics in CGA, but that's a bit complicated..&lt;/P&gt;&lt;P&gt;before going on with this, did you find a solution yet ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;-----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.garsdaledesign.co.uk/" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661285#M8770</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-10-10T09:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a value between two object attributes within a range</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661286#M8771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt. That’s perfectly fine, I’ve been busy anyway. Yes this is kinda still an issue to me, but at this point I have no idea if it would ever work, since I do not have the right data to test it on. I think I’ve solved my own question, but it seems to be a long way around. I sat up to two allowed differences. 0.3 and -0.3, then I could take the left_H – Right_H &amp;lt; Dif_1(0.3) &amp;amp;&amp;amp; left_H – Right_H &amp;gt;Dif_2 (-0.3) Then all the other calculations…. If front and back are above 1 m from right and left, create a gable roof. Well because I had&amp;nbsp; 5 pionts to calculate on, and the Lidar data was not giving me some prober information, I had to many wrong heights on my points, that meaning I had to many calculations. If Right_H was 0 I had to go another way, if center was hitting a chimney, take that one out of the calculation, and so on. So probably I need to read up on my math skills, and get some better Lidar data before I continue.&lt;/P&gt;&lt;P&gt;This is still interesting to me, and I will get back to the threat at some point, but I don’t want to load any work on you on this one by now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2014 19:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-calculate-a-value-between-two-object/m-p/661286#M8771</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-10-12T19:41:31Z</dc:date>
    </item>
  </channel>
</rss>

