Message 1 of 5
Find Temporarily Hidden Elements In Revit View
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
The question is also posted on StackOverflow: in case people want points there 🙂
http://stackoverflow.com/questions/42071103/find-temporarily-hidden-elements-in-revit-view