Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Scripting question > bgcolor from parameter value

Mats_Knutsson
Advisor
Anyone clever knows how to color the label bg color depending on a value from an IFC-property I have a ton of cool uses for this but I don't have a ton of gdl-skills.
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
5 REPLIES 5
Barry Kelly
Moderator
As far as I know GDL has no way of reading IFC values.

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
Mats_Knutsson
Advisor
Barry wrote:
As far as I know GDL has no way of reading IFC values.

Barry.
ouch
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
alemanda
Advocate
Are you sure Barry?
How does the category label read IFC values and report them?
Is it hard coded label object?
AC27 latest hotfix

Win 10 Pro 64bit

Double XEON 14 CORES (tot 28 physical cores)

32GB RAM - SSD 256GB - Nvidia Quadro K620

Display DELL 25'' 2560x1440

www.almadw.it
Laszlo Nagy
Community Admin
Community Admin
Apparently, this is possible in GDL:

http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-12-miscellaneous/application-query-options/#idm...

If you look into the Tags and Categories Label's script, these GDL commands are used in one of its macros to get those parameters and their values.
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
Barry Kelly
Moderator
alemanda wrote:
Are you sure Barry?
How does the category label read IFC values and report them?
Is it hard coded label object?
My bad sorry.
Looks like you can read the values as Laszlo suggested (can't say I have tried).

I hope it is not like the Project Info where you can read and display the value but you can't actually use it because it is only an autotext value.

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