We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2019-08-23 02:20 PM
HSID=1 hotspot2 0, 0,HSID, widthx, 1+128 !base HSID = HSID+1 hotspot2 -1, 0, HSID, widthx, 3 !reference HSID = HSID+1 hotspot2 widthx, 0, HSID, widthx, 2 !moveableThanks
2019-08-26 03:49 AM
GDL wrote:
Use the REQUEST ("TEXTBLOCK_INFO", ...) function to obtain information on the calculated width and height of a textblock.
TEXTBLOCK "papersize1" 0, 7, 0, 1, 1, 0, Label_Length dummy = REQUEST ("TEXTBLOCK_INFO", "papersize1", width) text_offset = width / (1000 / GLOB_SCALE)
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2019-08-27 10:47 AM
2019-08-27 11:01 AM
HOTSPOT2 0.0, 0.0 DEFINE STYLE "AC_STYLE_1" "Arial",text_hgt,1,0 IF symb_mirrored = 1 THEN MUL2 -1, 1 ADD2 -box_wid,0 ENDIF tab_1 = 0 left_indent = 1 stringval_1 = "Add your note here. You can type what ever you like" PEN 1 IF symb_mirrored = 0 THEN justification = 1 ELSE justification = 3 ENDIF !Define a paragraph paragraph "note_1" justification, 0, left_indent, 0, 1, tab_1 SET STYLE "AC_STYLE_1" "\t" + stringval_1 endParagraph !Include the paragraph in a text block !!TEXTBLOCK name width, anchor, angle, width_factor, charspace_factor, fixed_height, !!'string_expr1' [, 'string_expr2', ...] textBlock "text_block_1" (box_wid*1000/A_), 7, 0, 1, 1, 1, "note_1" rrr = REQUEST("Textblock_Info", "text_block_1", textblockwidth, textblockheight) box_hgt = box_hgt + textblockheight*(A_/1000) !Place the block using the richtext2 command richText2 0, 0, "text_block_1" !stretchy hotspot - note width !stretchy hotspot - note width hsid=hsid+1 !base HOTSPOT2 0,0,hsid,box_wid,1+128 hsid=hsid+1 !moving HOTSPOT2 box_wid,0,hsid,box_wid,2 hsid=hsid+1 !reference HOTSPOT2 -0.0001,0,hsid,box_wid,3 hsid=hsid+1 !base HOTSPOT2 0,box_hgt,hsid,box_wid,1+128 hsid=hsid+1 !moving HOTSPOT2 box_wid,box_hgt,hsid,box_wid,2 hsid=hsid+1 !reference HOTSPOT2 -0.0001,box_hgt,hsid,box_wid,3
2019-08-27 11:47 AM
2019-08-28 03:13 AM
JGoode wrote:
This definitely works and I had tried it but is there any way to make the text maintain the same shape when scale is changed?
Thanks
DEFINE STYLE "AC_STYLE_1" "Arial", text_hgt * GLOB_SCALE / 1000, 1, 0
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2019-08-28 04:33 AM
JGoode wrote:As I understand it, you want the width of the text block to change depending on the scale.
This definitely works and I had tried it but is there any way to make the text maintain the same shape when scale is changed?
Thanks
box_wid = box_wid*A_/100 PARAMETERS box_wid = box_widBut this won't work as GLOB_SCALE no longer works in the parameter or master script.
2019-08-28 05:21 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2019-08-28 05:54 AM
2019-08-28 05:59 AM