Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hey guys,
For instance:
for (int j=0; j<5; j++)
{
ProMessageDisplay(message_file_init, "PTAFEX ERROR %0s", somevariable[j]);
}
I have something like below, the text is always the same, only differs the last word which is the variable somevariable[j].
When I launch it with Creo, it only prints the last text message when j=4.
What am I doing wrong and what shall I do so that all messages from j = 0 to 4 get printed?
Thank you!
Solved! Go to Solution.
Hi,
my suggestion ... open Case at PTC Support.
1.)
I guess that trail file contains all messages.
2.)
I guess that Creo spare the space in message area and rewrites similar messages. Include 1 second pause between ProMessageDisplay commands and you will see.
3.)
You can try putting "PTAFEX ERROR %0s", somevariable[j] into variable MSG and use MSG inside ProMessageDisplay command.
Hi,
my suggestion ... open Case at PTC Support.
1.)
I guess that trail file contains all messages.
2.)
I guess that Creo spare the space in message area and rewrites similar messages. Include 1 second pause between ProMessageDisplay commands and you will see.
3.)
You can try putting "PTAFEX ERROR %0s", somevariable[j] into variable MSG and use MSG inside ProMessageDisplay command.
Hi,
Yes, trail file contains all messages.
Right, including 1 second pause solves it.
Thank you!