Skip to main content
Best answer by tbraxton

You can edit this "code" in a text editor and some users do this, The syntax is specific to Creo Parametric as far as I know. I will warn you that it is not documented by PTC so it will involve much effort to develop it without using the record function. I am among a small group of users that would like to see PTC document the syntax but to date they have not been willing to do this. Also take not that fundamental programming concepts such as looping, search, etc. are not supported for map keys.

 

Check out these threads for some more tips:

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

 

https://community.ptc.com/t5/System-Administration/Notepad-User-Defined-Language-files-for-Creo-Parametric-and-Pro/m-p/451745 

 

 

 

 

1 reply

tbraxton
22-Sapphire II
22-Sapphire II
June 5, 2022

No API (programming language) is required to create macros. PTC refers to them as map keys and they can be recorded directly using the UI,

Refer to this link to get started.

http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/fundamentals/fundamentals/fund_five_sub/About_Mapkeys.html 

 

There is support for Visual Basic, Java, and C in Creo that can be used to create macros but are not necessary.

SR_CAD13-AquamarineAuthor
13-Aquamarine
June 5, 2022

Right we can use the recording tool but what if we want to modify directly the config.pro file, like this code below.

mapkey 2nss @MAPKEY_LABELNo specific status V2;\
mapkey(continued) ~ Command `ProCmdViewVisTool` ;\
mapkey(continued) ~ Arm `visual_dlg0` `Table` 2 `default` `name_column`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `default` `name_column`;\
mapkey(continued) ~ Activate `visual_dlg0` `PropertiesBtn`;\
mapkey(continued) ~ Select `visual_dlg0` `ExtLay.ItemRefList` 1 `-1:69:[40]`;\
mapkey(continued) ~ Activate `visual_dlg0` `ExtLay.RemoveOperationButton`;\
mapkey(continued) ~ Close `visual_dlg0` `visual_dlg0`;

Is this a programming language only used for PTC ?

tbraxton
22-Sapphire II
tbraxton22-Sapphire IIAnswer
22-Sapphire II
June 5, 2022

You can edit this "code" in a text editor and some users do this, The syntax is specific to Creo Parametric as far as I know. I will warn you that it is not documented by PTC so it will involve much effort to develop it without using the record function. I am among a small group of users that would like to see PTC document the syntax but to date they have not been willing to do this. Also take not that fundamental programming concepts such as looping, search, etc. are not supported for map keys.

 

Check out these threads for some more tips:

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

 

https://community.ptc.com/t5/System-Administration/Notepad-User-Defined-Language-files-for-Creo-Parametric-and-Pro/m-p/451745