API Reference > imodeljs-backend > iModels > IModelExporter > exportCodeSpecById exportCodeSpecById Method Export a single CodeSpec from the source iModel. exportCodeSpecById(codeSpecId: string): Promise<void> note This method is called from IModelExporter.exportChanges and IModelExporter.exportAll, so it only needs to be called directly when exporting a subset of an iModel. Parameter Type Description codeSpecId string Returns - Promise<void> Defined in core/backend/src/IModelExporter.ts Line 380 Last Updated: 11 June, 2024