We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-05-17 05:34 PM
! ------------------------------------------------------------------------------ ! 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 Position - USING "GLOB_SCALE/50" TO MAKE POSITION THE SAME ON ALL SCALES ! THE "/50" IS BECAUSE I WAS DRAWING ON THE 1:50 SCALE AND NEEDED THING TO BE ON THAT PROPORTIONS ! ------------------------------------------------------------------------------------------------ ADD2 0.06*GLOB_SCALE/50, 0.13*GLOB_SCALE/50 ! ------------------------------------------------------------------------------ ! MOVABLE HOTSPOTS ! ------------------------------------------------------------------------------ unID=1 !_________________________moving it horizontally hotspot2 0,verti2,unID,horz2,1+128 : unID=unID+1 hotspot2 -1,verti2,unID,horz2,3 : unID=unID+1 hotspot2 horz2,verti2,unID,horz2,2+256 : unID=unID+1 !_________________________moving it vertically hotspot2 horz2,0,unID,verti2,1+128 : unID=unID+1 hotspot2 horz2,-1,unID,verti2,3 : unID=unID+1 hotspot2 horz2,verti2,unID,verti2,2+256 : unID=unID+1 DEL 1 ! ------------------------------------------------------------------------------ ! TEXT ITSELF ! ------------------------------------------------------------------------------ TEXT2 horz2+0.05*GLOB_SCALE/50,verti2+0.1*GLOB_SCALE/50,txti2 ! ------------------------------------------------------------------------------ ! Delete transformation after Text Rotation ! ------------------------------------------------------------------------------ del _nTrans
2020-05-17 05:38 PM