# Making a Category names, BuiltInCategory and category Object dictinary

**URL:** <https://forum.dynamobim.com/t/making-a-category-names-builtincategory-and-category-object-dictinary/70957>\
**Category:** Share\
**Tags:** revit, python, dynamo\
**Created:** [December 1, 2021, 11:29am UTC](https://forum.dynamobim.com/t/making-a-category-names-builtincategory-and-category-object-dictinary/70957 "2021-12-01T11:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrej.Licanin](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Andrej.Licanin](https://forum.dynamobim.com/u/Andrej.Licanin)\
**Post date:** [December 1, 2021, 11:29am UTC](https://forum.dynamobim.com/t/making-a-category-names-builtincategory-and-category-object-dictinary/70957/1 "2021-12-01T11:29:59Z")

</div>

I would like to share a simple dict that has helped me alot during my work.  
It allows for easy access to all categories, names and its BUIC enums from 1 place.

I hope others will find this as useful as I did.

```auto
#get category objects
cats=doc.Settings.Categories
#get their names
catNames=[i.Name for i in cats]
#convert Names to BultInCategories
buicCats=[BuiltInCategory(i.Id.IntegerValue) for i in cats]

#create a list
sublist=[buicCats,cats]
#transpose it
transSublist=[list(i) for i in zip (*sublist)]
#zip it
zipObj=zip(catNames,transSublist)
#create a dict withe the format { catName, [built in name, cat object]}
catDict=dict(zipObj)

```

The output looks like this.  
 ![2021-12-01 12_25_13-Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13a8a62f852f3498fe75e24212dc5a8534c5bed4.png)
