Versions Compared

Key

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

...

Code Block
languagecpp
themeConfluence
EdmiError edmiGetInstanceOfStepId(SdaiModel       modelId,
                                   SdaiInteger     stepId, 
                                   SdaiAppInstance *instId); 

The functions edmiReadStepFile and edmiImportStepFile can create a STEP identifier model that holds the correspondence between an instance identifier on the STEP file (stepID) and the instanceID of the same instance in the EDMdatabase. This function will return the numeric instanceID that corresponds to the specified numeric stepID.

Info

...

No STEP identifier model can be created when the ADD_TO_EXISTING_MODEL option is enabled in the edmiReadStepFile or the edmiImportStepFile operation

The actual data model must be open before this function can be successfully performed.

...

Arguments

...


TypeNameComment
SdaiModel

modelId

A numeric modelID that uniquely identifies the data model of interest in the EDMdatabase. This is the data model created by the edmiReadStepFile function when the related STEP file was read into the EDMdatabase.

  The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

SdaiInteger

stepID

A numeric identifier that uniquely identifies an entity instance on the STEP file that was imported into the specified data model in the EDMdatabase.

SdaiAppInstance

instId

Address of a variable that will receive a numeric instanceID that uniquely identifies the instance in the EDMdatabase that corresponds to the specified stepID in the related STEP file.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 SdaiAppInstance instId;
 EdmiError rstat;
 SdaiInteger stepId;
 SdaiModel modelId;
 . . .
 if (rstat = edmiGetInstanceOfStepId (modelId, stepId, &instId)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiGetInstanceOfStepId \n",

...

 
 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 printf("\nstepId: #%lu = instanceId: %lu", stepId, instId);

...


 . . .

 

See also

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