Override Subcategory Line Colour?

Hi all, I’m trying to put together a script to set the colour overrides for subcategories in a view:

I’ve tried using the clockwork node to get subcategories but is is producing a “null” result
The subcategories are custom object styles which I have made and applied to geometry within families.

I’m trying to achieve something like this:

Even better if anyone knows a way to override the surface materials and transparency of subcategories (but since Revit doesn’t allow that out of the box i think that may be a big ask)

I’m using Revit 2023 with dynamo 2.16. Here is my graph so far:
OverrideSubCategory.dyn (26.6 KB)

Really appreciate any pointers!

Hello @Andy_Grout …try take a look into Genius Loci, there are nodes for handle subcategories…hope it could help

Also make sure you have the IronPython 2.7 package installed.

Yes, I think this may be the issue. Unfortunately my work laptop does not allow it to be installed. I may have to wait until the bugs are fixed and nodes are made compatible with Python 3

EDIT: removed example of Dynamo issue as I realised the mistake was due to my own faulty inputs.

Likely a memory issue, restart the CPU and see if it persists.