# Linking Occupancy Loads to a Door Tag from Occupancy Calculations in Room Tag

**URL:** <https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [September 25, 2017, 5:49pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093 "2017-09-25T17:49:49Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![e1uvs](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@e1uvs](https://forum.dynamobim.com/u/e1uvs)\
**Post date:** [September 25, 2017, 5:49pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/1 "2017-09-25T17:49:49Z")

</div>

I am trying to figure this out for my office and to streamline the process of creating exiting plans. My office uses a tag that tags the doors with the occupancy load, the provided width of the door/stair, and the required width of the door/stair. I am curious if anyone has gotten a Dynamo script to take the occupancy loads from rooms and place them in a door tag or a general tag. We need to show the occupancy load for each individual room, but then we also need to have the added values at the exterior doors. Has anyone come up with something that could do this? I am having trouble thinking how I could make this work.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 25, 2017, 6:00pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/2 "2017-09-25T18:00:55Z")

</div>

You would easily find something that could help for a start by using the search field:  
[https://forum.dynamobim.com/search?q=occupancy%20load](https://forum.dynamobim.com/search?q=occupancy%20load)

---

<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:** [September 25, 2017, 11:54pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/3 "2017-09-25T23:54:16Z")

</div>

Yes I have done this. Will share sometime soon.

---

<div class="post-metadata">

**Author:** ![e1uvs](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@e1uvs](https://forum.dynamobim.com/u/e1uvs)\
**Post date:** [September 26, 2017, 4:16pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/4 "2017-09-26T16:16:05Z")

</div>

Fantastic.

---

<div class="post-metadata">

**Author:** ![e1uvs](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@e1uvs](https://forum.dynamobim.com/u/e1uvs)\
**Post date:** [October 3, 2017, 5:13pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/5 "2017-10-03T17:13:27Z")

</div>

Have you been able to share this script yet? Just wanted to follow up on this.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 3, 2017, 5:24pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/6 "2017-10-03T17:24:56Z")

</div>

It’s quite hard to believe that you did not find anything that could help you to get started. Why not googling if nothing suits your needs in the forum? 🙂

---

<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:** [October 3, 2017, 5:38pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/7 "2017-10-03T17:38:30Z")

</div>

I haven’t, but it’s on my to-do list still and I’m making some headway, albeit slowly. Reverse engineering the plug-in to go back to Dynamo is harder than I’d thought.

---

<div class="post-metadata">

**Author:** ![e1uvs](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@e1uvs](https://forum.dynamobim.com/u/e1uvs)\
**Post date:** [October 3, 2017, 5:46pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/8 "2017-10-03T17:46:32Z")

</div>

I have actually started working on something of my own, but haven’t been able to get it to work just yet. Just wanted to see if anyone else has made some headway on this more than I have. Just trying to juggle many things at once at the moment 🙂

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 3, 2017, 5:48pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/9 "2017-10-03T17:48:52Z")

</div>

Don’t hesitate to show your attempts, there are plenty of people willing to help and it could also let us find solutions or related links without spending too much time on it.

---

<div class="post-metadata">

**Author:** ![e1uvs](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@e1uvs](https://forum.dynamobim.com/u/e1uvs)\
**Post date:** [October 3, 2017, 6:07pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/10 "2017-10-03T18:07:36Z")

</div>

Of course

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 3, 2017, 6:08pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/11 "2017-10-03T18:08:48Z")

</div>

This could help for instance:  
[http://dynamobim.org/forums/topic/room-tag-with-occupancy-revisited/](http://dynamobim.org/forums/topic/room-tag-with-occupancy-revisited/)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 3, 2017, 6:13pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/12 "2017-10-03T18:13:11Z")

</div>

Hi,

My 2 cents:

You need to do some mapping of parameters here.  
You need an extra Shared Parameter set to the Doors category where you can store the values. (Set it to instance)

The occupancy loads are Room parameters.  
Doors have From and To parameters that will give you the Roomnumbers.  
So get the two categories and All Elements of category.  
Use GetParameterValueByName and extract the parameters RoomNumber from the Doors “From and To” parameter and match those with the roomnumbers of the rooms themselves. If they match, get the Occupany Loads they should have the same index in the lists.  
Now you’ll need to check which roomnumber from the Doors to and from parameter you will need to map the Occupancy load to, for you will have two roomnumbers belonging to one Door.  
If you need to set them to both to and from then you will need two Shared parameters set to the Door category. And you need to set the new parameters to the DoorTags aswell.

I will give you only the line of thinking i would use (but that can change 🙂 )  
Im not at a computer with Revit on it at this time.

There might be a Global Parameter trick…im not sure…but you cannot tag those i believe.

Marcel

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 3, 2017, 6:17pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/13 "2017-10-03T18:17:11Z")

</div>

This one could also interest you:

> [@Write Calculated Value to a Shared Parameter](https://forum.dynamobim.com/t/write-calculated-value-to-a-shared-parameter/2933/7):
>
> Fantastic - thank you Dimitar - I was able to get it to work! Last thing I needed to do was convert the string to a number (The OL Tag parameter is set to be an integer). See attached screenshot for final solution. Thanks again!! John [Copy-Calculated-Value]

---

<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:** [October 3, 2017, 6:42pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/14 "2017-10-03T18:42:51Z")

</div>

> [@Marcel\_Rijsmus](#):
>
> You need an extra Shared Parameter set to the Doors category where you can store the values.

This much I can help with right now - it’s actually two parameters. One for the number of occupants at the element, and one for the required egress width.

Also I may have to make some additional alterations due to the BiMorph update.

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [October 3, 2017, 6:52pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/15 "2017-10-03T18:52:39Z")

</div>

Interesting add to an egress graph.

I think I’d have the loads for each room not follow the path, however, but dump into the space that precedes the exits for the area, add up all of those values, divide that by the number of exits, and push that into the exits themselves. At least that’s how I understand the code…

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 3, 2017, 7:03pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/16 "2017-10-03T19:03:18Z")

</div>

From memory i saw a post one time of @Zach_Kron where he was working in the Labs with automatic Dynamo script embedded in the family, where a Door would change to FireRating 60 min. if it was placed in a Wall with that parameter value…which could leed to Door Width changing by Occupancy loads…and on and on…

Marcel

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [October 3, 2017, 7:57pm UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/17 "2017-10-03T19:57:41Z")

</div>

Pretty soon, we won’t need people to do architecture… or at least not nearly as many.

---

<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:** [October 4, 2017, 1:32am UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/18 "2017-10-04T01:32:34Z")

</div>

> [@Greg\_McDowell](#):
>
> Pretty soon, we won’t need people to do architecture… or at least not nearly as many.

I am they said that when they switched to CAD instead of hand drawing. My office hasn’t suffered and I’m pretty sure most who saw that transition will agree. The difference is that’s we won’t have to spend so much time revisiting the nuts and bolts, and will instead spend time doing design or issue the job faster.

That is assuming that you can find a client who wants the better design instead of the same design issues faster…

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 4, 2017, 7:36am UTC](https://forum.dynamobim.com/t/linking-occupancy-loads-to-a-door-tag-from-occupancy-calculations-in-room-tag/15093/19 "2017-10-04T07:36:14Z")

</div>

> [@Greg\_McDowell](#):
>
> at least not nearly as many

Agree. The more things are standardized, automated and therefore easy to execute, the greater the chance that they will be executed at lower costs in the future.
