Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagecpp
themeConfluence
SdaiModel edmiGetModel(SdaiRepository repository,
                        SdaiString     modelName);

Returns the numeric modelID that uniquely identifies the specified model in the EDMdatabase. Related function: edmiGetModelBN .

...

Arguments

...


TypeNameComment
SdaiRepository

repository

A numeric repositoryID that uniquely identifies the repository in the EDMdatabase that holds the model of interest.

  The repositoryID is returned by the following operations: edmiCreateRepository , sdaiOpenRepository , sdaiOpenRepositoryBN ,edmiGetRepository , edmiOpenRepository , and edmiOpenRepositoryBN .

SdaiString

modelName

Specifies the name of the model of interest. Model names are case sensitive. A model name is unique within a repository, hence the combination of the arguments <repository> and <modelName> uniquely identifies a model in an EDMdatabase.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 SdaiModel modelId;
 SdaiRepository repository;
 . . .
 modelId = edmiGetModel(repository, "AP203_Bumper");

...


 if (! modelId) {

...


 /* Error in operation */

...

 
 printf("\nError: %s in edmiGetModel\n",

...

 
 edmiGetErrorText(sdaiErrorQuery()));

...

 
 goto error;

...

 
 }
 /* print modelId of model */

...


 printf("\nModelId : %lu", modelId);

...


 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"