# Dividing Occupancy Areas by Occupancy Load Factor

**URL:** <https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [February 13, 2017, 5:32pm UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583 "2017-02-13T17:32:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![freshprizz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/freshprizz/32/28339_2.png) [@freshprizz](https://forum.dynamobim.com/u/freshprizz)\
**Post date:** [February 13, 2017, 5:32pm UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583/1 "2017-02-13T17:32:37Z")

</div>

I need some assistance taking occupancy areas from an area plan and dividing them by their respective occupancy load factor. Right now, I have to enter this information manually or through BIM Link. There are parameters set up but they are all instance parameters in the area family. In Revit, you can’t edit the system Area family to divide the area of the boundary with a certain number. Is there a way to do that in Dynamo? Any assistance would be much appreciated. Thx

---

<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:** [February 14, 2017, 4:52am UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583/2 "2017-02-14T04:52:40Z")

</div>

It is possible to do the occupancy calculations in Revit using a key schedule to assign the occupancy values. Since it is a key schedule you will be able to assign the use group and the occupancy load factor with one drop down click. The values from the key schedule can then be used to calculate the number of occupants in a space for use in a schedule view on in the project. No Dynamo needed for that.

If you need to show the values in tags you will need to set up a shared parameter and tag first. Then you can redo the math in Dynamo and use an **Element.SetParameterByName** node to assign the value. You may be able to pull the math from the previously created schedule as well with an **Element.GetParameterByName** but I haven’t tested that.

I do not reccomend using Dynamo to set the load factors or occupancy type as it is too easy to miss apply the load factor numbers or for someone to type ‘Asemby’ instead of ‘assembly’ and your script won’t know what to assign.

---

<div class="post-metadata">

**Author:** ![freshprizz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/freshprizz/32/28339_2.png) [@freshprizz](https://forum.dynamobim.com/u/freshprizz)\
**Post date:** [February 14, 2017, 4:40pm UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583/3 "2017-02-14T16:40:32Z")

</div>

Thanks for the help. Unfortunately we do have to tag these values. Please see the attached images for the Dynamo script I wrote. I have the math calculated, I just need to get the numbers back into Revit. Not sure how to do that. I need the numbers after the division to replace the “Occ Load” values (blue arrow).

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/4/1488d9b8701f9d39f81423310fa6899b457d9ca9.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:** [February 14, 2017, 5:07pm UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583/4 "2017-02-14T17:07:57Z")

</div>

Try an **Element.SetParameterByName** with the results of the ‘all elements of category’ as your elements, the string ‘Occ Value’ as the parameter name, and your calculated values as the values.

---

<div class="post-metadata">

**Author:** ![freshprizz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/freshprizz/32/28339_2.png) [@freshprizz](https://forum.dynamobim.com/u/freshprizz)\
**Post date:** [February 14, 2017, 5:23pm UTC](https://forum.dynamobim.com/t/dividing-occupancy-areas-by-occupancy-load-factor/9583/5 "2017-02-14T17:23:10Z")

</div>

Got it figured out. Thanks again!
