Quantcast
Channel: PTC Community : Unanswered Discussions - Creo
Viewing all articles
Browse latest Browse all 8685

Mapkey difficulty with Creo UI across modes

$
0
0

In the process of mapping customizations to Creo 2 migrating from WF. As with going to WF almost all mapkeys of non trivial functionality no longer work with the new UI. I am rewriting them and finding that the recorded mapkeys are so context sensitive they do not work across modes (part, assy, sheet metal, etc.) they should as the commands in the mapkeys are available in different modes and are invoked with the UI with the same user interaction in multiple modes. I am looking for some help to overcome this seemingly unbelievable oversight with respect to macros usability.

 

I have a sequence of mapkeys that have worked in the past and I realize that with the new UI I need to adapt and am willing to do it (begrudgingly). I am so far not impressed with the ability to customize the UI to support my workflow with mapkeys. A case in point follows;

 

This mapkey is intended to use the find tool to select the first Csys in the active model when executed. It uses rules in the find tool that when done using the mouse keyboard results in proper function across modes (part, assy etc.) when recorded as a mapkey it does not. I can see differences in the `ResultList` 1 `7:52:` (next to last line below) selection in the trail files from mode to mode.  The underlined string varies between modes, I can find no documentation at PTC.COM or searching Google that offers any insight into how this is handled internally by Creo and am stuck for the moment. I have opened a call with PTC.

 

Note that all available selections are defined explicitly in the mapkey and it works in part mode as intended.  When invoked in Assy mode for testing it does not work. This sequence is used in a nested mapkey sequence to automate measure tool commands and should work identically anywhere that the measure tool can be invoked within Creo. Does anyone know how to modify the syntax or record this sequence so that is mode "agnostic"? I am aware I can record mode specific commands and nest them but that is truly onerous (I should not have to do it)  when the function call should work across modes where applicable.

 

mapkey .ics0 @MAPKEY_LABELtest pick cs0;\

mapkey(continued) ~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\

mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;~ Open `selspecdlg0` `SelOptionRadio`;\

mapkey(continued) ~ Close `selspecdlg0` `SelOptionRadio`;\

mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Feature`;\

mapkey(continued) ~ Open `selspecdlg0` `LookByOptionMenu`;\

mapkey(continued) ~ Close `selspecdlg0` `LookByOptionMenu`;\

mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu` 1 `Coord Sys`;\

mapkey(continued) ~ Activate `selspecdlg0` `EvaluateBtn`;\

mapkey(continued) ~ Select `selspecdlg0` `ResultList` 1 `7:52:`

mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;


Viewing all articles
Browse latest Browse all 8685

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>