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 | 541 | September 17, 2018 | |
| Categories vs. Category.ByName Discrepancy in 2.13 | 17 | 1660 | May 10, 2024 | |
| All Elements of Category | 11 | 5069 | July 19, 2017 | |
| Hard coded node for "Category" | 2 | 880 | June 12, 2018 | |
| Bug: Category.ByName selects Analytical Surfaces for some categories? | 2 | 102 | February 21, 2024 |