API Reference > imodeljs-frontend > IModelConnection > SnapshotConnection > openFile openFile MethodStatic Open an IModelConnection to a read-only snapshot iModel from a file name. openFile(filePath: string): Promise<SnapshotConnection> note This method is intended for desktop or mobile applications and should not be used for web applications. Parameter Type Description filePath string Returns - Promise<SnapshotConnection> Defined in core/frontend/src/IModelConnection.ts Line 682 Last Updated: 11 June, 2024