API Reference > imodeljs-backend > iModels > TemplateModelCloner > constructor constructor Method Construct a new TemplateModelCloner TemplateModelCloner(sourceDb: IModelDb, targetDb: IModelDb = sourceDb): TemplateModelCloner note The expectation is that the template definitions are within the same iModel where instances will be placed. Parameter Type Description sourceDb IModelDb The source IModelDb that contains the templates to clone targetDb IModelDb Optionally specify the target IModelDb where the cloned template will be inserted. Typically should be left undefined. Returns - TemplateModelCloner Defined in core/backend/src/IModelTransformer.ts Line 906 Last Updated: 11 June, 2024