<?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 Changing Property Value by Changing Property Option. in Project data &amp; BIM</title>
    <link>https://community.graphisoft.com/t5/Project-data-BIM/Changing-Property-Value-by-Changing-Property-Option/m-p/360577#M9589</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need some help. I'm trying to make an expression based property that changes it's value if I change a value from an option set property. I have an option set 'Unit' with options; (M2, M3, M, KG, Item) and another property 'Quantity'. I'd want when I change the "Unit" option to 'M2', for example, The "Quantity" value reads the Area of an element, and if I change to 'M3', the "Quantity" value reads the Volume of the element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BensonOgayo_0-1667211389579.png" style="width: 801px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31200iD7BD3BCA848B13C2/image-dimensions/801x523?v=v2" width="801" height="523" role="button" title="BensonOgayo_0-1667211389579.png" alt="BensonOgayo_0-1667211389579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll appreciate your feedbacks. Kind regards.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 04:21:54 GMT</pubDate>
    <dc:creator>Benson Ogayo</dc:creator>
    <dc:date>2024-12-11T04:21:54Z</dc:date>
    <item>
      <title>Changing Property Value by Changing Property Option.</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Changing-Property-Value-by-Changing-Property-Option/m-p/360577#M9589</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need some help. I'm trying to make an expression based property that changes it's value if I change a value from an option set property. I have an option set 'Unit' with options; (M2, M3, M, KG, Item) and another property 'Quantity'. I'd want when I change the "Unit" option to 'M2', for example, The "Quantity" value reads the Area of an element, and if I change to 'M3', the "Quantity" value reads the Volume of the element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BensonOgayo_0-1667211389579.png" style="width: 801px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31200iD7BD3BCA848B13C2/image-dimensions/801x523?v=v2" width="801" height="523" role="button" title="BensonOgayo_0-1667211389579.png" alt="BensonOgayo_0-1667211389579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll appreciate your feedbacks. Kind regards.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 04:21:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Changing-Property-Value-by-Changing-Property-Option/m-p/360577#M9589</guid>
      <dc:creator>Benson Ogayo</dc:creator>
      <dc:date>2024-12-11T04:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Property Value by Changing Property Option.</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Changing-Property-Value-by-Changing-Property-Option/m-p/360716#M9590</link>
      <description>&lt;P&gt;I would use "IFS" statement and start working the expression around that. Also the data type of the expression I would keep as "string" because there are multiple different types of data that expression must be able to handle with one script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the idea. First "Unit=xx" is a logical condition and second is the&amp;nbsp;the retrieved value determined by the logical condition. Just add other unit types to end of the IFS-script with the&amp;nbsp; same way as m² and m³.&amp;nbsp; Also use STRCALCUNIT to handle retrieved values as a string.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IFS" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31236iA3C460A895934455/image-size/large?v=v2&amp;amp;px=999" role="button" title="IFS.JPG" alt="IFS" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;IFS&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the picture above I also used "concat"-function to join measured value and unit of measurement (as a string) together but that function is not &lt;SPAN&gt;necessary if you don't want to show unit of measurement in the end of the calculated value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-JT&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 08:04:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Changing-Property-Value-by-Changing-Property-Option/m-p/360716#M9590</guid>
      <dc:creator>JT1986</dc:creator>
      <dc:date>2022-11-01T08:04:43Z</dc:date>
    </item>
  </channel>
</rss>

