Do you know how to hide link elements
Hey,
I believe there is no way programmatically to do it… The linked elements do not have the ishidden method exposed in the API.
You can use Dynamo to create a view filter and add it to views, if worksets are enabled you can use ‘shared levels and grids’ otherwise you’ll need a type name or similar. You may well find it just as quick to use native Revit and View Templates to do this…
Hope that helps,
Mark