So i tried using the View.SetCategoryOverrides OOTB to turn on and off some of the categories in Visibility graphics but the result was not what it was intended.
The result is that the View.SetCategoryOverrides OOTB node temporary hide.isolate element instead. attached below is the graph and result and dynamo version im using.
Revit 2016 by the way.
Any help on this issue is much appreciated.