cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

ProMessageDisplay not displaying all messages

MrSteveR_3
14-Alexandrite

ProMessageDisplay not displaying all messages

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!

ACCEPTED SOLUTION

Accepted Solutions

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.

 

 


Martin Hanák

View solution in original post

2 REPLIES 2

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.

 

 


Martin Hanák
MrSteveR_3
14-Alexandrite
(To:MartinHanak)

Hi,

Yes, trail file contains all messages.

Right, including 1 second pause solves it.

Thank you!

Announcements


Top Tags