<?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: Error handling for unclassified elements in Documentation</title>
    <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370149#M55531</link>
    <description>&lt;P&gt;The solution is in your last sentence already.&lt;/P&gt;
&lt;P&gt;You don't need to explicitly test for some classification. If the expression can't be evaluated (e.g. because one element does not have this property), it will be skipped. But please bear in mind: you can add as many expressions as wanted. AC will take the first applicable one. In this example if some element does not have "some property", it will just get a static "foo" applied. Cool, huh?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2023-02-09 um 15.46.53.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/34185i5EF6888F6CF140EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2023-02-09 um 15.46.53.png" alt="Bildschirmfoto 2023-02-09 um 15.46.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 14:48:27 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2023-02-09T14:48:27Z</dc:date>
    <item>
      <title>Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370066#M55517</link>
      <description>&lt;P&gt;Is there a way to test for an unclassified element in a Property Expression, and return an empty string instead of a #hashtag?&amp;nbsp; A similar Excel formula would be "=ISNA()"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g. we are concatenating our wall label from multiple properties to have one label that has (for example), the wall type, the fire rating, the acoustic rating etc.&amp;nbsp; One of these is "Wall Core", which is only available for the "Solid Wall" classification.&amp;nbsp; However, we also have labels attached to walls that are classified as "Partition Wall", which result in a #hashtag error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can tell, if the Property isn't available, then the expression doesn't even run.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:41:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370066#M55517</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-02-08T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370149#M55531</link>
      <description>&lt;P&gt;The solution is in your last sentence already.&lt;/P&gt;
&lt;P&gt;You don't need to explicitly test for some classification. If the expression can't be evaluated (e.g. because one element does not have this property), it will be skipped. But please bear in mind: you can add as many expressions as wanted. AC will take the first applicable one. In this example if some element does not have "some property", it will just get a static "foo" applied. Cool, huh?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2023-02-09 um 15.46.53.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/34185i5EF6888F6CF140EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2023-02-09 um 15.46.53.png" alt="Bildschirmfoto 2023-02-09 um 15.46.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:48:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370149#M55531</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-02-09T14:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370190#M55539</link>
      <description>&lt;P&gt;Thanks runxel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although this would work for one, maybe two combined properties, we have five or six, with either an "N/A", or the value.&amp;nbsp; The end result would look something like:&lt;/P&gt;
&lt;P&gt;WT1 | CRC1 | 30/30/30 | RW45 | R3.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where if any of those values were "N/A", they wouldn't appear in the final concatenated property.&amp;nbsp; It's a long CONCAT statement, with heaps of nested IF statements, e.g. IF(CORE TYPE = "N/A", "", (CONCAT CORE TYPE, "|")).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We could get around it with a proxy property to test, but this introduces new properties, and all properties create processing overhead which has significant impact on larger projects.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 21:17:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370190#M55539</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-02-09T21:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370192#M55540</link>
      <description>&lt;P&gt;Okay I can see that this produces some overhead for larger concatenated properties.&lt;/P&gt;
&lt;P&gt;I have the same thing going on for fire safety properties. But since I might need the parts for themself anyway I have them seperate. I really don't care, I was not able to see any performance drops so far with having a few more properties.&lt;/P&gt;
&lt;P&gt;So a workaround for you would be to split your one big property into its constituting parts and having a "fallback". Could be e.g. a special character, which you then use to test for (instead of your "N/A").&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 22:40:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370192#M55540</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-02-09T22:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370208#M55543</link>
      <description>&lt;P&gt;Yes, we do have our properties split out, as you've described.&amp;nbsp; "N/A" is our 'special' character...but if the property isn't in the classification, it can't produce even the special character to test for.&amp;nbsp; This is the problem we're running into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be solved if we could test for a null value. e.g. ISNULL.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:25:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370208#M55543</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-02-10T00:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370209#M55544</link>
      <description>&lt;P&gt;Have you tried empty quotes "".&lt;/P&gt;
&lt;P&gt;This is a null string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:30:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370209#M55544</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-02-10T00:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370218#M55546</link>
      <description>&lt;P&gt;Good idea Barry.&amp;nbsp; Unfortunately, no, that didn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 01:26:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370218#M55546</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-02-10T01:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling for unclassified elements</title>
      <link>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370252#M55548</link>
      <description>&lt;P&gt;Yeah you're right Bruce, sorry.&lt;/P&gt;
&lt;P&gt;My suggestion doesn't help when the whole property is not available.&lt;/P&gt;
&lt;P&gt;The other workaround still works. But I see it is cumbersome to generate all versions, especially when every one of the parts could be missing. This would like 5! (=120) versions? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So yeah, valid wish.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 09:43:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Error-handling-for-unclassified-elements/m-p/370252#M55548</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-02-10T09:43:27Z</dc:date>
    </item>
  </channel>
</rss>

