Viewport size

Hi All,

Is there any way to get size of all viewports in project?

BUMP

I have the same question so i can determine if i want (need) to Rotate my Viewport on Sheet.

Hello @bvs1982 a very old one…but probably something.

1 Like

@sovitek

That works for me! Thanks!

Maybe good to know for other people. It allways returns the original size.
So if the Viewport is rotated afterwards the 2dRectangle size won’t change.

1 Like

@sovitek

I celebrated a bit too early.

When i tried it on a Viewport which wasn’t rotate and Width > Height the
2Drectangle node shows Width < Height !?!


Any thoughts?

Hi not really sure but you can find out if the view is rotated…

but not sure at all if it what you need

I don’t have the Views.GetRotation node (what Package is it from?), but i am 100% sure the
View isn’t rotated. Maybe it is because BoundingBox vs. Crop?
In other words the BoundingBox goes around ALL the Elements visible in the View (so beyond the Crop).

:point_up: wasn’t it.

1 Like

This one is from DynaMep…goodluck think its the closest i can come it…cheers

and a way with ootb nodes…

Thank you so far though. You got me in the right Direction.
I’ll try / test some more. Seems Width and Height got mixed up in this Project (don’t know how),
because it works in a new (empty) Project. I’ll work around it for now.

1 Like