Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi everyone,
i required Rename Datum plane using mapkey. i using method record mapkey
FIND >> (LookFor)DATUMPLANE >> (Value)Req Datum Name.
this way some times not working.
FYI. See my reply image
in mapkey scripted as per below.
search "top" datum plane and rename as "xtop"
but in trail.txt it shows mapkey ended with only search. so its not able to do "redfine" or "editproperties" command.
help!!! urgent requirement.
Solved! Go to Solution.
try this mapkey
mapkey r/d @MAPKEY_NAMErename top datum plane;@MAPKEY_LABELrename datum;\
mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;~ Open `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Datum`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `TOP`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdRedefine` ;~ Select `Odui_Dlg_00` `pg_vis_tab` 1 `tab_3`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `xtop`;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t3.datum_plane_name` `xtop`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t3.datum_plane_name`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
A) Fails to run the Find command
B) Fails to find the Datum
C) Fails in some other way - please describe
Also, include the contents of the Mapkey that is supposed to do this and
the Version of Creo this is supposed to do this for and
does this work on Parts and not Assemblies or it works on Assemblies and not Parts
Mapkey run full length its not failing, but its not rename desired plane.end with selection mode.
mapkey /x3 ~ 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 `Datum`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `TOP`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `Redefine`;\
mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.constrs_table` 2 `0` `column_1`;\
mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.constrs_table` 2 `` ``;\
mapkey(continued) ~ Select `Odui_Dlg_00` `pg_vis_tab` 1 `tab_3`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `x`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `xt`;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t3.datum_plane_name` `xt`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t3.datum_plane_name`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
2nd option i tried ::
mapkey /x4 ~ Command `ProCmdMdlTreeSearch` ;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum Axis Tag`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum Plane`;\
mapkey(continued) ~ Input `selspecdlg0` `SelOptionRadio` `Datum Plane`;\
mapkey(continued) ~ Update `selspecdlg0` `SelOptionRadio` `Datum Plane`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `TOP`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `Redefine`;\
mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.constrs_table` 2 `0` `column_1`;\
mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.constrs_table` 2 `` ``;\
mapkey(continued) ~ Select `Odui_Dlg_00` `pg_vis_tab` 1 `tab_3`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `x`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `xt`;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t3.datum_plane_name` `xt`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t3.datum_plane_name`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
i checked trail.txt file mapkey not run the full script
MAPKEY
Trail txt image.
FYI. See above image and this image attachment also.
in mapkey scripted as per below.
search "top" datum plane and rename as "xtop"
but in trail.txt it shows mapkey ended with only search. so its not able to do "redfine" or "editproperties" command.
help!!! urgent requirement.
try this mapkey
mapkey r/d @MAPKEY_NAMErename top datum plane;@MAPKEY_LABELrename datum;\
mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;~ Open `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Datum`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `TOP`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdRedefine` ;~ Select `Odui_Dlg_00` `pg_vis_tab` 1 `tab_3`;\
mapkey(continued) ~ Input `Odui_Dlg_00` `t3.datum_plane_name` `xtop`;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t3.datum_plane_name` `xtop`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t3.datum_plane_name`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
Thank you so much.
its working Great.
let me know whats mistake of mine.
Does anyone know how to solve this with three datum planes?
I can't solve it...
Gábor
Use the same mapkey, make 3 versions of it for each plane, then make a master mapkey that callls the 3 individual mapkeys.
Nice.