# Create Room Plans from Linked File

**URL:** <https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973>\
**Category:** Revit\
**Created:** [August 14, 2017, 8:59am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973 "2017-08-14T08:59:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![shielamarie](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shielamarie](https://forum.dynamobim.com/u/shielamarie)\
**Post date:** [August 14, 2017, 8:59am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/1 "2017-08-14T08:59:55Z")

</div>

I am trying to produce rooms from linked file, unable to do so and encountering this message “Traceback (most recent call last):”

There might be a missed node between LinkedInstanceElements and FloorPlan.ByRoom,

Thanks!

 ![Create Room Plans from Linked File](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/1/0139f383ff34821da8a127d26a5398d489bbf609.jpg)

---

<div class="post-metadata">

**Author:** ![nainoorpatel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nainoorpatel/32/33085_2.png) [@nainoorpatel](https://forum.dynamobim.com/u/nainoorpatel)\
**Post date:** [August 14, 2017, 4:55pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/2 "2017-08-14T16:55:50Z")

</div>

The problem seems to be in the “Get.Document” Node. Please, post pics of the node.

---

<div class="post-metadata">

**Author:** ![shielamarie](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shielamarie](https://forum.dynamobim.com/u/shielamarie)\
**Post date:** [August 15, 2017, 1:06am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/3 "2017-08-15T01:06:16Z")

</div>

hi @nainoorpatel

here’s the blow-up pics, the Room lists are being read but I’m unable to create the rooms in Revit model & receiving the notification about Traceback,

Thanks!

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/6887e4a98c0655a4809fe2080bf2d802217bef2d.PNG)

---

<div class="post-metadata">

**Author:** ![shielamarie](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shielamarie](https://forum.dynamobim.com/u/shielamarie)\
**Post date:** [August 15, 2017, 1:07am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/4 "2017-08-15T01:07:04Z")

</div>

![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/b/cbb472436abed956dcac75b56bcd97832d6e4510.PNG)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [August 15, 2017, 2:57am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/5 "2017-08-15T02:57:28Z")

</div>

I JUST ran this node myself to make ~20 kitchen type plans in about 45 seconds while I checked my email, and then ran my bathrooms for the same result (thanks again @Konrad_K_Sobon!). On the bathrooms I had to re-run the script when realized I filtered my room list incorrectly, and got a similar error as you on my the second run, though all my views were still created.

So I recommend you first double check that the views aren’t hiding somewhere. If you do a new view schedule with no sorting the “newest” views are at the bottom of the list, which can help you find things.

If they aren’t there, try closing dynamo and reopening. If they still aren’t there, try removing the List.Create node. You’re technically feeding in a nested list at the moment.

If that still doesn’t work try reinstalling [archi-lab](https://forum.dynamobim.com/t/revit-2022-dynamo-2-10-package-not-showing-up-and-icons-missing/62933/7?) to the latest/greatest version supported by your Revit version, and then try it again. If it still fails post back and I’ll have another look tomorrow (my bathroom types need to be run again anyways).

---

<div class="post-metadata">

**Author:** ![shielamarie](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shielamarie](https://forum.dynamobim.com/u/shielamarie)\
**Post date:** [August 15, 2017, 3:02am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/6 "2017-08-15T03:02:34Z")

</div>

Thanks @jacob.small! will try your recommendations

---

<div class="post-metadata">

**Author:** ![shielamarie](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shielamarie](https://forum.dynamobim.com/u/shielamarie)\
**Post date:** [August 17, 2017, 1:47am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/7 "2017-08-17T01:47:55Z")

</div>

@jacob.small it works! removed the List.Create node + checking my views. Thanks!

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [August 17, 2017, 3:29am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/8 "2017-08-17T03:29:30Z")

</div>

Glad to hear! 😃

---

<div class="post-metadata">

**Author:** ![jeremy.colombe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jeremy.colombe/32/117329_2.png) [@jeremy.colombe](https://forum.dynamobim.com/u/jeremy.colombe)\
**Post date:** [February 5, 2020, 1:35pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/9 "2020-02-05T13:35:01Z")

</div>

Hmmmmm… I am trying to do the same thing with zero luck. I get that same error with level id missing but its not creating the plans. I believe it is due to the levels in my model having a different levelid then the linked model. I tried to modify the node to react to the level name but that did not work. Not sure how I could modify the node to lets say match level names between links then grab the levelid from my model not the linked. Does that make sense? lol Any help is appreciated. The graph is attached, ultimately I want to filter the room list but just trying to get any plans created automatically as a starting point.

[Create Views by Room.dyn](https://forum.dynamobim.com/uploads/short-url/25e9v7ex4OlEOkWqbcMqG1CgTBu.dyn) (47.9 KB)

---

<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:50pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/10 "2021-01-29T22:50:08Z")

</div>

Hi Jeremy, I’m having exactly the same problem as yourself and came to the same conclusion. Did you manage to fix the code so that it matched level names rather than looked for the levelid? Any help / guidance greatly appreciated!

---

<div class="post-metadata">

**Author:** ![jeremy.colombe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jeremy.colombe/32/117329_2.png) [@jeremy.colombe](https://forum.dynamobim.com/u/jeremy.colombe)\
**Post date:** [February 1, 2021, 11:47am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/11 "2021-02-01T11:47:29Z")

</div>

I ended up doing two scripts, have not been maintained in months 🙂

Here they are, if you post your script I can try to help with you specific problem. I think you can do what your asking using list filter or group by key using the names as the keys.

[Create Callouts by Room.dyn](https://forum.dynamobim.com/uploads/short-url/6sVnqnxq2PXHbo1QQR8Ss1prIer.dyn) (85.1 KB) [Create Views by Room.dyn](https://forum.dynamobim.com/uploads/short-url/25e9v7ex4OlEOkWqbcMqG1CgTBu.dyn) (47.9 KB) [CREATE VIEWS FROM LEVELS.dyn](https://forum.dynamobim.com/uploads/short-url/zmqQ3JpbY0QI5goREKaoJlqAVuo.dyn) (66.1 KB)

---

<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:** [February 1, 2021, 5:44pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/12 "2021-02-01T17:44:20Z")

</div>

Many thanks for that!

I managed to fix it with some help from a colleague. We amended the python node by:

Feeding the level selected within the Host model to the python node (as IN[4]) and add the following line after the try statement (line 59) in python.

levelId = UnwrapElement(IN[4]).Id

Then delete line 84.

---

<div class="post-metadata">

**Author:** ![jeremy.colombe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jeremy.colombe/32/117329_2.png) [@jeremy.colombe](https://forum.dynamobim.com/u/jeremy.colombe)\
**Post date:** [February 3, 2021, 2:19pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/13 "2021-02-03T14:19:40Z")

</div>

You’re far beyond me…Thanks for the help I will look into it when I am back into this realm.

---

<div class="post-metadata">

**Author:** ![jose.cantalejo](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jose.cantalejo](https://forum.dynamobim.com/u/jose.cantalejo)\
**Post date:** [March 15, 2021, 11:06am UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/14 "2021-03-15T11:06:16Z")

</div>

Hi Thomas,

I did follow your settings adding the extra information for the host level , however, I did not have any success.

would you mind pasting here the modified python node to have a look?

Cheers

Jose

---

<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:** [March 17, 2021, 4:31pm UTC](https://forum.dynamobim.com/t/create-room-plans-from-linked-file/13973/15 "2021-03-17T16:31:52Z")

</div>

Hi @jose.cantalejo, see below. Couldn’t figure out how to paste this code correctly formatted here so I’ve uploaded a txt file.

[CreatePlansFromLinkedModelRooms.txt](https://forum.dynamobim.com/uploads/short-url/anfhgN1g4KeDBpVzd6eq6B67lO5.txt) (3.3 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41b95e754068b2d0ead63614150c42061b0c4fc1.png)
