Get Views by Category ID

For example, this doesn’t work.

The issue is NOT with the view, it is referencing the correct view and there are definitely elements in it. For example, if I select a section / detail element and grab that category, it works.

But I don’t want to have to select a section every time, I want to roll-this out via pyrevit and have it work with one-click.

By the looks of it, I need to get the OST_Viewers.

I don’t much care if I use the “OST_Viewers” or the “ID,” I just need some way to get the correct category. In my localized version, I cannot find it. I’ve just spent another 30 Minutes on it and am nowhere closer to solving the issue.

I also found this post: