We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-05-24 04:52 PM - last edited on 2022-09-26 10:51 PM by Daniel Kassai
DEFINE STYLE "estilo" Arial, txtsize, 7, 0 STYLE estilo ! ------------------------------------------------------------------------------ ! Text Rotation - Readable / Always Horizontal / Align with Symbol ! ------------------------------------------------------------------------------ r = request ("View_Rotangle", "", _angleViewRot) ! Actual rotation of the 2D symbol: _totalRotate = (SYMB_ROTANGLE + _angleViewRot) MOD 360 ! Count the number of transformations of the ! coordinate system in different cases _nTrans = 0 if iTypeTextRotation = 2 then ! Readable if (_totalRotate > (90 + EPS) & _totalRotate < (270 + EPS)) then rot2 180 _nTrans = _nTrans + 1 endif else if iTypeTextRotation = 1 then ! Horizontal rot2 _totalRotate * (SYMB_MIRRORED - not(SYMB_MIRRORED)) _nTrans = _nTrans + 1 endif endif ! ------------------------------------------------------------------------------ ! Text ! ------------------------------------------------------------------------------ TEXT2 -0.035,0.04, txt ! ------------------------------------------------------------------------------ ! Delete transformation after Text Rotation ! ------------------------------------------------------------------------------ del _nTrans
Solved! Go to Solution.
2020-05-25 05:56 PM
ROT2 -SYMB_ROTANGLE ADD2 0, 0.1 ROT2 SYMB_ROTANGLE TEXT2 0 ,0, txt DEL 1
2020-05-25 07:12 AM
ADD2 -0.035, 0.04 TEXT2 0 ,0, txt DEL 1
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 |
2020-05-25 05:39 PM
Lingwisyer wrote:Thanks for your reply! But it did not work. the issue kept the same.
Use Add2 for your transformation before your Text2 command, then set your text to [0, 0]?
You might also need to use a Style command to set your text anchor to center.
ADD2 -0.035, 0.04 TEXT2 0 ,0, txt DEL 1
Ling.
2020-05-25 05:56 PM
ROT2 -SYMB_ROTANGLE ADD2 0, 0.1 ROT2 SYMB_ROTANGLE TEXT2 0 ,0, txt DEL 1
2020-05-26 04:02 AM
matleonii wrote:
But it did not work. the issue kept the same.
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 |