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

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

Keynotes using 'ASSOCEL_PROPERTIES' Request in Archicad 18

Anonymous
Not applicable
Hello,

I have been using the code below in a label in archicad 17 to display properties linked to model elements.

We have recently moved some projects to ac18, and the label has stopped working. Does anyone know if anything has changed in GDL or is there something else I am missing?
	
dim PrpDta[]

	proptxt = REQUEST ("ASSOCEL_PROPERTIES", "iscomp, fullname", DtaNum, PrpDta)
	
	if bChangeSkinDirection exor bFlipLabel then
		orderBegin	= DtaNum-1
		orderFinish = 1
		step_value		= -2
	else
		orderBegin	= 1
		orderFinish = DtaNum
		step_value		= 2
	endif

	IF DtaNum > 0 THEN
		FOR DtaInd = orderBegin TO orderFinish STEP step_value
			IF PrpDta[DtaInd] <> 1 THEN
				StrInd=StrInd+1
				arDisplayText[StrInd] = PrpDta[DtaInd+1]
			ENDIF
		NEXT DtaInd
	ELSE
		arDisplayText[StrInd+1]	= "No Properties"
	ENDIF

Thanks,

Tobias
0 REPLIES 0