# GeniusLoci - Creating 3D Views - Bounding Box Size

**URL:** <https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690>\
**Category:** Revit\
**Tags:** geometry\
**Created:** [January 31, 2024, 3:38pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690 "2024-01-31T15:38:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shatner](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Shatner](https://forum.dynamobim.com/u/Shatner)\
**Post date:** [January 31, 2024, 3:38pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/1 "2024-01-31T15:38:47Z")

</div>

Hi all,

I’ve had a look around but not been able to locate a answer to this with good old Google and Forum Searches.

Basically I am using Genius Loci’s “3DView by BoundingBox” to generate 3D Views using the Room’s geometry. I have this working so my question is this :

Is there a way for me to add some form of offset to the bounding box so it goes beyond the size of the room?

Thanks!

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [January 31, 2024, 4:11pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/2 "2024-01-31T16:11:15Z")

</div>

hi, it seems to me that Mr. ChuongMEP with his [openMEP](https://forum.dynamobim.com/t/openmep-package-feedback-thread/) package presented nodes that do this

> [@OpenMEP Package Feedback Thread](https://forum.dynamobim.com/t/openmep-package-feedback-thread/86350/34):
>
> New version in [2.0.23.2331336](https://github.com/chuongmep/OpenMEP/releases/latest) released kissing_heart What is news : Add more power full to work with [Bounding Box](https://chuongmep.github.io/OpenMEP/api/OpenMEPSandbox.Geometry.Abstract.BoundingBox.html) Boundingbox.IsSimilar Boundingbox.Scale Boundingbox.Divide Boundingbox.Visualize Boundingbox.Area Boundingbox.Volume Boundingbox.ByBoundingBoxs Boundingbox.Corners Boundingbox.Center Demo Preview : [explorer\_DAjsKIWxYK] [BoundingBox.ByBoundingBoxs] See more detail document : [Class BoundingBox | Open MEP](https://chuongmep.github.io/OpenMEP/api/OpenMEPSandbox.Geometry.Abstract.BoundingBox.html)

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [February 1, 2024, 10:21am UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/3 "2024-02-01T10:21:59Z")

</div>

If you want a method which doesnt require any external packages (except for colouring my geometry) the you could do this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/85945960200233ce71ec50be801a27ed9ed774e3.png)

Extract the corners from the origin bounding box (red), create a vector using them, offset by your desired amount then recreate the new bounding box (green)

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [February 1, 2024, 12:57pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/4 "2024-02-01T12:57:38Z")

</div>

hello, you inspired me (in the same vein)  
 ![scaleBB](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/e/1ed0c8ae65d1f38a9c7aa74fbe46bc050ffe5e81.gif)

```auto
def scaleBB(_bb,_coef)
{
//Line on BB initial
L=Line.ByStartPointEndPoint(_bb.MinPoint,
_bb.MaxPoint);
//Lenght Line
long=Autodesk.Curve.Length(L);
//Extend lenght
ext=(_coef-1)*long;
L_step=Autodesk.Curve.ExtendEnd(L,ext);
L_end=Autodesk.Curve.ExtendStart(L_step,ext);
result=_coef>0.5?BoundingBox.ByCorners(Autodesk.Curve.StartPoint(L_end),
Autodesk.Curve.EndPoint(L_end)):"Coef too small";
return result;
};

```

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![ben8RA8D](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@ben8RA8D](https://forum.dynamobim.com/u/ben8RA8D)\
**Post date:** [February 9, 2024, 10:46am UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/5 "2024-02-09T10:46:11Z")

</div>

hi @christian.stan & @haganjake2,

_Changed accounts as I have changed jobs (my login in automated to my new Autodesk ID… so will marked resolved when I get home this evening)_

Thank you both for your responses! I have got some time for more Dynamo at work and these worked great.

I think the part I was not understanding was the part of using the room bounding geometry along with its reversed geometry!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/558b69185725b3ea42d27dec7b9fa2ef3f2635c0.png)

Now works perfectly, many thanks! 🙂

---

<div class="post-metadata">

**Author:** ![ben8RA8D](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@ben8RA8D](https://forum.dynamobim.com/u/ben8RA8D)\
**Post date:** [February 9, 2024, 4:18pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/6 "2024-02-09T16:18:54Z")

</div>

hi @haganjake2 & @christian.stan ,

I have run more tests on this script and this script only works where there is only one set of Room geometry data, which makes sense looking back at it.

I did manage to resolve this by creating the nodes within the blue group, into a new custom node. That then allowed the data to flow through as a list and retain its order and structure. (just in case someone else tries to recreate this!)

Thanks again

---

<div class="post-metadata">

**Author:** ![justloosit2](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@justloosit2](https://forum.dynamobim.com/u/justloosit2)\
**Post date:** [May 15, 2025, 12:23pm UTC](https://forum.dynamobim.com/t/geniusloci-creating-3d-views-bounding-box-size/97690/7 "2025-05-15T12:23:18Z")

</div>

Hi I’m trying to creat 3DViews with the geniusloci Node, but for me it seems to always give out null.  
Im feeding it a boundingbox from element.boundingbox and a string with normal letters a-z, any suggestions why it is not working for me?
