2021-01-12 09:20 AM - last edited on 2021-09-14 01:30 PM by Noemi Balogh
2021-01-12 10:36 AM
2021-01-12 10:38 AM
STW (string_expression)
Returns the (real) width of the string in millimeters displayed in the current style. The width in meters, at current scale, is STW(string_expression)/1000*GLOB_SCALE
2021-01-13 01:54 AM
Kristian wrote:
So the flaw in your logic is that you are trying to assign the text box size to a parameter.
2021-01-13 02:49 AM
I understand how it works in 2D.I thought so.
2021-01-13 02:52 AM
2021-01-13 03:10 AM
Kristian wrote:This is partly just a fishing exercise to see if anyone has any clever solutions (I'm not expecting they will).
I understand how it works in 2D.I thought so.
I even commented to my wife when I saw this post last night, that a very experienced and knowledgeable Archicad and GDL user has asked a question I would expect from a novice.
2021-01-13 03:15 AM
2021-01-19 02:39 PM
I think if you don't change the scale, you can work with an absolute width. Set the parameter default to 0, and draw an editable hotspot at the calculated text width if the parameter is zero, at the parameter otherwise. As long as the user doesn't touch the hotspot, the width will be automatic, and fixed-width after.
- My labels will only ever be placed at one scale, I have separate annotation layers for each scale so the text can appear in different locations or even say completely different things.
[list=]I need to label my objects at different scales - which it where the problem arises. The text box width needs to change automatically based on the scale of the object.
2021-01-25 02:08 AM