Close

Relief for ODA Team in Ukraine

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

Creates a new repository from memory buffer that contains Step Physical File data within the current SDAI session

Parameters
Description
session
[in] A session instance.
bufferedModel
[in] A memory buffer that contains model in Step Physical File format.
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.