As with anything in Archicad it can get as complicated as you want.
You can automate it by simply adding a ROT command before the TEXT command that rotates it the negative angle of what you have rotated the symbol by.
i.e.
ROT2 -symb_rotangle
TEXT2 0,0, LIGHTTYPE
DEL 1
The 0,0 in the TEXT2 command is your text position in relation to your symbol - i.e. it maybe something like 0, 0.75 - I don't know what you have scripted.
Or you could create a new angle parameter (rot_text) and then the user can type in an angle manually to rotate the text.
ROT2 rot_text
TEXT2 0,0, LIGHTTYPE
DEL 1
You could automate this with a stretchy hotspot that the user can just drag on screen to rotate the text.
You may also find that rotating the text will cause it to clash with your symbol - depends on the symbol rotation, text length and default text position.
Then you may want to add parameters to move the text and even add stretchy hotspots to move the text.
So you can see it can start getting more complicated.
The automatic rotation should work so long as the text is not too long and your default position is not too close to the symbol.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11