Argh! That is so close.
That does return the view orientation angle. However it seems to only return the orientation of view the object is in. So in the model space, an object with that scripting will show the orientation value, as seen in Drawing 2 (Rotated 45).
However on a layout sheet where the orientation is always 0, it returns 0 (the orientation of the ‘view’ the drawing title object is in) and not 45 (the view orientation of the view the title is linked too) as it should in the drawing 2 title.
I'll play around and see if there's a 'drawing_view_rotangle' or something.
Thanks for the help.
Lachlan Green | Wilson Architects | BIM Manager, Architect
Since AC9 | Currently AC27 & AC28 Tech Preview | BIMCloud | GDL
Mac Studio (14,13) M2 Max, 64GB, 1TB SSD | MacOS 14.4