2024年3月24日发(作者:)

sdaiOpenModelBN

Opens a model and its belonging schema. This functions differs slightly from the official

SDAI definition because the IFC Engine DLL is able to open repository, model and

schema in 1 call. It returns the modelID or zero if the model could not be created.

函数功能:打开IFC模型及其schema

返回值:modelID或者NULL

SDAI(Standard Data Access Interface)是基于STEP的产品数据交换规范标准系列的

一个重要的技术组成部分。

Syntax (C/C++/C#)

int sdaiOpenModelBN(

int

repository

,

char

*fileName

,

char

*schemaName

);

Syntax (Visual Basic)

sdaiOpenModelBN(

ByVal

repository

as Long,

ByVal

fileName

as String,

ByVal

schemaName

as String

) as Long

Parameters

repository

[in] Unused, the IFC Engine DLL currently (8 March 2006) only supports exactly 1

repository for each model.

fileName

[in] Pointer to a string containing the name and path of the file that will be opened.

schemaName

[in] Pointer to a string containing the name of the schema belonging to the file mentioned

in fileName. If this string is referring to a non-existing file no schema will be loaded,

preferred use is in that case “” (empty string). If this pointer is empty the default schema

for this file is loaded (using the knowledge of the IFC Engine Viewer).

Return Value

sdaiCreateModelBN

Creates a new model instantiated from a specific schema. It returns the modelID, zero if

the model could not be created.

Syntax (C/C++/C#)

int sdaiCreateModelBN(

int

repository

,

char

*fileName

,

char

*schemaName

);

Syntax (Visual Basic)

sdaiCreateModelBN(

ByVal

repository

as Long,

ByVal

fileName

as String,

ByVal

schemaName

as String

) as Long

Parameters

repository

[in] Unused, the IFC Engine DLL currently (8 March 2006) only supports exactly 1

repository for each model.

fileName

[in] Pointer to a string containing the name and path of the file that will be opened.

schemaName

[in] Pointer to a string containing the name of the schema belonging to the file mentioned

in fileName. If this string is referring to a non-existing file no schema will be loaded,

preferred use is in that case “” (empty string). If this pointer is empty the default schema

for this file is loaded (using the knowledge of the IFC Engine Viewer).

Return Value