<?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: Need help with an Expression in Project data &amp; BIM</title>
    <link>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329717#M12617</link>
    <description>&lt;P&gt;In metric, you could just add 0.5 to the value and get the Integer part of it with the ROUNDDOWN operator.&lt;/P&gt;
&lt;P&gt;So if the value is between 0.00 to 0.4999999, you add 0.5, it will be between 0.50 to 0.9999999, and so its integer will be 0.&lt;/P&gt;
&lt;P&gt;If the value is between 0.50 to 0.9999999, you add 0.5, it will be between 1.00 to 1.4999999, and so its integer will be 1.&lt;/P&gt;
&lt;P&gt;I guess this could be applied to imperial as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 12:37:49 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2022-02-11T12:37:49Z</dc:date>
    <item>
      <title>Need help with an Expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329259#M12614</link>
      <description>&lt;DIV class=""&gt;I’m trying to set up an expression to join properties “Lenght (a)” and “Width” of an object, but I can’t figure out how to get the rounding correctly. Any help would be greatly appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What I want to do:&lt;/STRONG&gt;&amp;nbsp;Add an auto-text Label that returns the size of the OOTB wood stud object (DET_STUD 25) so that it shows 2x6, 2x8, 2x12 by picking up the “Lenght (a)” and “Width” and rounding them up.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt; It works great with any stud that ends in 1/2" actual size ( 2x2, 2x4, 2x6), but studs over 2x8 which the actual size ends in 1/4" get automatically rounded down instead of up. Archicad will return the “Lenght (a)” and “Width” properties as nominal size in the following format: #'-#" so the numbers are already rounded when they go into the expression. I have wasted more time than I want to admit trying to get this to work and&amp;nbsp;I keep getting incorrect data type error messages.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;(See screenshots below)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The simple expression with which I started:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stud Expression.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18882iC66CE8E4602BBD6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stud Expression.png" alt="Stud Expression.png" /&gt;&lt;/span&gt;
&lt;P&gt; I have also tried replacing &lt;FONT color="#0000FF"&gt;STRCALCUNIT( )&lt;/FONT&gt; with &lt;FONT color="#0000FF"&gt;STR( Width / 1 in)&amp;nbsp;&lt;/FONT&gt;to no avail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Below is where I see the expression heading;&amp;nbsp; I want to be able to show (2) 2x# when changing from Single to Double, 2 digits if stud Width is greater than&amp;nbsp;7", or 1 digit if stud width is Less than 7".&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stud Expression-multiple functions.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18884i5A0513613CB0DDDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stud Expression-multiple functions.png" alt="Stud Expression-multiple functions.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;Pink text is the expression inside of an auto-text label.&lt;BR /&gt;you can see how it's currently working for the top and bottom objects but not the middle one that ends in 1/4"&lt;BR /&gt;
&lt;P&gt; &lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example of autotext.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18885i8B0B42496303ECD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Example of autotext.png" alt="Example of autotext.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example of autotext.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30245i39ED0E27F03EBE49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example of autotext.png" alt="Example of autotext.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 10:19:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329259#M12614</guid>
      <dc:creator>mi_jan</dc:creator>
      <dc:date>2025-01-30T10:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with an Expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329264#M12615</link>
      <description>&lt;P&gt;As you noted, this is not an issue of rounding since there is no way to "round" 11 1/4" to be 12". &amp;nbsp;You are fighting with the north american nominal vs milled size of lumber which doesn't satisfy any mathematical formula. &amp;nbsp; You can either do a table lookup process... or as you suggest in one of your screenshots, do a 'hack' that recognizes that you have to handle lengths greater than 8 by doing something weird like adding ½" and then rounding the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 23:06:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329264#M12615</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2022-02-07T23:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with an Expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329269#M12616</link>
      <description>&lt;P&gt;Simple rounding will round up or down as required.&lt;/P&gt;
&lt;P&gt;However look at the available functions and you will see there are special round up/down functions as well as ones that can round to a multiple (i.e. in metric system timber is ordered in lengths of 300mm).&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="BarryKelly_0-1644281474581.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18889i629748362CFDD041/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1644281474581.png" alt="BarryKelly_0-1644281474581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 00:51:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329269#M12616</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-02-08T00:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with an Expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329717#M12617</link>
      <description>&lt;P&gt;In metric, you could just add 0.5 to the value and get the Integer part of it with the ROUNDDOWN operator.&lt;/P&gt;
&lt;P&gt;So if the value is between 0.00 to 0.4999999, you add 0.5, it will be between 0.50 to 0.9999999, and so its integer will be 0.&lt;/P&gt;
&lt;P&gt;If the value is between 0.50 to 0.9999999, you add 0.5, it will be between 1.00 to 1.4999999, and so its integer will be 1.&lt;/P&gt;
&lt;P&gt;I guess this could be applied to imperial as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 12:37:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Need-help-with-an-Expression/m-p/329717#M12617</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2022-02-11T12:37:49Z</dc:date>
    </item>
  </channel>
</rss>

