We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-06-22 05:46 PM
2017-06-22 08:43 PM
actualWidth=(your_dimension)*1000You first create a TEXTBLOCK which has width as one of parameters, and then use RICHTEXT2 do display its contents.
TEXTBLOCK block_name, actualWidth, anchor, angle, width factor, charspace factor, fixed height, "Hello!" richtext2 0, 0, block_nameThen you use a REQUEST command to acquire the width and height of the above.
your_dimensions = REQUEST("TEXTBLOCK_INFO", block_name, width, height)
2017-06-23 02:39 PM
matjashka wrote:Thanks for the reply! I got it working. Is there a way to set the minimum height?
If I understood your question correctly, the simple answer is yes.
You may have to define your text width firstactualWidth=(your_dimension)*1000You first create a TEXTBLOCK which has width as one of parameters, and then use RICHTEXT2 do display its contents.TEXTBLOCK block_name, actualWidth, anchor, angle, width factor, charspace factor, fixed height, "Hello!" richtext2 0, 0, block_nameThen you use a REQUEST command to acquire the width and height of the above.your_dimensions = REQUEST("TEXTBLOCK_INFO", block_name, width, height)
2017-06-23 05:18 PM
values "myParam" range[min,]When dealing with variables you probably want to create some type of a condition like this
min=10 IF myValue<min THEN myValue = minOf course you can hard code the min or make it a user-accessible parameter.