API Reference > imodeljs-frontend > Views > PerModelCategoryVisibility PerModelCategoryVisibility Namespace Per-model category visibility permits the visibility of categories within a Viewport displaying a SpatialViewState to be overridden in the context of individual GeometricModelStates. If a category's visibility is overridden for a given model, then elements belonging to that category within that model will be displayed or hidden regardless of the category's inclusion in the Viewport's CategorySelectorState. The override affects geometry on all subcategories belonging to the overridden category. That is, if the category is overridden to be visible, then geometry on all subcategories of the category will be visible, regardless of any SubCategoryOverrides applied by the view's DisplayStyleState. Enumeration Name Description PerModelCategoryVisibility.Override Describes whether and how a category's visibility is overridden. Interface Name Description PerModelCategoryVisibility.OverrideEntry Describes one visibility override in a PerModelCategoryVisibility.Overrides. PerModelCategoryVisibility.Overrides Describes a set of per-model category visibility overrides. Function Name Description PerModelCategoryVisibility.createOverrides Defined in core/frontend/src/PerModelCategoryVisibility.ts Line 21 Last Updated: 11 June, 2024