Versions Compared

Key

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

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiWriteEdmiTrace(SdaiString traceInfo);

Writes a string to an open trace file.

...

Arguments

...

TypeNameComment
SdaiStringtraceInfoThe string to write to the trace file

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"