Override Graphics from Link model elements - Python

Hi guys,

I believe the Revit API did not expose that so far. However, I wanted to know if I am wrong or if someone have done it somehow.

In a view or multiple views, can we override the linked files’ active workset using Python?

The normal way to that in Revit will be:

< Visibily/Graphic Overrides > < Revit Links >< select the instance> <click under display Settings: “Custom” ><“Overide display settings for this instance”>< Worksets choose check the workset(s) I want>< Step and repeat for all Linked File Instances>…

Any help will be much appreciated!

Thanks

@antoniocanerosan try this: