# Hard coded node for "Category"

**URL:** <https://forum.dynamobim.com/t/hard-coded-node-for-category/22761>\
**Category:** Revit\
**Created:** [June 12, 2018, 7:29pm UTC](https://forum.dynamobim.com/t/hard-coded-node-for-category/22761 "2018-06-12T19:29:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jparker1](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jparker1](https://forum.dynamobim.com/u/jparker1)\
**Post date:** [June 12, 2018, 7:29pm UTC](https://forum.dynamobim.com/t/hard-coded-node-for-category/22761/1 "2018-06-12T19:29:05Z")

</div>

Since installing 2.01 Dynamo, I’ve noticed a number of our scripts have lost the selected “Category” they were saved under. “Conduits” is typically set to “Ceiling = Thermal/Air Barrier”.

I’d like to hard code the category on some of our scripts, there has to be an easy way of gathering categories other than the dropdown supplied node in the screenshot. Anyone have any tips on this?

 ![dynss1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06521aaf76a6b7cd8f0e950e4a90538de70776b8.png)

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [June 12, 2018, 7:48pm UTC](https://forum.dynamobim.com/t/hard-coded-node-for-category/22761/2 "2018-06-12T19:48:37Z")

</div>

The Category.ByName node with a string input, or the code block version would be `Elements.Category.ByName("Conduits");`

---

<div class="post-metadata">

**Author:** ![jparker1](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jparker1](https://forum.dynamobim.com/u/jparker1)\
**Post date:** [June 12, 2018, 8:23pm UTC](https://forum.dynamobim.com/t/hard-coded-node-for-category/22761/3 "2018-06-12T20:23:33Z")

</div>

You are awesome! Thank you so much! Working as expected!
