GDL
About building parametric objects with GDL.

Labeling a Hard-coded Property

I would like to have a simple label which calls out a specific hard-coded property. Not a general properties label. For example, we have a property under General called Remarks. Seems like this should be the code, but it does not work:
DIM _propertyValues[][]
rrr = REQUEST("Property_Value_Of_Parent", "Remarks", type, dim1, dim2, _propertyValues)
_str = 'blank' ! default
IF rrr > 0 THEN
	_str = _propertyValues[1][1]
ENDIF

TEXT2 0, 0, _str
This gives the default text, showing the request did not work.

What I am I missing?
James Murray

Archicad 27 • Rill Architects • macOS • OnLand.info
10 REPLIES 10
runxel
Legend
Podolsky wrote:

Endif not needed before next i

True. As long you like oneliner IFs.
I don't.

But that was not the missing piece anyway 🙂
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»