GDL
About building parametric objects with GDL.

Possible to cut off richtext2 instead of wrapping?

JGoode
Expert

Hello,

 

I'm trying to use paragraph, textblock, richtext2 to output a line of text. The issue I'm having is that instead of wrapping at the end of the text width that I set, I'd like it to just cut off. Is this possible to achieve? 

 

Many thanks

ArchiCAD 23

Windows 10
1 REPLY 1
runxel
Legend

I don't think that you can do that by a simple statement (sadly).

Instead you have to pull a trick (that GS theirself are doing): you create a dummy paragraph, but do not place it. Then you calculate the length. If this length is longer than what you need you have to cut the input text and discard the rest. Retry until it fits.

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»

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!