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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

understanding a mapkey

Vojtaa
4-Participant

understanding a mapkey

Hello,

I have a question about mapkeys. Is there any possibility to see what exactly does a mapkey do?

I work with mapkeys, which have been created by either CAD engineers or former collegues and I would like to understand exact procedure of the mapkeys (in general).

The simplier ones can be understood from the config file but not the more complicated ones.

I hope I made the question understandable, thanks for any answer.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Trebla
15-Moonstone
(To:Vojtaa)

Hi Vojtaa,

 

You could use, for a moment, these 2 config options in your config.pro:

 

set_trail_single_step yes

visible_mapkeys yes

 

Open Creo, then run the mapkey you want to explore. Close Creo, look for your last Trail file and  copy it to the Desktop or where you want, open Creo, execute your Desktop Trail file (trail.txt), and you will see step by step, with pauses,  what that mapkey did.

 

trail.png

 

 

View solution in original post

9 REPLIES 9
BenLoosli
23-Emerald II
(To:Vojtaa)

What are you trying to do with the mapkeys?

The best way to learn what is in one is to record one and then look at the resulting file.

I do know they are not easy to edit, except in certain areas of the structure.

They are like a snapshot of the trail file. Recording what you do for a short period of time.

Overall, I am not a fan of mapkeys as the user does not learn the system if they do too much with the mapkeys.

Where I do use mapkeys is for very repetitive things that the user must do. Adding corporate parameters to a file is one, recalculating the weight when mass properties change, etc.

 

I seem to recall there was a setting or some such that made the mapkey text saved much less "bloated" that was the default. Is that something we currently have to set or am I remembering something from the long ago?

I checked my config.pro and don't see anything, but I might have forgot to save the setting...

Chris3
20-Turquoise
(To:KenFarley)

You are referring to:

cmdmgr_trail_output yes

 

There are a bunch of tips over here if you are not that familiar with them:

https://community.ptc.com/t5/System-Administration/Mapkey-Writing-Editing-Tips/td-p/443729

Vojtaa
4-Participant
(To:Chris3)

thank you for the link. I'll go through it, I'm sure there will be some usefull information about the topic.


@Vojtaa wrote:

Hello,

I have a question about mapkeys. Is there any possibility to see what exactly does a mapkey do?

I work with mapkeys, which have been created by either CAD engineers or former collegues and I would like to understand exact procedure of the mapkeys (in general).

The simplier ones can be understood from the config file but not the more complicated ones.

I hope I made the question understandable, thanks for any answer.

 


Hi,

there is no easy way to determine the function of a mapkey. If the macro creator has not added descriptive text, then it's probably better to delete the mapkey.

You can split mapkey into several parts - semicolon characters is located at the end of mapkey "building block" and then run these new mapkeys sequentially one by one.


Martin Hanák
Vojtaa
4-Participant
(To:MartinHanak)

Hi Martin, its not that I don't know what the specific mapkey does. The problem is that I don't know how does it do.

An example - the is a mapkey "dtl" which loads the company dimension style to the drawing with different one. I know what does it do, but I would like to learn the way how to do it without a mapkey. Therefore it would be helpful to see this directly from the mapkey.

It's just an example, no need to explain this specific "dtl" case.

Trebla
15-Moonstone
(To:Vojtaa)

Hi Vojtaa,

 

You could use, for a moment, these 2 config options in your config.pro:

 

set_trail_single_step yes

visible_mapkeys yes

 

Open Creo, then run the mapkey you want to explore. Close Creo, look for your last Trail file and  copy it to the Desktop or where you want, open Creo, execute your Desktop Trail file (trail.txt), and you will see step by step, with pauses,  what that mapkey did.

 

trail.png

 

 

Vojtaa
4-Participant
(To:Trebla)

Hello Trebla,

thank you for you advice, that's exactly what I was looking for! Bonus for me - I can learn more about the trail files, I've never used those before.

I'll just add one step - you have to rename the copied trail file, Creo won't load it otherwise.

Trebla
15-Moonstone
(To:Vojtaa)

Yes Vojtaa, I missed rename the trail file before you run it.

A lot of information about mapkeys and trail files in this page

Top Tags