I suspected it was easy, but it seems impossible to change leveloverride color in an attachment that is ON another attachment?! (A second level attachment if you like)
PLEASE tell me if you know it is IMpossible as much design relies on this. (but was kept for the last bit, as it seemed so bloody TRIVIAL!!!)
Here is where your code runs into workspace configuration variables. There are CFGVARs which control attachment settings, see MS_REF_DEFAULTSETTINGS and MS_LEVEL_EDIT_NESTED_ATTACHMENT_LEVELS. The uStn keyin REFERENCE SET NESTOVERRIDES can modify the attachment setting.
I will investigate those!
I got thinking about a workaround though, and maybe I'll stick to that.
("Copying" the nested as references into my sheet)
System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.