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.

Thanks.

Ref. Revit API docs: http://www.revitapidocs.com/2017/a02feee5-12e1-db4d-b85c-1456f5a486e6.htm#propertyTableToggle
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:
v.GetBoxOutline().MaximumPoint.ToPoint(True)

1 Like