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

GDL
About building parametric objects with GDL.

Property Expression Line Break

Samuel1997
Booster

Hey guys, 

Wondering if there is a way to add line breaks into property expressions within property manager, for GDL its \n but the backslash character doesnt seem to function within property manager, and i guess it would need to be an operator or such? 

 

Cheers Sam

AC24
Win11 | 12th gen i-7 | 32GB | RTX 3070 Ti
2 REPLIES 2
Peter Baksa
Graphisoft
Graphisoft

It seems string type properties can't be multiline, if you copy-paste a multiline string from description to value, the newline is lost.

Using TEXTJOIN ( "\n";...) inserts "n" into the string, as if it is an invalid escape character.

Using TEXTJOIN ( "\\n";...) inserts "\n" into the string which will be interpreted as a newline if you use the string's value in GDL TEXT command, but stays \n in IES.

 

 

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

Thanks for the brainstorm peter, I guess just have to wait and hope they add in a new line command feature within property expression editor. (The idea i was attempting to achieve was to split a single property expression string result, across multiple lines. ) 

AC24
Win11 | 12th gen i-7 | 32GB | RTX 3070 Ti