# Get element Types with string

**URL:** <https://forum.dynamobim.com/t/get-element-types-with-string/65202>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 16, 2021, 1:49pm UTC](https://forum.dynamobim.com/t/get-element-types-with-string/65202 "2021-06-16T13:49:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cree-G](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Cree-G](https://forum.dynamobim.com/u/Cree-G)\
**Post date:** [June 16, 2021, 1:49pm UTC](https://forum.dynamobim.com/t/get-element-types-with-string/65202/1 "2021-06-16T13:49:45Z")

</div>

Hi

Is it possible to get Element Types with a string? I don’t want to use the drop down Node Element Types.

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

I also made this with Category (Category.ByName).

Regards

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 16, 2021, 2:18pm UTC](https://forum.dynamobim.com/t/get-element-types-with-string/65202/2 "2021-06-16T14:18:36Z")

</div>

Hi,

Use the ElementType.ByName node of Clockwork package.  
 ![ElementType.ByName](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/3872a8589d05651990338ebc77115dbf9b8dffd0.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 16, 2021, 2:18pm UTC](https://forum.dynamobim.com/t/get-element-types-with-string/65202/3 "2021-06-16T14:18:57Z")

</div>

If you need the exact Type you can use ElementType.ByName. Otherwise you can “hard code” the element type in a codeblock: [Code Block For View Drafting - #5 by Raja](https://forum.dynamobim.com/t/code-block-for-view-drafting/46106/5)

---

<div class="post-metadata">

**Author:** ![Cree-G](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Cree-G](https://forum.dynamobim.com/u/Cree-G)\
**Post date:** [June 16, 2021, 2:22pm UTC](https://forum.dynamobim.com/t/get-element-types-with-string/65202/4 "2021-06-16T14:22:40Z")

</div>

Thank you for the Solution

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/4/64f528bb7f7b5ebb3343f0cf449754594445456d.png)
