# How to extract Viewport outline/bounding box

**URL:** <https://forum.dynamobim.com/t/how-to-extract-viewport-outline-bounding-box/5572>\
**Category:** Developers\
**Created:** [August 11, 2016, 7:14pm UTC](https://forum.dynamobim.com/t/how-to-extract-viewport-outline-bounding-box/5572 "2016-08-11T19:14:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azubike\_Ononye](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/azubike_ononye/32/23113_2.png) [@Azubike\_Ononye](https://forum.dynamobim.com/u/Azubike_Ononye)\
**Post date:** [August 11, 2016, 7:14pm UTC](https://forum.dynamobim.com/t/how-to-extract-viewport-outline-bounding-box/5572/1 "2016-08-11T19:14:26Z")

</div>

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/6/6c7be1a30fe0f2183c521c4b8f99177b9bd3c37f.png)

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.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [August 11, 2016, 7:36pm UTC](https://forum.dynamobim.com/t/how-to-extract-viewport-outline-bounding-box/5572/2 "2016-08-11T19:36:34Z")

</div>

Ref. Revit API docs: [http://www.revitapidocs.com/2017/a02feee5-12e1-db4d-b85c-1456f5a486e6.htm#propertyTableToggle](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.  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/c3ca445730fe3f0e25435e9eb1f95d594d5a65c1.png)

To convert it to dynamo point do something like this:  
`v.GetBoxOutline().MaximumPoint.ToPoint(True)`
