Skip to main content
1-Visitor
November 29, 2017
Solved

Combining Map Keys

  • November 29, 2017
  • 3 replies
  • 4791 views

I'm re-doing a somewhat complicated map key that quit working when we switched from Creo2 to Creo4. I've broken it down into smaller segments. Now I want to combine them all into a single map key. If I run them individually in sequence they run fine. As soon as I merge them into one large map key they don't work right. If I compare the trail file from when I run each step individually the only difference I can see is the following command placed between my two map key commands:

~ Trail `UI Desktop` `UI Desktop` `ActivateOnFocus` \
`main_dlg_w2`

If I put this command into my merged map key file it still doesn't work.

 

Any suggestions for how to debug this and get it working would be greatly appreciated.

Thank you!

Best answer by Rex

Not solved yet. I've contacted PTC. They contacted me and I showed them the issue.

3 replies

23-Emerald III
November 29, 2017

Have your 1 mapkey run the other 4 mapkeys. No merge needed.

Doubt you will see any time difference as they run and easier to debug or modify the segments.

Rex1-VisitorAuthor
1-Visitor
November 29, 2017

I tried that and that didn't work either. I've submitted a ticket to technical support.

Thank you!

23-Emerald III
November 29, 2017

What I have done when I hd to rebuild mapkeys is to write down the steps so when building the mapkey itself, you don't forget one click or entry that makes it fail.

Step through the mapkeys step by step to get the proper sequence.

 

1-Visitor
November 30, 2017

Is there usally a semicolon at the end? Also, any line ending in "\" can have that character removed and the text on the following line brought up. For some reason the mapkeys are recorded with line-wrapping far shorter than the mapkey interpreter can deal with, making the mapkeys much tougher to read than is necessary.

 

If something is broken in the mapkey interpreter, then something is broken in the trailfile interpreter as well. I hope that isn't the case.

 

You should be able to just copy the entire mapkey execution from the trail file and use that - open the file, run each mapkey, and copy-paste that segment as captured by the trailfile into a mapkey rather than trying to patch in one line.

HamsterNL
18-Opal
December 1, 2017

A mapkey can run another mapkey.

 

What happens when your first mapkey calls the second mapkey as his last step?

Rex1-VisitorAuthor
1-Visitor
December 4, 2017

Thanks to everyone for all your great suggestions.

21-Topaz I
December 8, 2017

@Rex

Has this been solved?