Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

GDL
About building parametric objects with GDL.

Efficient way to crop text by length in cm

Anonymous
Not applicable
Hi,

i hope I haven’t missed a function, but I’m looking for a efficient way to crop text by a given length and not by the number of characters, like “strsub”.

Maybe somebody have a better solution.
My actual solution is:

while stw(txt1) >100 do !** 100 is the max lenght of the text
txt1=strsub(txt1,0,_loop)
_loop=_loop-1
endwhile
10 REPLIES 10
Anonymous
Not applicable
No, I'm not in Graphisoft Product Management. I'm not responsible for the library.
Only local distributor for Berlin.