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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Edit prints to Message log - Creo 4.0

EK_10544941
4-Participant

Edit prints to Message log - Creo 4.0

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!

8 REPLIES 8

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.

EK_10544941
4-Participant
(To:KenFarley)

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

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.


Martin Hanák

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

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.


Martin Hanák

Hello Martin,

The mapkey I have defined will be used by many users in our CAD environment. That's why I want to display a message in the message log, to let the user know if the mapkey that performs operation X was successful or not. 

Can I as an administrator modify the messages in the message log? Is it a ToolKit project? I'm somewhat of a beginner when it comes to Creo so any advice in the right direction is very helpful. 

Thanks!

Erik


@EK_10544941 wrote:

Hello Martin,

The mapkey I have defined will be used by many users in our CAD environment. That's why I want to display a message in the message log, to let the user know if the mapkey that performs operation X was successful or not. 

Can I as an administrator modify the messages in the message log? Is it a ToolKit project? I'm somewhat of a beginner when it comes to Creo so any advice in the right direction is very helpful. 

Thanks!

Erik


Hi,

1.] please be aware that no user is watching the content of message area

2.] messages displayed in message area are hardcoded ... not even the administrator has access to them

3.] Toolkit application can write messages into message area ... you would need a Toolkit license and a specialist Toolkit programmer ... both cost a lot of money

4.] how do you recognize if operation X was successful or not ?


Martin Hanák

Hi,

Perhaps a misunderstanding but I mean the message area in the lower part of the Creo window, as seen in the "Message_Log" picture in first post. I think it is quite frequently watched by users to understand what Creo is doing. We have other mapkeys that prints a message in the message log to inform the user if the execution was successful or not.

Maybe it's a ToolKit project then. Will try to investigate that further. 

Thanks for your input Martin, very appreciated. 

/Erik

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags