Skip to main content
8-Gravel
September 18, 2023
Question

Edit prints to Message log - Creo 4.0

  • September 18, 2023
  • 2 replies
  • 3922 views

Hello,

Might be a beginner's question but how and where do I edit the messages that are printed to Message log? 

 

In my local CAD environment I have created a mapkey that performs operation X. I want to print a message like: "Execution of Operation X" when I use the mapkey. 

 

Picture below depicts examples of printed messages. How and where I do edit these? 

I use Creo 4.0.

Thanks in advance!

2 replies

21-Topaz II
September 18, 2023

This doesn't seem to be possible with native Creo. The only way I have found to output text to the user is via the PAUSE command, which interrupts your mapkey execution. Here's a question from the past that is very similar to yours:

 

https://community.ptc.com/t5/System-Administration/injecting-message-into-message-log/td-p/579241 

 

It doesn't seem to indicate a way to do exactly what you want.

8-Gravel
September 18, 2023

Hello Ken,

Thank you for your input. I tried using the PAUSE and had success in generating an output message in a popup-window. However, I want the message in the message log... 

Thanks for the link. Maybe it's a Toolkit project to make it work with the message log? 

// Erik

24-Ruby III
September 18, 2023

Hi,

I use following mapkeys

!*** close window
mapkey ww ~ Select `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Activate `main_dlg_cur` `main_dlg_cur`;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup`;

!*** erase not displayed
mapkey ee ~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdModelEraseNotDisp` ;~ Activate `file_erase_nd` `ok_pb`;

!*** close window, erase not displayed
mapkey qq %ww;%ee

If I open part and then type qq then trail file contains message ... !playing mapkey qq

Maybe analyzing the contents of trail file resolves your "problem.

8-Gravel
September 18, 2023

Hello Martin, 

Thank you for your input. I looked into the trail file and I can see the execution process of mapkeys and also the differents prints in the message log. 

For example, in our CAD configuration file we have a mapkey that creates pdf-files upon typing "pdf". In the trail file, I can see the execution of the command and I can also see the output of a message to the message log. When a pdf has been generated, it produces an output to the message log. See attached screenshots.

But I don't understand where the messages are located/defined from the beginning. I have looked into both the .config file and .trail file and they are not defined inside there. 

Suggestions are much appreciated!
/Erik

24-Ruby III
September 18, 2023

Hi

messages displayed in message area are hardcoded. Users do not have an access to them.

Note: I don't understand why you need to view your own messages in message area.