edmiGetStepIdOfInstance

EdmiError edmiGetStepIdOfInstance(SdaiAppInstance  instId,
                                   SdaiInteger      *stepId);

The function edmiReadStepFile can create a STEP identifier model that holds the corresponding  instanceID  within the EDMdatabase for each instance identifier on the STEP file (stepID). 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.

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


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 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

There are no items with the selected labels at this time.