Align section viewports

Hi, i create dynamo to place sections in one line one by one on sheet. Sections have the same high (level 0 to level 1), different X width. The align by X works ok but i can’t work around the Y axis align. Picture below:

My viewports bbox:
[
[
BoundingBox(MinPoint = Point(X = 16.377, Y = 9.320, Z = -32.156), MaxPoint = Point(X = 23.623, Y = 10.680, Z = 15.277)),
BoundingBox(MinPoint = Point(X = 16.850, Y = 9.320, Z = -9.819), MaxPoint = Point(X = 27.899, Y = 10.680, Z = 0.699)),
BoundingBox(MinPoint = Point(X = 23.818, Y = 9.320, Z = -17.123), MaxPoint = Point(X = 25.324, Y = 10.680, Z = 0.305)),
BoundingBox(MinPoint = Point(X = 21.243, Y = 5.683, Z = -10.180), MaxPoint = Point(X = 34.094, Y = 14.317, Z = 2.176)),
BoundingBox(MinPoint = Point(X = 26.542, Y = 6.125, Z = -16.067), MaxPoint = Point(X = 38.194, Y = 13.875, Z = 0.305))
]
]
I tried:

  1. change bbox center Y axis to the same value
  2. move viewports by difference(to the first section) in min Y value

Now I am out off ideas. Do You know how to solve this problem?

(Assuming that you need to do this for multiple views across multiple sheets since Revit already snaps to alignments.)

The simplest fix is to adjust the view crop region to be the same (in the Y-axis) for each of your views. Then aligning them based on their boundaries will be accurate. Otherwise you’ll need to determine the location of one of the levels in “sheet space” in order to align the other views based on the same relative location of the same level.

1 Like

Thanks for your answer. Yes You think correct. Still I don’t know how to fix this problem by dynamo but I just hide reference lines/planes in view and thanks to this my bboxes of views are the same:


So when I place them in the same Y position they are in one line.

Ah. You likely had reference planes outside the scope of the crop regions that were affecting the bounding box. Turning those categories off is the right fix.

1 Like

Exactly and unfortunately the center of view wasn’t in the same place as center of crop region…