Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Properties Checker

daviiiiidave
Advocate
Moin guys,

im trying to make a Properties Checker.
It sounds more fancy then it is.
e.g. Window Object with 2 different properties. Lets say it is Test1 (Option-List: Information; Note) and Test 2 (Option-List: Information: Note).

Now i wanna have another property called "All information set?" within an calculation like "IF (( OR (ISUNDEFINED (TEST1); ISUNDEFINED (TEST2) ) "No" "Yes")

Then i wanna make an GO to get a visual feedback.

My Issue is that im new to the property manager and the whole wording and syntax is new to me.

I cant make it work. Where is my mistake? What do i have to read to get this right?

ARCHICAD 19-25, Student & Full Archicard, CI Tools, Germany
Mifcom Renderbox AMD Ryzen 9 5900X GeForce RTX 3070 TI 32GB RAM 980 PRO SSD Win10
Thinkpad P52 4K i7 8850H NVIDIA Quadro P3200 (6 GB) 32 GB RAM SSD Win10 Pro

7 REPLIES 7
Laszlo Nagy
Community Admin
Community Admin
Could you write exactly what property you want to test for what condition? Then we could give you an expression syntax.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
daviiiiidave
Advocate
Actually I'm trying to do this:

I wanna add some properties to the window object. These properties are chosen by the layout the windows maker gave us. Most of them are properties with option-list.
Now I wanna have our team members to put in all properties. For this I need an "property checker". The aim is to get an property which checks if any of the window properties is undefined. If so it should gave back "Döp you have missed something". This property I wanna put in a graphic override and get a visual feedback. e. g. all windows you have forget to put in an property value is red. Keeps being red till all informations have an value

ARCHICAD 19-25, Student & Full Archicard, CI Tools, Germany
Mifcom Renderbox AMD Ryzen 9 5900X GeForce RTX 3070 TI 32GB RAM 980 PRO SSD Win10
Thinkpad P52 4K i7 8850H NVIDIA Quadro P3200 (6 GB) 32 GB RAM SSD Win10 Pro

daviiiiidave
Advocate
In the german forum we found out that "ISUNDEFINED" is not workin properly with the option-list.

Seems its fixed in AC23.

ARCHICAD 19-25, Student & Full Archicard, CI Tools, Germany
Mifcom Renderbox AMD Ryzen 9 5900X GeForce RTX 3070 TI 32GB RAM 980 PRO SSD Win10
Thinkpad P52 4K i7 8850H NVIDIA Quadro P3200 (6 GB) 32 GB RAM SSD Win10 Pro

Laszlo Nagy
Community Admin
Community Admin
Here is what I found: the Expression you stated in your first post should be fine (aside from some syntax issues). However, what I find is that the ISUNDEFINED function works only on Properties with "TRUE/FALSE", "INTEGER" and "NUMBER" Data types.
So, in your case, when the Data Type is "Option Set", the ISUNDEFINED function cannot be evaluated. I think this is either a bug or a limitation.

So, for example, this simple Expression:
IF ( ISUNDEFINED ( {Property:OPENINGS/Fire Exit} ), TRUE, FALSE )
will correctly return "TRUE" when the "Fire Exit" Property is <Undefined>, and return "FALSE" when the "Fire Exit" Property is either TRUE or FALSE (not <Undefined>). The "Fire Exit" Property has the "True/False" Data Type.

However, the following Expression:
IF ( ISUNDEFINED ( {Property:GENERAL RATINGS/Fire Resistance Rating} ), TRUE, FALSE )
will always be evaluated as "FALSE", regardless of whether it is default (Undefined), is set to Undefined, or set to any other value. The "Fire Resistance Rating" Property has the "Option Set" Data Type.


I tend to think it is a bug, because we should be able to tell if any Property is undefined or not, regardless of its Data Type, and that is exactly what the ISUNDEFINED function is for. It should work for all Data Types, not only for numeric Data Types.
So I will report this to GRAPHISOFT for them to look at.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
daviiiiidave
Advocate
Yeah kinda the same issue we found out in the german board. Thanks for reporting and thanks for your time! Hope this is getting fixed

ARCHICAD 19-25, Student & Full Archicard, CI Tools, Germany
Mifcom Renderbox AMD Ryzen 9 5900X GeForce RTX 3070 TI 32GB RAM 980 PRO SSD Win10
Thinkpad P52 4K i7 8850H NVIDIA Quadro P3200 (6 GB) 32 GB RAM SSD Win10 Pro

Laszlo Nagy
Community Admin
Community Admin
Look what I just found in the Release Notes of AC22 build 6000:

https://www.graphisoft.com/downloads/archicad/updates/?localization=INT&type=FULL&version=22
256527 DOCUMENT: ISUNDEFINED function of the Expression-based Properties was not evaluated correctly for Option Set type Properties.

So it seems that in the latest build it will be fixed. It is in Preview state but you can install it if you want.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
daviiiiidave
Advocate
yeah nice! thanks. so it was not intentionally. nice they fixed it.

ARCHICAD 19-25, Student & Full Archicard, CI Tools, Germany
Mifcom Renderbox AMD Ryzen 9 5900X GeForce RTX 3070 TI 32GB RAM 980 PRO SSD Win10
Thinkpad P52 4K i7 8850H NVIDIA Quadro P3200 (6 GB) 32 GB RAM SSD Win10 Pro