With reference to the thread Rotate Point Text? , I'm facing an issue. The screenshots should help explain further:
When I set the RotationAngle to a 0 or 360 value, the text appears fine (probably since both cases are equivalent to not rotating at all)
But when I set the RotationAngle to any other non-zero value (e.g 90), the text just disappears. I've spent hours on it now and tried all different combinations of functions as shown in the commented code. But it hasn't helped yet. For your reference, below is the code that I'm using to display the Point Text:
It seems to be such a trivial issue, and yet taking so long. I'd really appreciate your help.
I think the problem is probably that the rotation is around the origin. What happens if you move the text frame to 0,0 in the document and then try rotating 5 degrees using your code? I think for the general case, you need to translate to the origin, rotate, and then translate back to the original location.
Yes! Translating to the origin, rotating and then translating back to the original location worked. Thanks a lot for your help!