API Reference > imodeljs-backend > Elements > RenderMaterialElement > insert insert MethodStatic Insert a new RenderMaterial into a model. insert(iModelDb: IModelDb, definitionModelId: string, materialName: string, params: RenderMaterialElement.Params): string throws IModelError if unable to insert the element. Parameter Type Description iModelDb IModelDb Insert into this iModel definitionModelId string Insert the new Texture into this DefinitionModel materialName string The name/CodeValue of the RenderMaterial params RenderMaterialElement.Params Parameters object which describes how to construct the RenderMaterial Returns - string The Id of the newly inserted RenderMaterial element. Defined in core/backend/src/Material.ts Line 136 Last Updated: 11 June, 2024