API Reference > OdDAI Namespace > Classes > Session Class > Session Methods > Session::createRepoFromFile Method
Session::createRepoFromFile Method
Syntax
C++
RepositoryPtr createRepoFromFile(const OdAnsiString & fileName, const OdAnsiString & name = "");
Parameters 
Description 
const OdAnsiString & fileName 
[in] A file name to open as part of newly created repository.  
const OdAnsiString & name = "" 
[in] A name of repository to create.  

Returns a smart pointer to the newly created repository.

Creates repository with defined name inside current session and opens a fileName as part of the newly created repository.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.