# Get Room Area by Room Name

**URL:** <https://forum.dynamobim.com/t/get-room-area-by-room-name/68038>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 9, 2021, 4:19pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038 "2021-09-09T16:19:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_stjohn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@c\_stjohn](https://forum.dynamobim.com/u/c_stjohn)\
**Post date:** [September 9, 2021, 4:19pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/1 "2021-09-09T16:19:26Z")

</div>

I have multiple units in my floor plan (Unit 1a, 2a, 2b, 3a, etc.). I would like to be able to get all the areas for all of the 1a unit types, all of the 2a unit types, etc.

I am currently able to get the room names separated, but it is only producting 1 room name and it’s area, not all of them.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f02eed45ed4c8bc97a52eea0e9ebd80010bbc46e.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 9, 2021, 4:26pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/2 "2021-09-09T16:26:02Z")

</div>

Any reason why you don’t just use a Schedule?

For Dynamo look at GroupByKey.

---

<div class="post-metadata">

**Author:** ![c\_stjohn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@c\_stjohn](https://forum.dynamobim.com/u/c_stjohn)\
**Post date:** [September 9, 2021, 7:14pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/3 "2021-09-09T19:14:59Z")

</div>

Thanks! I’ll look at GroupByKey

We have lofted units where i’ll need to multiply by a percentage and some of the 2a units are slightly off in square footage. I believe dynamo will do it quicker and i’ll be able to apply it to our other projects as well. I’m new to dynamo so trying to set up some scripts that would be useful for the office. & calculating leasable SF is one i’m trying to figure out now.

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [September 9, 2021, 7:18pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/4 "2021-09-09T19:18:23Z")

</div>

Try Cross-Lacing the GetParameterValueByName.

---

<div class="post-metadata">

**Author:** ![c\_stjohn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@c\_stjohn](https://forum.dynamobim.com/u/c_stjohn)\
**Post date:** [September 9, 2021, 7:34pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/5 "2021-09-09T19:34:34Z")

</div>

Cross-Lacing worked and it now shows me each unit and its SF. However, I now need to group all of the 2.5A, all of the 1A, etc. I tried GroupByKey but I’m not sure what ‘key’ to enter in to make them sort accordingly? Thanks for everyone’s help so far!

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f04b65020a0cdf68c07718d7969190f86ef3305e.png)

---

<div class="post-metadata">

**Author:** ![c\_stjohn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@c\_stjohn](https://forum.dynamobim.com/u/c_stjohn)\
**Post date:** [September 10, 2021, 2:29pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/6 "2021-09-10T14:29:52Z")

</div>

I’ve tried it a slightly different way, where I’ve gotten it to break down into a specific apartment type (2A being the example). Anyone know the best way to make it show the apartment’s area from here?

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 10, 2021, 2:34pm UTC](https://forum.dynamobim.com/t/get-room-area-by-room-name/68038/7 "2021-09-10T14:34:15Z")

</div>

> [@c\_stjohn](#):
>
> I tried GroupByKey but I’m not sure what ‘key’ to enter in to make them sort accordingly?

The Room Name.

 ![2021-09-10 16_44_06-Window](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4dcf9a70781ab0ab81bc454ad50b8d7aeba4d7f9.png)  
_Example 1_  
 ![2021-09-10 16_44_06-Window](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/b/5bf4fe3d0c0796461bb83df957963aad2b173a74.png)  
_Example 2_
