cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.

Calculate textblock height in master or parameter script

Karl Wir_n
Advocate

Hi,

In the 2d-script, for a given textblock width, I can get information about the textblock height, by requesting TEXTBLOCK_INFO. This request is not allowed in the master script or in the parameter script. Is there a way of obtaining a textblock height outside the 2d-script? 

In the master script I tried a combination of using STW for the length of the string and requesting HEIGHT_OF_STYLE for the height of one row of text. Together with the textblock width that I set myself, it is possible to get how many rows of text are needed and then calculate the total height.

This works except in some cases where the actual 2d-script textblock uses an extra row compared to the calculation.

So, again, is it possible to get correct textblock info outside the 2d-script?

0 REPLIES 0

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!