# Category.ByName gives wrong elements

**URL:** <https://forum.dynamobim.com/t/category-byname-gives-wrong-elements/99978>\
**Category:** Uncategorized\
**Created:** [April 12, 2024, 9:18am UTC](https://forum.dynamobim.com/t/category-byname-gives-wrong-elements/99978 "2024-04-12T09:18:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [April 12, 2024, 1:44pm UTC](https://forum.dynamobim.com/t/category-byname-gives-wrong-elements/99978/4 "2024-04-12T13:44:49Z")

</div>

Collecting all elements will eventually be unbearable for your DYN’s speed. I suggest looking at the previous threads where this came up.

> [@Lines Category in Dynamo for Revit 2023 and later](https://forum.dynamobim.com/t/lines-category-in-dynamo-for-revit-2023-and-later/99236/9):
>
> Just use the category by id operation. This was discussed previously here:

---

_[View the full topic](https://forum.dynamobim.com/t/category-byname-gives-wrong-elements/99978)._
