We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-04-22 04:09 PM
Hi!
We have a klient that wants to have a parameter in the ifc export that is called "IsExternal" and gives a response as "True" or "False" if the object has a position as "Exterior" or "Interior".
I have tried to do this, but I don't get how to do it.
Can you help me?
Kind regards,
Maria
Solved! Go to Solution.
2022-04-25 09:46 AM
Thanks a lot Lazlo! We have done this, but our client wants to have this as a "true" or "false" result. So we need to override the information with a formula. We have tried this but we don't get to work.
Can you help us with this?
Kind regards,
Maria
2022-04-25 09:46 AM
Now I see this! I will try it! thanks a lot!
2022-04-25 09:54 AM
Hi Lazlo, We don't get it to work... do you know why?
2022-04-25 09:59 AM
Hi! I meant objects as "elements", sorry about that!
2022-04-25 10:04 AM
Thanks a lot! I could try this also but it feels that I then have to make sure all the time that the zone is correctly. Don't you think? I guess Lazlos suggestion is a little bit easier...
2022-04-25 11:47 AM
Hi Maria,
I think the problem is not with the Expression, but with the Data Type. It should be set to "String", not "True/False".
In the Expression you say that if "Position" is neither "Exterior" nor "Interior" then the value of the Property is "Undefined". However, a "True/False" Data Type Property can have the value of either "True" or "False". So if you want it to be able to be set to "Undefined" as well then you will have to set it to "String" Data Type.
From the IFC Export point of view it does not matter if this Archicad Property is "True/False" or "String" Data Type, they will both be exported as a text field in IFC.
2022-04-25 02:24 PM
Hi Laszio! Thank you for all the help! We still don't get it to work even if we set it to "String". Do you what the problem could be?
Thank you so much
2022-04-25 02:46 PM - edited 2022-04-25 02:48 PM
Hi Maria,
Did you use the "Position" parameter in the "General Parameters" Group?
You can try to copy-paste the following code into your Expression Window, see if that works (triple-click to select the whole expression).
IF ( {Property:CategoryPropertyDefinitionGroup/Position} = "Exterior", "True", IF ( {Property:CategoryPropertyDefinitionGroup/Position} = "Interior", "False", "Undefined" ) )
Another thing that may cause an issue is the separator character between values in the expression.
Depending on your operating system settings, it may be a , (comma) character or it may be a ; (semicolon) character.
If the above Expression does not work, try to write semicolon instead of commas in the Expression.
You can actually check the expressions in one of the default expression-defined Archicad Properties.
Or you can click the "Operators & Functions" button in the Expression Editor, hover your cursor over the IF function and the little Info Tag will appear that shows the expected format of the function including the separator character that needs to be used.
2022-04-25 03:13 PM
Thank you so much Laszlo! Changing to semicolon did the trick
2022-04-25 05:04 PM
Glad we managed to work it out. 🙂