Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
_sdaiCreateRepositoryFromFile Function
Syntax
C++
DAI_EXPORT SdaiRep _sdaiCreateRepositoryFromFile(SdaiSession session, SdaiString fileName, SdaiString name);

Creates a new repository from a specified file within the current SDAI session.

Parameters
Description
session
[in] A session instance.
fileName
[in] A string that contains the file name.
name
[in] A string that contains the repository name.

The created repository instance represented with its handler if the repository was successfully created; otherwise, the function returns the NULL pointer.  

instance of the created repository, in other case NULL

If the name of the repository is empty then the name of the file is used as the repository name. If the file contains several data sections (file_description.implementation_level equals to "3" or higher), every model gets the name predefined in file; otherwise (file_description.implementation_level equals to 2 ("2;1", "2;2") only the single model with the name "default" is created.

File: sdai.h

Copyright © 2002-2022. Open Design Alliance All rights reserved.