Revit 2019 API, element.CanBeHidden returning false for 2019, true for 2018

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
We have an application that imports models from Tekla into Revit, via the Revit API. The application has, over the years, been migrated from Revit 2013 to Revit 2018 and I am currently updating and testing the application for Revit 2019. All looks good apart from when I try and hide objects using the Revit 2019 API (we typically hide the void cut objects).
If I import a simple model using the Revit 2018 API element.CanBeHidden(view) returns true and the relevant objects are hidden (view.HideElements) without any problems. At 2019, the same imported model and objects will return false and fail to be hidden.
I reviewed the ref help and forum and cannot see any thing that indicates an issue or a revised way of working, although I may well be missing something so any feedback would be greatly appreciated.
Many thanks