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

GDL
About building parametric objects with GDL.

GDL: Surface Override Parameter

Lingwisyer
Guru

Hi all,

 

Is there some way to access and write back to the Surface Override Parameter?

Lingwisyer_0-1687765750868.png

 

I have ways to override surfaces within my object and I was wanting to link this parameter rather than have it be seperate and override the internal overrides.

Lingwisyer_1-1687765904321.png

 

So the first internal override would be reflected to the external one. And ideally the toggle would be too.

IF GLOB_MODPAR_NAME = "[gs_boverride]" then
	mat_over1 = [gs_boverride]
	mat_1 = [gs_override]
	PARAMETERS [gs_boverride] = [gs_boverride]
	PARAMETERS [gs_override] = [gs_override]
endIF

IF GLOB_MODPAR_NAME = "mat_over1" then
	[gs_boverride] = mat_over1
	[gs_override] = mat_1
	PARAMETERS mat_over1 = mat_over1
	PARAMETERS mat_1 = mat_1
endIF

 

 

Ling.

 

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 REPLY 1
Barry Kelly
Moderator

I know SYMB_MAT is the material for the override, but I am not sure if you can determine if the override is active or not.

 

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