...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiWriteEdmiTrace(SdaiString traceInfo);
|
Writes a string to an open trace file.
...
Arguments
...
Type | Name | Comment |
SdaiString | traceInfo | The string to write to the trace file |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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) | ||||||
---|---|---|---|---|---|---|
|