API Reference > imodeljs-backend > ViewDefinitions > ModelSelector > create 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 core/backend/src/ViewDefinition.ts Line 65 Last Updated: 12 June, 2024