Category.By Name for room separation line not working

This script has been working for a while on old versions like 2020. Some of it isn’t working on 2023.
Lines - <Room Separation> isn’t working with Category.ByName.

I prefer this over Categories since the list changes from year to year.

Error message:

While the list does change from year to year, the strings are serialized as a dictionary as of 2021, so you can likely utilize the dropdown going forward (assuming you are no longer in 2020, which hasn’t been supported for 8 months, and therefore hasn’t had even security updates for a quite awhile…).

hi
try this perhaps


cordially
christian.stan

That is good to hear! We have a couple projects wrapping up in 2020 still and can’t upgrade.

That worked! Thanks so much, I tried a few iteration but not that one.

I like to use the category id as that is far more stable. Monocle’s dropdown converter uses the id.
20231215-categoryById