I've got a method that checks on some visibility issues in Revit. The problem is that it throws an error on an extremely common issue: "a user manually hiding the element in it's view".
This line of code
public bool IsElementManuallyHidden(View view, Element element)
{
return view.IsElementVisibleInTemporaryViewMode(TemporaryViewMode.RevealHiddenElements, _element.Id);
}
throws an ArgumentExceptionError
stating that: "This view mode is not supported for checking element visibility."
Anyone know of any potential workarounds?