Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I created a mapkey to create a mass property feature and then place it in the footer.
The issue is… The first time I run it, it will do everything except add the feature to the footer.
If I pick in the model tree and delete it, then run the mapkey again, it will move it to the footer.
I’ve tried this a couple different ways.
Any ideas?
Solved! Go to Solution.
I had another result in Creo 2.0 m090:
mapkey $F2 ~ Command `ProCmdNaModelProperties` ;\
mapkey(continued) ~ Select `nma_model_massprop` `save_state_rg` 1 `feature`;\
mapkey(continued) ~ Activate `nma_model_massprop` `ok_btn`;\
mapkey(continued) ~ Activate `main_dlg_cur` `PutToFooter`;
I just tried method #1 and it works fine every time regardless of what model I try it on. Not exactly how you are doing the RMB, but I did it by just clicking in space after the MP feature creation (since it was already selected). This is with Creo 3 M040.
mapkey mp @MAPKEY_LABELmp;\
mapkey(continued) ~ Command `ProCmdNaModelProperties` ;\
mapkey(continued) ~ Select `nma_model_massprop` `save_state_rg` 1 `feature`;\
mapkey(continued) ~ Activate `nma_model_massprop` `ok_btn`;\
mapkey(continued) ~ Command `ProCmdPutToFooter@PopupMenuGraphicWinStack`;
Humm, my recorded mapkey looks like this. Different than what you show Tom.
I'll give your syntax a try.
This is from the trail file:
~ RButtonArm `main_dlg_cur` `proe_win` 9 717 184 0 4 1166 964 1600 1200 203638
~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`
~ RButtonDisarm `main_dlg_cur` `proe_win` 9 717 184 0 256 1166 964 1600 1200 204121
~ Exit `main_dlg_cur` `proe_win` 9 717 184 0 4 1166 964 1600 1200 204121
~ Close `rmb_popup` `PopupMenu`
~ Activate `rmb_popup` `PutToFooter`
This is what the mapkey recorded:
~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `PutToFooter`;
I had another result in Creo 2.0 m090:
mapkey $F2 ~ Command `ProCmdNaModelProperties` ;\
mapkey(continued) ~ Select `nma_model_massprop` `save_state_rg` 1 `feature`;\
mapkey(continued) ~ Activate `nma_model_massprop` `ok_btn`;\
mapkey(continued) ~ Activate `main_dlg_cur` `PutToFooter`;
This syntax worked. I'm on Creo 2-m170
~ Activate `main_dlg_cur` `PutToFooter`;
In Creo Parametric when using RMB menu in a mapkey, make sure you click into graphics area with the RMB, else the mapkey might just not work correctly.