Versions Compared

Key

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

...

Code Block
languagecpp
themeConfluence
EdmiError edmiGetStepIdOfInstance(SdaiAppInstance  instId,
                                   SdaiInteger      *stepId);

The function edmiReadStepFile 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 stepID that corresponds to the specified numeric instanceID.

...

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

...

Info

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

...

 

Arguments

...

TypeNameComment
SdaiAppInstance

instId

A numeric instanceID that uniquely identifies the instance in the EDMdatabase to find the corresponding step identifier of.

SdaiInteger

stepID

Address of a variable that will receive the numeric stepID that corresponds to the instance specified by the instId argument. This stepID can be used to identify the actual entity instance on the STEP file that was imported into the EDMdatabase when the actual instance was created in EDMdatabase.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

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

...

 
 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 printf ("\nInstanceID: %lu corresponds to StepID: %ld", instId, stepId);

...


 . . . 

 

See also

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