<?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: Question about Expressions in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235936#M30324</link>
    <description>I don't see anything obviously wrong:&lt;BR /&gt;
&lt;BR /&gt;
so - a couple of points that I'll go back over.&lt;BR /&gt;
&lt;BR /&gt;
'Building Material' is a string so there is no reason to convert it. Should work as is. i assume the data type is defined as string?  Probably Building Material it is not available for the element and style of wall you  are trying to attach -- it's not available for complex profiles.&lt;BR /&gt;
Check for a yellow info tag. If it is not present everything is OK and the problem is either that your classifications are not correct or the property Building Material is not available for the element you are testing. &lt;BR /&gt;
&lt;BR /&gt;
That's why i asked what element you are try to use this expression for -- So I  could test it for you.&lt;BR /&gt;
&lt;BR /&gt;
one point -- You should use the old classification 21 classes - 22 seems to have some problems.&lt;BR /&gt;
Also select the element the before hand and then use the evaluate button -- that will tell you the error and what to look for?</description>
    <pubDate>Mon, 20 Aug 2018 15:46:09 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2018-08-20T15:46:09Z</dc:date>
    <item>
      <title>Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235933#M30321</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;&lt;FONT color="#A9A9A9"&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a sort of code/info to export as a Name in IFC, but I can't use the Building Material in a CONCAT or a TEXTJOIN string...is it possible to do it some way?&lt;BR /&gt;
&lt;BR /&gt;
this is more or less the expression I was trying to create:&lt;/FONT&gt;&lt;/R&gt;&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IF (
ARCHICAD Classification - 22 = "Battiscopa"; 
TEXTJOIN ( " "; TRUE; "Battiscopa"; Building Material; "" 
)
&lt;/PRE&gt;

&lt;FONT color="#000000"&gt;&lt;B&gt;ARCHICAD Classification - 22&lt;/B&gt;&lt;/FONT&gt; and&lt;FONT color="#000000"&gt;&lt;B&gt; Building Material&lt;/B&gt;&lt;/FONT&gt; are extracted from the "Properties and Parameters" button.&lt;BR /&gt;
&lt;BR /&gt;
I tried in a lot of different manners to convert it into a "real string":&lt;BR /&gt;
I created another property with the Building Material to place it in my expression, I inserted it in a SPLITLEFT function and I tried with a lot of functions...but nothing.&lt;BR /&gt;
&lt;BR /&gt;
I think that it's impossible that I can convert a number into a string and use it in a CONCAT but I can't use a property that is a string yet, like Building Material o Composite Structure name, the same way, so I probably went wrong someway...&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance for helping!&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Aug 2018 20:26:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235933#M30321</guid>
      <dc:creator>squall_tmo</dc:creator>
      <dc:date>2018-08-19T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235934#M30322</link>
      <description>There is not sufficient info to determine a problem, but you might check the following:&lt;BR /&gt;
&lt;BR /&gt;
1. The open and closing () must match -- you are missing a closing )&lt;BR /&gt;
2. Strings are case sensitive unless you select otherwise.&lt;BR /&gt;
3. Your classifications must match for both the expression and the element&lt;BR /&gt;
4. Check that the property 'Build Material' is available for the element in question - its not available for walls. A easy way to check is to enter only the property with the correct data type 'string' -- and use the evaluate button -- look for a error message.&lt;BR /&gt;
5. What element type are you checking?   -- if I know that I could double check your formula&lt;BR /&gt;
6. Properties must be entered via the dropdown icon not directly typed in. Check that their highlighted in gray?&lt;BR /&gt;
7. Be sure your separator for your version is ; and not ,</description>
      <pubDate>Mon, 20 Aug 2018 00:31:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235934#M30322</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2018-08-20T00:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235935#M30323</link>
      <description>&lt;FONT color="#696969"&gt;Dear Gerry,&lt;BR /&gt;
Many thanks for answering!&lt;BR /&gt;
&lt;BR /&gt;
the real code is the following (but it's little difficult to write it in an understandable way...)&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#1E90FF"&gt;TEXTJOIN (&lt;BR /&gt;
 ""; TRUE; &lt;BR /&gt;
&lt;BR /&gt;
IF ( {Property:ClassificationSystemPropertyDefinitionGroup/Classificazione ARCHICAD - 22} = "Battiscopa" ; &lt;BR /&gt;
TEXTJOIN ( " "; TRUE; "Battiscopa"; {Property:Parametri Generali/Materiale da Costruzione} ); &lt;BR /&gt;
"" ); &lt;BR /&gt;
&lt;BR /&gt;
IF (&lt;BR /&gt;
{Property:ClassificationSystemPropertyDefinitionGroup/Classificazione ARCHICAD - 22} = "Muro"; &lt;BR /&gt;
{Property:Parametri Generali/Struttura Composta}; "" ) &lt;BR /&gt;
)&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
I tried to make it a little easier to understand by changing color to the properties I took from the "Parameters and Properties" button (anyway by coping and pasting the code above in an Italian version of ARCHICAD  you should obtain the correct properties connections)&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#1E90FF"&gt;TEXTJOIN (&lt;BR /&gt;
 ""; TRUE; &lt;BR /&gt;
