/
edmiChangeOpenMode
edmiChangeOpenMode
EdmiError edmiChangeOpenMode(SdaiInstance currInst, SdaiAccessMode openMode);
Changes a models or a repository open mode. Use this function to avoid flushing data to the file system when working with big models.
Arguments
Type | Name | Comment |
SdaiInstance | CurrInst | A numeric instanceID that identifies a model or a repository in the EDMdatabase for which open mode is to be changed. |
SdaiAccessMode | OpenMode | The new open mode of the model or repository. Valid modes are: sdaiRO, sdaiRW, sdaiERW and sdaiNOACCESS |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Options
Example
EdmiError rstat; SdaiModel modelId; SdaiAccessMode openMode; . . . edmiGetModelOpenMode(modelId, &openMode); if (openMode != sdaiRW && openMode != sdaiERW) { if (rstat = edmiChangeOpenMode(modelId, sdaiRW)) { printf("\nERROR in edmiChangeOpenMode(): %s" edmiGetErrorText(rstat)); } }
See also
Filter by label
There are no items with the selected labels at this time.
Related content
edmiGetModelOpenMode
edmiGetModelOpenMode
More like this
edmiGetModelOpenModeBN
edmiGetModelOpenModeBN
More like this
sdaiOpenModel
sdaiOpenModel
More like this
Access Mode
Access Mode
More like this
sdaiOpenModelBN
sdaiOpenModelBN
More like this
xpfGetModelOpenModeBN
xpfGetModelOpenModeBN
More like this