cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
JGoode
Expert

Possible to cut off richtext2 instead of wrapping?

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 27

Windows 10
1 Reply 1
runxel
Moderator

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 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | 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!