# Getting elements using their element type

**URL:** <https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [June 14, 2023, 5:42pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746 "2023-06-14T17:42:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![eslam.abdo.taha](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@eslam.abdo.taha](https://forum.dynamobim.com/u/eslam.abdo.taha)\
**Post date:** [June 14, 2023, 5:42pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/1 "2023-06-14T17:42:24Z")

</div>

Hello all,  
I am trying to get a list of elements that have a certain element type but I always get this error and I tried alot of things and tried searching online but couldn’t find any solution.  
Your kind help is highly appreciated.  
Thanks.

 ![Screenshot 2023-06-14 203859](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/8/083a70b8316d733e344f5a332badf62ea606500a.png)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [June 14, 2023, 5:49pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/2 "2023-06-14T17:49:22Z")

</div>

Hi @eslam.abdo.taha .

The node “All Elements of Type” expects a System Type, the node is used to get all walls, roofs, etc.  
If you’re working with FamilyTypes use FamilyInstance.ByFamilyType.

---

<div class="post-metadata">

**Author:** ![eslam.abdo.taha](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@eslam.abdo.taha](https://forum.dynamobim.com/u/eslam.abdo.taha)\
**Post date:** [June 14, 2023, 6:20pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/3 "2023-06-14T18:20:41Z")

</div>

Thanks @Daan for your response.  
Unfortunately, I am working with element type, not family type.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [June 14, 2023, 6:40pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/4 "2023-06-14T18:40:25Z")

</div>

You made duplicates with a new name so there are no elements of the same type?

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [June 14, 2023, 6:58pm UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/5 "2023-06-14T18:58:42Z")

</div>

What is the element type you are plugging in?

---

<div class="post-metadata">

**Author:** ![eslam.abdo.taha](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@eslam.abdo.taha](https://forum.dynamobim.com/u/eslam.abdo.taha)\
**Post date:** [June 15, 2023, 3:41am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/6 "2023-06-15T03:41:59Z")

</div>

@pyXam  
It’s an RNC conduit that I duplicated and renamed it according to data in an excel sheet

 ![Screenshot 2023-06-15 064018](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd9807dbbb06e5d7201295800ad356dea8534c54.png)  
 ![Conduits2Cables_2023-06-15_06-41-34](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/53eaaf4891588b04f912a5b28389e7d3e23ac91c.png)

---

<div class="post-metadata">

**Author:** ![eslam.abdo.taha](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@eslam.abdo.taha](https://forum.dynamobim.com/u/eslam.abdo.taha)\
**Post date:** [June 15, 2023, 3:44am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/7 "2023-06-15T03:44:35Z")

</div>

I tried modelling elements of the new type and still no results

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 15, 2023, 3:51am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/8 "2023-06-15T03:51:53Z")

</div>

We’re you doing this in the UI or in Dynamo? How were you attempting to do either?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 15, 2023, 4:26am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/9 "2023-06-15T04:26:11Z")

</div>

Hi @eslam.abdo.taha you have duplicated a type and think then you try to write to an instance parameter, it isnt possible before the type have an instance…but probably something here could give an idea…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/4/34b2c4571d772730e372a327464c54f53a8a33f6.png)

---

<div class="post-metadata">

**Author:** ![stefan.gokstorp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stefan.gokstorp](https://forum.dynamobim.com/u/stefan.gokstorp)\
**Post date:** [June 15, 2023, 9:17am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/10 "2023-06-15T09:17:50Z")

</div>

![experiment_2023-06-15_11-17-13](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0a07434d114aeaa9edfc61f1af6c3452cb45142.png)  
this should work.

uses Spring nodes and Clockwork package and SEGOKS but you dont need the last just used it tfor sorting. since i dont have the same families as you.

OBS Pay Attention to Lacing.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 15, 2023, 9:30am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/11 "2023-06-15T09:30:08Z")

</div>

Hi @stefan.gokstorp not 100 sure thats the issue, i think user try to write to an instance parameter as when he try connect directly elementype to set parameter it doesnt work…

---

<div class="post-metadata">

**Author:** ![stefan.gokstorp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stefan.gokstorp](https://forum.dynamobim.com/u/stefan.gokstorp)\
**Post date:** [June 15, 2023, 9:40am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/12 "2023-06-15T09:40:39Z")

</div>

ah my bad

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 15, 2023, 9:42am UTC](https://forum.dynamobim.com/t/getting-elements-using-their-element-type/90746/13 "2023-06-15T09:42:49Z")

</div>

Hi Stefan…its just what i think and thats absolutely not sure every time…😉 😉
