create MethodStatic

Create a ModelSelector to select which Models are displayed by a ViewDefinition.

create(iModelDb: IModelDb, definitionModelId: string, name: string, models: Id64Array): ModelSelector

throws IModelError if unable to create the element.

Parameter Type Description
iModelDb IModelDb The iModel
definitionModelId string The DefinitionModel
name string The name/CodeValue of the ModelSelector
models Id64Array Array of models to select for display

Returns - ModelSelector

The newly constructed ModelSelector element.

Defined in

Last Updated: 30 November, 2023