edmiWriteEdmiTrace


 

EdmiError edmiWriteEdmiTrace(SdaiString traceInfo);

Writes a string to an open trace file.

Arguments


TypeNameComment
SdaiStringtraceInfoThe string to write to the trace file

Return Value


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

Options


 

Example


 

 EdmiError rstat, error;
 SdaiInteger nErr, nWrn, userStatus;
 SdaiModel myTargetModelId;
  
 /* Define the trace */
 rstat = edmiTrace(DEFINE_TRACE, TRACE_TO_FILE,
 1073741824, "c:/tmp/MyTrace.trc"); 
  
 /* Import the first model while tracing */
 rstat = edmiTrace(START_TRACE, 0, 0, NULL);
 rstat = edmiReadStepFile("c:/data/MyFirstModel.stp", NULL, NULL,
 "DataRepository", NULL, "MyFirstModel",  
 "MySourceSchema", NULL, 0, 0, &error);  
  
 /* Write a comment in the trace file */
 rstat = edmiWriteEdmiTrace("MyFirstModel is now imported");
  
 /* Import the second model without tracing */
 rstat = edmiTrace(STOP_TRACE, 0, 0, NULL);
 rstat = edmiReadStepFile("c:/data/MySecondModel.stp", NULL, NULL,
 "DataRepository", NULL, "MySecondModel",  
 "MySourceSchema", NULL, 0, 0, &error);  
  
 /* Convert the models while tracing */
 rstat = edmiTrace(START_TRACE, 0, 0, NULL);
 rstat = edmiConvertModelsBN(
 "DataRepository.MyFirstModel DataRepository.MySecondModel", 
 "MyModelMap", "DataRepository.MyTargetModel",  
 NULL, NULL, NULL, 0, NULL, 0, &myTargetModelId,  
 &userStatus, &nWrn, &nErr);  
  
 /* Stop tracing and close the trace file */
 rstat = edmiTrace(CLOSE_TRACE, 0, 0, NULL);
 . . .

 

See also

Filter by label

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