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

View frequency of mapkey usage in Creo Performance Advisor

View frequency of mapkey usage in Creo Performance Advisor

Over the last 20 years of Pro/ENGINEER and Creo Parametric use, we have accumulated around 100 to 150 "standard" mapkeys in our company-config.pro.
Unfortunately, it is not really possible to track which of these mapkeys are actually used frequently and which are hardly ever used.
Therefore, it would be a great feature if the frequency of mapkey usage could be tracked in Creo Performance Advisor.
This would be a great way to determine which mapkeys have a raison d'être in the central config.pro and which ones could rather be cleaned out.

1 Comment
lhoogeveen
17-Peridot

I would definitely like to understand mapkey usage through the Creo Performance Advisor like the above idea.

 

Here's a workaround in the mean time... you can add this CMD line text at the end of specific mapkeys to understand usage:

 

mapkey(continued) @SYSTEM\@echo off\n\
mapkey(continued) echo MAPKEYNAME,\%date\%,\%username\%>>"W:\\Test\
mapkey(continued) \\mapkey_usage.txt";

 

This open a CMD prompt in Creo with the following commands:

@echo off
echo MAPKEYNAME,%date%,%username%>>"W:\Test\mapkey_usage.txt"

 

Notes:

  • Replace MAPKEYNAME with the name of your mapkey
  • Replace the example "W:\Test\mapkey_usage.txt" with a network drive that works for your company setup.
    • Users will need edit access to be able to write to the text file.
    • You may want to use a UNC path for the network drive to not have to not have to worry about users having the drive mapped
    • You can change the .TXT extension to .CSV if desired.
    • You need to add \ (escape key in mapkey code) to the file path or continue to the next mapkey line. Example: W:\\Test\\mapkey_usage.txt is actually W:\Test\mapkey_usage.txt
  • This does slow the mapkey down slightly and an empty CMD window does briefly flash. I only temporarily add this for something like considering a mapkey for removal.
  • Leave out username if you wish keep the usage info anonymous

Mapkeys lines have a max number of characters, so that's why in the example above the file path is separated into two lines.

!mapkey limit without continue
!2345678901234567890123456789012345678901234567890123456789012345678901234567890
!mapkey limit with continue
!mapkey(continued)12345678901234567890123456789012345678901234567890123456789012345678901234567890