<?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 to convert Story Number to Letter in Documentation</title>
    <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/598765#M63516</link>
    <description>&lt;OL&gt;
&lt;LI&gt;I created an empty file with a few storeys (-12 to 13)&lt;/LI&gt;
&lt;LI&gt;added the expression as a property available to every classification&lt;/LI&gt;
&lt;LI&gt;placed an element (wall for example) on each storey&lt;/LI&gt;
&lt;LI&gt;created an &lt;A href="https://help.graphisoft.com/AC/26/INT/index.htm#t=_AC26_Help%2F050_ViewsVB%2F050_ViewsVB-89.htm" target="_blank" rel="noopener"&gt;interactive schedule&amp;nbsp;&lt;/A&gt;
&lt;UL&gt;
&lt;LI&gt;criteria set to fit those placed elements&lt;/LI&gt;
&lt;LI&gt;fields are HomeStoreyNumber and the property containing the expression&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;if number of elements per storey is bigger than 1 (for example if this schedule is created in an already existing project), use the option to &lt;A href="https://help.graphisoft.com/AC/26/INT/index.htm#t=_AC26_Help%2F050_ViewsVB%2F050_ViewsVB-102.htm" target="_blank" rel="noopener"&gt;merge the scheduled items&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 11 Apr 2024 06:54:10 GMT</pubDate>
    <dc:creator>Xandros</dc:creator>
    <dc:date>2024-04-11T06:54:10Z</dc:date>
    <item>
      <title>Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597547#M63439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dabbling in Expressions. I'd like to convert the Story Number to a Letter for some storeys, and others to remain unchanged i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Story Number 0 converts to B2&lt;/P&gt;&lt;P&gt;Story Number 1 converts to B1&lt;/P&gt;&lt;P&gt;Story Number 2 converts to G&lt;/P&gt;&lt;P&gt;Story Number 3 (and above) unchanged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have worked out how to change 0, 1, and 2 to B2, B1, and G, but can't work out how to return the Story Numbers above this as unchanged. When I evaluate something on Story Number 4, "Evaluate..." returns &amp;lt;Undefined&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the expression :&amp;nbsp;&lt;/P&gt;&lt;P&gt;IFS (&lt;/P&gt;&lt;P&gt;CONTAINS ( "1", STR ( {Property:General Parameters/Home Story Number} ) ), "B2",&lt;/P&gt;&lt;P&gt;CONTAINS ( "2", STR ( {Property:General Parameters/Home Story Number} ) ), "B1",&lt;/P&gt;&lt;P&gt;CONTAINS ( "3", STR ( {Property:General Parameters/Home Story Number} ) ), "G" )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou &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;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 03:50:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597547#M63439</guid>
      <dc:creator>jimmynimmy</dc:creator>
      <dc:date>2024-04-04T03:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597551#M63440</link>
      <description>&lt;P&gt;Can't you just give the storeys a name and use that?&lt;/P&gt;
&lt;P&gt;Or do you need a different name for other purposes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 04:43:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597551#M63440</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-04-04T04:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597560#M63441</link>
      <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We give the storeys intuitive names like Ground, Level 1, Level 2, Roof&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create unique codes for Doors + Windows in Apartment / Room Modules we include the Story Number in the Label. Using the storey name would be too long... a short code is needed. These codes becomes a bit confusing when the tag displays 0 for Ground, -1 for B1 or -2 for B2 for example - so trying to do above conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well, sometimes our Story Numbers don't relate i.e. Level 7 may be on Story Number 5 - we use some arithmetic operators in the Expression so the code in the door relates to the storey it is on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are your thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 05:04:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597560#M63441</guid>
      <dc:creator>jimmynimmy</dc:creator>
      <dc:date>2024-04-04T05:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597562#M63442</link>
      <description>&lt;P&gt;If you are not using the intuitive names for anything, I would just change them to G, B1, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise in your expression, you would have to convert all of the other storey numbers to text as well, 4 = "4" , 5 = "5".&lt;/P&gt;
&lt;P&gt;i.e. continue your IFS statement ... CONTAINS ( "4", STR ( {Property:General Parameters/Home Story Number} ) ), "4"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will only work in this case up to 9 storeys.&lt;/P&gt;
&lt;P&gt;Storey 10 will also be evaluated as "B2" because it contains "0".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 05:24:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597562#M63442</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-04-04T05:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597566#M63443</link>
      <description>&lt;P&gt;We typically name views by the Project Map, so these names become visible in Titles and is clearer as full name..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmm OK - was hoping that was not the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no way to do something like... apply this expression for B1, B2, G but for all others just print the Home Story Number? Can the Sequence function be used in any way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 05:30:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597566#M63443</guid>
      <dc:creator>jimmynimmy</dc:creator>
      <dc:date>2024-04-04T05:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597568#M63444</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/111028"&gt;@jimmynimmy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is no way to do something like... apply this expression for B1, B2, G but for all others just print the Home Story Number? Can the Sequence function be used in any way?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not really.&lt;/P&gt;
