Collecting all elements will eventually be unbearable for your DYN’s speed. I suggest looking at the previous threads where this came up.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Category.ByName vs Element.GetCategory | 0 | 526 | September 17, 2018 | |
| Categories vs. Category.ByName Discrepancy in 2.13 | 17 | 1592 | May 10, 2024 | |
| All Elements of Category | 12 | 4956 | July 19, 2021 | |
| Hard coded node for "Category" | 2 | 859 | June 12, 2018 | |
| Bug: Category.ByName selects Analytical Surfaces for some categories? | 2 | 86 | February 21, 2024 |