Get and Set Rotation Angle of View on sheet

Hello Dynamo Cummunity :slightly_smiling_face:

I have 2 identical PlanViews on a sheet, view left has been rotatet.
I would like to rotate view right by the same angle that view left has been rotatet.

After searching the forum i found a python script for rotating views.

It does work, but i don´t understand the input number. For example, if i use input “3” the view will rotate 180°.

I also have no idea how i can get the rotation angle of a view.

So i ask for your help and would be really happy about any advice!
Thank you!

Hi @gerhard.p ,

As explained in the post you linked, the difficulty isn’t to rotate the cropbox of a view but to get the rotation of the another view.

Good luck !

Thanks Alban,

So i have to find a workaround to get the rotation angle, in my example that would be to get the “rotation” of the Column.
And then i have to figure out how to set a specific angle to a view.
I´m going to try that in the evening

So it’s possible to retrieve the rotation of the CropBox and set the rotation of another CropBox.
At the same time, I added the section markers and Sectionboxes to my custom node.

3 Likes

Amazing! Looking forward to test it tomorrow and i will post my experiences!
Thank you Alban :+1:

Hello Alban,

I did a few tests and it is working fine, thank you so much for your help! :grinning:

With view.GetCropRegion.Element from Rhythm i should be able to get this to work in one of my scripts!
image