Thank you for your reply. When I tried this, the Element.GetParameter component wouldn’t recognise ‘Viz’ as a parameter name for my family. Is this a default name or is it something that is specific to your project?
I then tried to find if there could be the same type of parameter in my project byt with a different name. The only parameter that I could find to have anything to do with the visibility was the Visibility/Graphics overrides parameter, but when I try to set this parameter, the element automatically loses the reference from the revit document without being hidden first.
Do you thing this is the correct parameter I’m working with or should it always be called Viz?