cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Keynotes using 'ASSOCEL_PROPERTIES' Request in Archicad 18

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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!