# Create floor plan by room + create cropview by boundingbox

**URL:** <https://forum.dynamobim.com/t/create-floor-plan-by-room-create-cropview-by-boundingbox/42766>\
**Category:** Revit\
**Created:** [November 5, 2019, 4:07pm UTC](https://forum.dynamobim.com/t/create-floor-plan-by-room-create-cropview-by-boundingbox/42766 "2019-11-05T16:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.jansenMM3LJ](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@d.jansenMM3LJ](https://forum.dynamobim.com/u/d.jansenMM3LJ)\
**Post date:** [November 5, 2019, 4:07pm UTC](https://forum.dynamobim.com/t/create-floor-plan-by-room-create-cropview-by-boundingbox/42766/1 "2019-11-05T16:07:52Z")

</div>

Hi all,

I’m trying to do something new for me here.

So I have a couple of collections of Rooms that are grouped under a number. I select one Room of each collection and create a view from that room with the node from the Archilab package.

Next to that I want a Crop View based on the selection of Rooms grouped under the same number by using a boundingbox.

However, I get a null output on the Crop View and a Traceback on the Floorplan by View node. The Views however are created in Revit, with the prefix and the offset around the Room, but ignored the new Crop View from the boundingbox.

Any tips on how to solve this?

Thnx in advance!

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/e/fe2e79f14990bd0238e8795d12647851d249a2c6.png)

---

<div class="post-metadata">

**Author:** ![d.jansenMM3LJ](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@d.jansenMM3LJ](https://forum.dynamobim.com/u/d.jansenMM3LJ)\
**Post date:** [November 6, 2019, 10:01am UTC](https://forum.dynamobim.com/t/create-floor-plan-by-room-create-cropview-by-boundingbox/42766/2 "2019-11-06T10:01:16Z")

</div>

Found the solution her:

> [@NameError on Floorplan by Room](https://forum.dynamobim.com/t/nameerror-on-floorplan-by-room/29058):
>
> I thought I was saving the easiest for last but I am continuing to get a “NameError: ‘View’ is not defined” with the Floorplan by Room node. I tried inputting the room directly as both a list and as an element to no success but, importantly, it does generate the required floorplan in REVIT. I’ve tried restarting Dynamo before executing the code to no effect. I’m on REVIT 2017.2 and Dynamo 1.3.2 and am wondering if this isn’t due to some type of versioning issue? I suspect the view is missing ins…
