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

Change Text Parameter

derekjackson
Expert
Hi,
probably a simple one, but I can't get my object's text parameter to update based on a user selection.

I have a text parameter (adb) and have created a selection list using another text parameter (size)

My code, placed in the Master Script, is:
s1 = '20 Litre'
s2 = '70 Litre'
s3 = '90 Litre'
s4 = '100 Litre'
s5 = '120 Litre'

VALUES 'size' s1, s2, s3, s4, s5

IF (size = s1) THEN
	A = 0.22
	B = 0.35
	ZZYZX = 0.575
	adb = 'HOL004'
ENDIF

IF (size = s2) THEN
	A = 0.41
	B = 0.44
	ZZYZX = 0.81
	adb = 'HOL005'
ENDIF

etc

LOCK 'adb'
Although the object's dimensions change correctly, the locked text parameter does not. Any ideas?

Thanks, Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
2 REPLIES 2
Frank Beister
Moderator
s1 = '20 Litre'
s2 = '70 Litre'
s3 = '90 Litre'
s4 = '100 Litre'
s5 = '120 Litre'

VALUES 'size' s1, s2, s3, s4, s5

IF (size = s1) THEN
   A = 0.22
   B = 0.35
   ZZYZX = 0.575
   adb = 'HOL004'
   PARAMETERS adb=adb
ENDIF

IF (size = s2) THEN
   A = 0.41
   B = 0.44
   ZZYZX = 0.81
   adb = 'HOL005'
   PARAMETERS adb=adb
ENDIF
etc

LOCK 'adb'
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
derekjackson
Expert
Excellent, thanks!
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb