API Reference > imodeljs-backend > iModels > IModelExportHandler > onExportCodeSpec onExportCodeSpec MethodProtected Called when a CodeSpec should be exported. onExportCodeSpec(_codeSpec: CodeSpec, _isUpdate: boolean | undefined): void note This should be overridden to actually do the export. Parameter Type Description _codeSpec CodeSpec _isUpdate boolean | undefined Returns - void Defined in core/backend/src/IModelExporter.ts Line 41 Last Updated: 13 June, 2024