I am trying to transfer the properties of view template to other view template I am able to transfer the all the Visibility Graphic setting into other template but some how I didn't find any thing related to transfer the Override Host Layers the option comes under the Model Category tab in Visibility Graphic.
To Transfer the Model Category properties I used the SetCategoryHidden and SetCategoryOverrides methods.
I think there is no support for OverrideHostLayer in Revit API.
To make sure, I asked the development team for you.
Thank you so much @jeremy_tammik for quick reply and forwarding this issue to Development Team.
They reply and say: This function isn't currently exposed in the API, unfortunately. I created a ticket number REVIT-219420 to have it added.
Can't find what you're looking for? Ask the community or share your knowledge.