&lt;P&gt;You are creating a 'string' property for storeys 0, 1 &amp;amp; 2 (B1, B2 &amp;amp; G).&lt;/P&gt;
&lt;P&gt;So you will need to also convert all the other storeys to also have the same string property equivalent.&lt;/P&gt;
&lt;P&gt;Even though it will look like a number, it will be a 'string' (text version) of that number.&lt;/P&gt;
&lt;P&gt;You will need to do the conversion for each storey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 05:37:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597568#M63444</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-04-04T05:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597660#M63447</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;you could try the following addition to your expression to achieve a result.&lt;BR /&gt;But have a look at the screenshot below for the outcome and change your expression accordingly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IFS (&lt;BR /&gt;CONTAINS ( "1", STR ( {Property:General Parameters/Home Story Number} ) ), "B2",&lt;BR /&gt;CONTAINS ( "2", STR ( {Property:General Parameters/Home Story Number} ) ), "B1",&lt;BR /&gt;CONTAINS ( "3", STR ( {Property:General Parameters/Home Story Number} ) ), "G",&lt;BR /&gt;&lt;STRONG&gt;TRUE, STR ( {Property:General Parameters/Home Story Number}, 0 )&lt;/STRONG&gt; )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&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="Xandros_0-1712222690307.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58487i696E03CB3FDEA232/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Xandros_0-1712222690307.png" alt="Xandros_0-1712222690307.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 09:28:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597660#M63447</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2024-04-04T09:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597684#M63448</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Here is another formula possibility using the floor number directly&lt;/P&gt;
&lt;P&gt;Sorry formula in French&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IFS ( {Property:Paramètres généraux/Numéro d'étage d'implantation} = 0; "B2"; {Property:Paramètres généraux/Numéro d'étage d'implantation} = 1; "B1"; {Property:Paramètres généraux/Numéro d'étage d'implantation} = 2; "G"; OR ( {Property:Paramètres généraux/Numéro d'étage d'implantation} &amp;lt; 0; {Property:Paramètres généraux/Numéro d'étage d'implantation} &amp;gt; 2 ); STR ( {Property:Paramètres généraux/Numéro d'étage d'implantation}; 0 ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:47:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/597684#M63448</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2024-04-04T10:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/598709#M63511</link>
      <description>&lt;P&gt;Thanks everyone..&lt;BR /&gt;&lt;BR /&gt;I ended up doing below, where Storey 3 here is Ground :&lt;BR /&gt;&lt;BR /&gt;CONCAT ( IFS ( {Property:General Parameters/Home Story Number} = 3, "G", AND ( 3 &amp;lt; {Property:General Parameters/Home Story Number}, {Property:General Parameters/Home Story Number} &amp;lt; 13 ), CONCAT ( "L0", LEFT ( RIGHT ( STR ( {Property:General Parameters/Home Story Number} - 3 ), 4 ), 1 ) ), {Property:General Parameters/Home Story Number} &amp;gt;= 13, CONCAT ( "L", STR ( {Property:General Parameters/Home Story Number} - 3, 0 ) ), {Property:General Parameters/Home Story Number} &amp;lt; 3, CONCAT ( "B0", LEFT ( RIGHT ( STR ( {Property:General Parameters/Home Story Number} - 3 ), 4 ), 1 ) ) ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works more generally, so anything above Storey 3 will include an L infront. Storey 3 will be called G. And anything below will include a B infront (but only works to B09)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/64945"&gt;@Xandros&lt;/a&gt;&amp;nbsp;How did you create that table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 23:26:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/598709#M63511</guid>
      <dc:creator>jimmynimmy</dc:creator>
      <dc:date>2024-04-10T23:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to convert Story Number to Letter</title>
      <link>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/598765#M63516</link>
      <description>&lt;OL&gt;
&lt;LI&gt;I created an empty file with a few storeys (-12 to 13)&lt;/LI&gt;
&lt;LI&gt;added the expression as a property available to every classification&lt;/LI&gt;
&lt;LI&gt;placed an element (wall for example) on each storey&lt;/LI&gt;
&lt;LI&gt;created an &lt;A href="https://help.graphisoft.com/AC/26/INT/index.htm#t=_AC26_Help%2F050_ViewsVB%2F050_ViewsVB-89.htm" target="_blank" rel="noopener"&gt;interactive schedule&amp;nbsp;&lt;/A&gt;
&lt;UL&gt;
&lt;LI&gt;criteria set to fit those placed elements&lt;/LI&gt;
&lt;LI&gt;fields are HomeStoreyNumber and the property containing the expression&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;if number of elements per storey is bigger than 1 (for example if this schedule is created in an already existing project), use the option to &lt;A href="https://help.graphisoft.com/AC/26/INT/index.htm#t=_AC26_Help%2F050_ViewsVB%2F050_ViewsVB-102.htm" target="_blank" rel="noopener"&gt;merge the scheduled items&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 11 Apr 2024 06:54:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Expression-to-convert-Story-Number-to-Letter/m-p/598765#M63516</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2024-04-11T06:54:10Z</dc:date>
    </item>
  </channel>
</rss>

