# Autodesk.Revit.DB.Category to elements of category

**URL:** <https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500>\
**Category:** Packages\
**Created:** [May 29, 2019, 2:05am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500 "2019-05-29T02:05:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALEBIM2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alebim2/32/40063_2.png) [@ALEBIM2](https://forum.dynamobim.com/u/ALEBIM2)\
**Post date:** [May 29, 2019, 2:05am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/1 "2019-05-29T02:05:43Z")

</div>

Hi, Im tryig to get al rooms by form using UI.MultipleInputForm from DS, but it returns Autodesk.Revit.DB.Category, and i need all the rooms.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d284a96996fa7cba2eecaf2601cde8412585f446.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e4be149bc1c14c902c8120910a960adebb55bdf.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/4/f45d7ef839f632f7a3f655fbf7389b4a00c831e2.png) ![Consultas%2001](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c41211afb9daf8c0ffe2315728cc63240fff7d26.png)

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [May 29, 2019, 2:17am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/2 "2019-05-29T02:17:16Z")

</div>

like this?

 ![room_data-shapes](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13813d33dcbdc37f0e85446ab575be407cc06b0c.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:** [May 29, 2019, 2:17am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/3 "2019-05-29T02:17:30Z")

</div>

If you need to be able to change / adjust the Category, you can use the Category.ByName node on the output of the UI.MultiInputForm++ and just use the Category name for both the Key and the value input on the Dropdown.

---

<div class="post-metadata">

**Author:** ![ALEBIM2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alebim2/32/40063_2.png) [@ALEBIM2](https://forum.dynamobim.com/u/ALEBIM2)\
**Post date:** [May 29, 2019, 2:29am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/5 "2019-05-29T02:29:59Z")

</div>

Thanks RevitNoob. The idea is to select one category from a lista of categories…in this case the categry i will choose is rooms, and then i want to obtain all elements of this category. but using the "all elements of category "node it desn[t works…may be i have to transform the Autodesk.Revit.DB.Category before i obtain the elements

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c2bf640e450061bbaadb8465f8221570795e6d2.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:** [May 29, 2019, 2:34am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/6 "2019-05-29T02:34:40Z")

</div>

See my post above. I thought you were looking for something else after re-reading the post, but perhaps not.

---

<div class="post-metadata">

**Author:** ![ALEBIM2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alebim2/32/40063_2.png) [@ALEBIM2](https://forum.dynamobim.com/u/ALEBIM2)\
**Post date:** [May 29, 2019, 2:40am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/7 "2019-05-29T02:40:21Z")

</div>

Sean , I wil Try the way you show me. Thanks

---

<div class="post-metadata">

**Author:** ![ALEBIM2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alebim2/32/40063_2.png) [@ALEBIM2](https://forum.dynamobim.com/u/ALEBIM2)\
**Post date:** [May 29, 2019, 2:43am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/8 "2019-05-29T02:43:40Z")

</div>

It works perfect for me , thanks Sean

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/6/760c5a6eb9f2c3eb4f0657fb29cfc0fc5f0bbea5.png)

---

<div class="post-metadata">

**Author:** ![jaialcan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaialcan/32/114853_2.png) [@jaialcan](https://forum.dynamobim.com/u/jaialcan)\
**Post date:** [August 23, 2020, 8:00am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/9 "2020-08-23T08:00:55Z")

</div>

Thanks @ALEBIM2 and @SeanP. I tried to do as explained but it is not working properly. @Mostafa_El_Ayoubi

 ![4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/892f20f8c712f2ead0ea4085011e3261c538fc54.jpeg) ![5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/c/bc3c65a7b854a34e0b48d4f5fcf02df8e0d682bc.jpeg)

---

<div class="post-metadata">

**Author:** ![jaialcan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaialcan/32/114853_2.png) [@jaialcan](https://forum.dynamobim.com/u/jaialcan)\
**Post date:** [August 23, 2020, 8:28am UTC](https://forum.dynamobim.com/t/autodesk-revit-db-category-to-elements-of-category/36500/10 "2020-08-23T08:28:16Z")

</div>

I found a way by using in the MultipleInputForm ++ node the Category name(s) as Key(s) and Value(s).  
So the selection goes directly with the name in it.  
Thanks
