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