&lt;BR /&gt;
IF ( &lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:ClassificationSystemPropertyDefinitionGroup/Classificazione ARCHICAD - 22}&lt;/B&gt;&lt;/FONT&gt; = "Battiscopa" ; &lt;BR /&gt;
TEXTJOIN ( " "; TRUE; "Battiscopa"; &lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:Parametri Generali/Materiale da Costruzione}&lt;/B&gt;&lt;/FONT&gt; ); &lt;BR /&gt;
"" ); &lt;BR /&gt;
&lt;BR /&gt;
IF (&lt;BR /&gt;
&lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:ClassificationSystemPropertyDefinitionGroup/Classificazione ARCHICAD - 22}&lt;/B&gt;&lt;/FONT&gt; = "Muro"; &lt;BR /&gt;
&lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:Parametri Generali/Struttura Composta}&lt;/B&gt;&lt;/FONT&gt;; "" ) &lt;BR /&gt;
)&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
Everything works correctly once that I replace &lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:Parametri Generali/Materiale da Costruzione}&lt;/B&gt;&lt;/FONT&gt; and &lt;FONT color="#0000CD"&gt;&lt;B&gt;{Property:Parametri Generali/Struttura Composta}&lt;/B&gt;&lt;/FONT&gt; with a simple string, for example "A" and "B"...&lt;BR /&gt;
So my problem is that I don't know how to convert them into "true" strings!&lt;BR /&gt;
&lt;BR /&gt;
Many thanks again!&lt;/FONT&gt;</description>
      <pubDate>Mon, 20 Aug 2018 14:54:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235935#M30323</guid>
      <dc:creator>squall_tmo</dc:creator>
      <dc:date>2018-08-20T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235936#M30324</link>
      <description>I don't see anything obviously wrong:&lt;BR /&gt;
&lt;BR /&gt;
so - a couple of points that I'll go back over.&lt;BR /&gt;
&lt;BR /&gt;
'Building Material' is a string so there is no reason to convert it. Should work as is. i assume the data type is defined as string?  Probably Building Material it is not available for the element and style of wall you  are trying to attach -- it's not available for complex profiles.&lt;BR /&gt;
Check for a yellow info tag. If it is not present everything is OK and the problem is either that your classifications are not correct or the property Building Material is not available for the element you are testing. &lt;BR /&gt;
&lt;BR /&gt;
That's why i asked what element you are try to use this expression for -- So I  could test it for you.&lt;BR /&gt;
&lt;BR /&gt;
one point -- You should use the old classification 21 classes - 22 seems to have some problems.&lt;BR /&gt;
Also select the element the before hand and then use the evaluate button -- that will tell you the error and what to look for?</description>
      <pubDate>Mon, 20 Aug 2018 15:46:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235936#M30324</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2018-08-20T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235937#M30325</link>
      <description>Many thanks Gerry!&lt;BR /&gt;
&lt;BR /&gt;
I modified a little both classification systems, 21 and 22, to add the "Battiscopa" classification (that in english sounds like "Skirting"), so they aren't exactly the originals.&lt;BR /&gt;
&lt;BR /&gt;
I created a skirting with the Wall tool and I assigned it the "Battiscopa" classification in both systems.&lt;BR /&gt;
&lt;BR /&gt;
I selected it and I opened the Property Manager and I tried to make the script a little more complete inserting an "OR" statement to include both classification systems.&lt;BR /&gt;
&lt;BR /&gt;
the result is something like Picture01.jpg&lt;BR /&gt;
&lt;BR /&gt;
The script didn't report any error, but the result was "---" (as in Picture02.jpg).&lt;BR /&gt;
&lt;BR /&gt;
So I tried to replace Building Material and Composite Structure with two simple strings: "_A_" and "_B_" (see Picture03.jpg). &lt;BR /&gt;
ARCHICAD answer correctly in this case (I cannot place other pictures but when I evaluate the value of the expression, the answer is "Battiscopa _A_", that is the right answer).&lt;BR /&gt;
&lt;BR /&gt;
I created a similar rule for "wall" and "slab" classification (to try with the standard Classification System) in a new file simply placing a wall and a slab and I obtained the very same result...so maybe Building Material and Composite Structure cannot be used in this kind of statement?</description>
      <pubDate>Tue, 28 Aug 2018 12:47:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235937#M30325</guid>
      <dc:creator>squall_tmo</dc:creator>
      <dc:date>2018-08-28T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235938#M30326</link>
      <description>I don't see any errors in your expressions which would indicate a problem with availability-- but a couple of points.&lt;BR /&gt;
&lt;BR /&gt;
Building material is only available for 'basic' walls or slabs, Composite Structure for 'composites'&lt;BR /&gt;
complex profiles for a 'complex profile' wall or slab.&lt;BR /&gt;
&lt;BR /&gt;
Also note that if ANY property in your expression is invalid (unavailable) the expression will not be evaluated even if the unavailable properties are not reached in your expression. A unavailable property anywhere renders the whole expression unavailable. Therefore you can not have both a 'building material' return value and a 'composite' in the same expression because the object is always one or the other.&lt;BR /&gt;
&lt;BR /&gt;
You would have to do this with separate expression statements  in a sequence. Archicad will only execute the applicable expression for the linked object in a sequence.&lt;BR /&gt;
&lt;BR /&gt;
EDIT: it appears that you just want to return the material skin -- so the sequence would simply be as follows. The classification logicals are not needed if the expression classification is set appropriately. Archicad will only apply to elements with the same classification. See attachment jpeg</description>
      <pubDate>Wed, 29 Aug 2018 02:17:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Question-about-Expressions/m-p/235938#M30326</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2018-08-29T02:17:25Z</dc:date>
    </item>
  </channel>
</rss>

