How to extract Viewport outline/bounding box

I am trying to extract the crop outlines on a series of viewports. Since the get View.ViewportBoxCenter node from steamnode allows me extract the center point, i believe there should be away to extract the bounding box form manipulation in dynamo to properly space views on sheets. I replaced the loc.append(v.GetBoxCenter()) with GetBoxOutline, that way i was able to extract the Autodesk.Revit.DB.Outline. I am a “python noob” so i am not sure how to move forward.


Ref. Revit API docs:
You can get the maxpoint and minpoint from the Ouline with the MaximumPoint and MinimumPoint Properties.

To convert it to dynamo point do something like this:

1 Like