# Traceback error with FloorPlan.ByRoom with Linked Model?

**URL:** <https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [November 3, 2020, 12:39am UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842 "2020-11-03T00:39:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyW](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AndyW](https://forum.dynamobim.com/u/AndyW)\
**Post date:** [November 3, 2020, 12:39am UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842/1 "2020-11-03T00:39:02Z")

</div>

I’m trying to generate floor plans of rooms from linked models, using an Excel sheet to choose which rooms I need. However, the FloorPlan.ByRoom node is coming back with this error:

Exception: The ElementId levelId does not correspond to a level.  
Parameter name: levelId

as well as:

AttributeError: ‘NoneType’ object has no attribute ‘Min’

I suspect it may be arising due to working with linked files?

Any help would be appreciated!

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

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [November 3, 2020, 1:22am UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842/2 "2020-11-03T01:22:50Z")

</div>

Your correct that it is failing because your using a link. The plan node tries to get the level of the room IN the current document. You would need to modify the custom node or use Python. Even then you’d need to get the local level probably by name of linked level assuming they are the same. You could also simplify it some and do it level by level as a constant.

---

<div class="post-metadata">

**Author:** ![AndyW](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AndyW](https://forum.dynamobim.com/u/AndyW)\
**Post date:** [November 3, 2020, 2:00am UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842/3 "2020-11-03T02:00:22Z")

</div>

Thanks for the clarification. That’s probably above my skill level at the moment, but good to know where to start focusing on next. Cheers!

---

<div class="post-metadata">

**Author:** ![thomas.lundUUGP8](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@thomas.lundUUGP8](https://forum.dynamobim.com/u/thomas.lundUUGP8)\
**Post date:** [January 29, 2021, 10:26pm UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842/4 "2021-01-29T22:26:24Z")

</div>

Hi Andy, I’ve come up against the same issue and amending the python is beyond my current skillset (although I’ll give it a go). Did you manage to generate plans from rooms within a linked model some other way? Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![AndyW](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AndyW](https://forum.dynamobim.com/u/AndyW)\
**Post date:** [February 2, 2021, 9:50pm UTC](https://forum.dynamobim.com/t/traceback-error-with-floorplan-byroom-with-linked-model/56842/5 "2021-02-02T21:50:05Z")

</div>

Unfortunately no luck
