Changing a RVT Link's custom graphic override

So I need to change the workset visablity of a RVT link for all the views and all the models in a project. The steps I require are;
Set links Display Settings basics tab to Custom,
Set Worksets to Custom
Uncheck a workset,

Similarly I would need to do this on model & annotation categories. Set the tabs to custom and uncheck what I need.

Does anyone know of any packages that can accomplish this?

Hi @Peter_Jenkins,

These functionalities aren’t currently exposed in the Revit API.
You have to use view templates for this kind of task.

You can vote on the Revit Ideas forum for this feature.
https://forums.autodesk.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&location=idea-board:302&q=link%20graphic%20override