We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.
SOLVED!

I get stuck on this seemingly simple expression...

Mats Knutsson
Advocate

Hi,

I have properties and want to drive values from combinations of these properties but I can't figure out how to. Any takers?

Br,

Mats2024-11-04_12-02-29.png

 

Operating system used: Windows

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

I am not sure if it is applicable in this case, but I have found depending on the language version of Archicad or maybe your operating system, some need to use semi-colons as expression separators and others need to use commas.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

7 REPLIES 7
runxel
Legend

Hi Mats, if you mean like the little formula beneath try something along the lines of:

 

 

IFS ( 
    AND ( Type="A"; Material="yy";etc..); "100";
    AND ( Type="B"; Material="zz";etc..); "200";
    ...
)

 

 

Hope that helps!

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Nope, tried that.

Yves
Advocate

like this with a number type property

IFS ( AND ( {Property:Généralités/Type} = "A"; {Property:Généralités/Material} = "xx"; {Property:Généralités/Accessory} = "1" ); 100; AND ( {Property:Généralités/Type} = "B"; {Property:Généralités/Material} = "yy"; {Property:Généralités/Accessory} = "1" ); 200 )
Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13

Got it to work. Thanks! Seems like the same code as Lucas suggested. I don't know went wrong earlier...

I get grey hair from the syntax and the editor.... 

Solution

I am not sure if it is applicable in this case, but I have found depending on the language version of Archicad or maybe your operating system, some need to use semi-colons as expression separators and others need to use commas.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

I've got that settled so it was something else. I must have missed something somewhere.

I will write to full expression (it will be quite massive) in a text editor and then paste it into AC.

 

Do note, that the ifs function might have a limit. It does have one in excel and I wouldn't be suprised if it has one in ArchiCAD expressions too.


https://support.microsoft.com/en-GB/office/ifs-function-36329a26-37b2-467c-972b-4a39bd951d45

Xandros_1-1730793825890.png

 

I once had this issue of a massive expression with a few hundred conditions. ArchiCAD performance will suffer noticeably!

If you reach more than the maximum you'll have to get creative on how to implement the expression(s) and how to improve performance again.

ArchiCAD 27 GER / Win10
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti

Setup info provided by author