<?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: Expression with superscript 5 in Project data &amp; BIM</title>
    <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334274#M12612</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/512"&gt;@agroni&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For some reason my comment got lost! Someone deleted it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For some reason it got caught by the spam filter.&lt;/P&gt;
&lt;P&gt;I have released it now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 16:01:54 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2022-03-31T16:01:54Z</dc:date>
    <item>
      <title>Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/333944#M12608</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an expression to show the height of Elements in stories including the prefix -, ± and +. In one project, we encountered a problem that this expression was not showing the 5mm values as a superscript. If the true value was 2,105m it was rounding it up to 2,11m. The correct display would be 2,10^5.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agroni_0-1648557801860.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/20114i98659F3F4DAF59B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agroni_0-1648557801860.png" alt="agroni_0-1648557801860.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the expression that I have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONCAT ( IF ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ) &amp;gt; 0; "+"; IF ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ) = 0; "±"; "" ) ); IF ( ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ) ) &amp;gt;= 1; STR ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ); 2 ); IF ( ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ) ) = 0; STR ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ); 2 ); IF ( ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ) ) &amp;lt;= - 1; STR ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ); 2 ); STR ( STRTONUM ( STRCALCUNIT ( {Property:Öffnung/Mittlere Höhe zu Projektursprung} ) ); 2 ) ) ) ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here it is a bit better readable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agroni_1-1648558038612.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/20115i56D5F29BBEBB3D67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agroni_1-1648558038612.png" alt="agroni_1-1648558038612.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried 2^5, but it did not work since apparently it is a String. For this reason, I was trying to add the 2^5 to STRCALCUNIT, but without success. Which interpretation has the 2^5 for Archicad (Float, Integer)???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is anyone capable of helping me extend this expression?&lt;/P&gt;
&lt;P&gt;I would be very thankful.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 10:17:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/333944#M12608</guid>
      <dc:creator>agroni</dc:creator>
      <dc:date>2025-01-30T10:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/333951#M12609</link>
      <description>&lt;P&gt;Technically superscript is markup (like bold or itatlic) so there is sadly not direct way to achieve this.&lt;/P&gt;&lt;P&gt;You can cheat however by using a true Unicode superscript 5: "&lt;SPAN class=""&gt;⁵"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This however has one caveat: Some fonts might not have a glyph for this. So use with caution!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:12:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/333951#M12609</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-03-29T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334035#M12610</link>
      <description>&lt;P&gt;The font that I use allows generating a superscript as "&lt;SPAN class=""&gt;⁵", so I don't believe it is a problem of the font.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have another expression in Archicad that can actually do it. It is used for other elements, and it is already long in itself to do the superscript. Embedding this script in my first script will be simply a horror (too long!).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I wanted to know, if there was a possibility to extend my expression, in order to integrate the "⁵".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 08:53:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334035#M12610</guid>
      <dc:creator>agroni</dc:creator>
      <dc:date>2022-03-30T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334265#M12611</link>
      <description>&lt;P&gt;For some reason my comment got lost! Someone deleted it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nontheless, here I go again.&lt;/P&gt;&lt;P&gt;The Font that I am using does allow a superscript, so I would not say it is the problem of the font. There are other expressions that I use and they have the superscript included. Sadly I cannot use those expressions for this particular case.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agroni_0-1648738873030.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/20193i995C56BF38052466/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agroni_0-1648738873030.png" alt="agroni_0-1648738873030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I was researching and in communication with GS Germany, I am coming to a conclusion that this 5mm aspect won't work in Archicad. It is not programmable, or it is exceeding my programming capabilities. This is really sad and a disaster, because we are not capable of documenting the 5mm with labels in our plans.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 15:02:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334265#M12611</guid>
      <dc:creator>agroni</dc:creator>
      <dc:date>2022-03-31T15:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334274#M12612</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/512"&gt;@agroni&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For some reason my comment got lost! Someone deleted it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For some reason it got caught by the spam filter.&lt;/P&gt;
&lt;P&gt;I have released it now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 16:01:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334274#M12612</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-31T16:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with superscript 5</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334294#M12613</link>
      <description>&lt;P&gt;Sorry, but what are you talking about?&lt;/P&gt;&lt;P&gt;While it might not be the easiest thing it is absolutely doable. I don't understand how your conclusion was this would not work in Archicad? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF ( {Property:Allgemeine Parameter/Höhe} &amp;lt; 1,0 m; 
	IF ( RIGHT ( SPLITRIGHT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); ","; 2 ); 1 ) = "0"; 
		LEFT ( SPLITRIGHT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); ","; 2 ); 2 );
		CONCAT ( LEFT ( SPLITRIGHT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); ","; 2 ); 2 ); "⁵" ) );
	IF ( RIGHT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); 1 ) = "0"; 
		LEFT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); 
			LEN ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ) ) - 1 );
		CONCAT (
			LEFT ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ); 
				LEN ( STR ( MROUND ( {Property:Allgemeine Parameter/Höhe} / 1 m; 0,005 ); 3 ) )- 1 );
			"⁵" ) ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to achieve the leading "+" is left as an exercise for the reader.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 20:29:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Expression-with-superscript-5/m-p/334294#M12613</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-03-31T20:29:26Z</dc:date>
    </item>
  </channel>
</rss>

