I display a text in the layout viewport using the Draw2dText method.
I would like this text to be rotated.how do I achieve this.
a sample code would be helpful.
Maybe you can push a transform prior to drawing, see http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Display_DisplayPipeline_PushModelTransform.htm
Don't forget to pop it afterwards, see http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Display_DisplayPipeline_PopModelTransform.htm
Does this rotate the text itself (say 90 deg) ...
I tried as mentioned, but didnt succeed.
e.Display.Draw2dText("100", Color.Black, pt, true, 10, "Arial");
This functionality doesn't currently exist in RhinoCommon. I created a feature request issue for this athttps://mcneel.myjetbrains.com/youtrack/issue/RH-39921