Wrap text within an object
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-22 05:46 PM
2017-06-22
05:46 PM
ArchiCAD 23
Windows 10
Windows 10
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-22 08:43 PM
2017-06-22
08:43 PM
If I understood your question correctly, the simple answer is yes.
You may have to define your text width first
You may have to define your text width first
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)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-23 02:39 PM
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)
ArchiCAD 23
Windows 10
Windows 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-23 05:18 PM
2017-06-23
05:18 PM
Hi and you're welcome.
If you want to limit values during user input, in the Parameter script you usually do
If you want to limit values during user input, in the Parameter script you usually do
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.