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: Id64String, name: string, models: Id64Array): ModelSelector throws IModelError if unable to create the element. Parameter Type Description iModelDb IModelDb The iModel definitionModelId Id64String 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 350 Last Updated: 13 June, 2024