create MethodStatic

Create a CategorySelector to select which categories are displayed by a ViewDefinition.

create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, categories: Id64Array): CategorySelector

throws IModelError if unable to create the element.

Parameter Type Description
iModelDb IModelDb The iModel
definitionModelId Id64String The DefinitionModel
name string The name of the CategorySelector
categories Id64Array Array of categories to select for display

Returns - CategorySelector

The newly constructed CategorySelector element.

Defined in

Last Updated: 13 June, 2024