# Question about dictionaries

**URL:** <https://forum.dynamobim.com/t/question-about-dictionaries/113418>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [December 12, 2025, 11:09am UTC](https://forum.dynamobim.com/t/question-about-dictionaries/113418 "2025-12-12T11:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RevitRobot](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/revitrobot/32/179241_2.png) [@RevitRobot](https://forum.dynamobim.com/u/RevitRobot)\
**Post date:** [December 12, 2025, 11:09am UTC](https://forum.dynamobim.com/t/question-about-dictionaries/113418/1 "2025-12-12T11:09:57Z")

</div>

I am upgrading my Dynamo skills I started looking into some old scripts and found this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0cd56abe0eaf25ac34c03ada09e4b95e0d8f1df3.png)  
I use this set of nodes to verify which Floor / Wall and Ceiling types there are and then grab their indices.  
So let’s say I have Floor type FT1, FT2, FW1 (wooden floor), then it skips FT3-15 en passes indices 0, 1 and 16

The rest of the script grabs these _Type codes_ to:  
Make a filterrule, create filled regions and tag them. Both using their related RGB code

This way between projects, all legends have the same color related to the codes.

I was wondering if converting the Dictionaries would be easier and I was curious on how to store such a Dictionary within Dynamo

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [December 12, 2025, 10:04pm UTC](https://forum.dynamobim.com/t/question-about-dictionaries/113418/2 "2025-12-12T22:04:41Z")

</div>

@RevitRobot

> [@RevitRobot](#):
>
> Dictionaries would be easier

Yes, probably. I’d suggest posting some sample data (you’ll get better answers if others need to do less typing)

Dictionaries are fairly straightforward- basically pairs of keys and values. The key point is that they don’t rely on indices and lists being in the same order. Take a look at the primer:

> **[What is a Dictionary | The Dynamo Primer](https://primer.dynamobim.org/09_Dictionaries/9-1_What-is-a-dictionary.html)**
