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

Rename Datum plane using mapkey

SOLVED
Highlighted
Regular Member

Rename Datum plane using mapkey

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Rename Datum plane using mapkey

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`;

11 REPLIES 11

Re: Rename Datum plane using mapkey

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

 

 

Re: Rename Datum plane using mapkey

Mapkey run full length its not failing, but its not rename desired plane.end with selection mode.

Re: Rename Datum plane using mapkey

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`;

Re: Rename Datum plane using mapkey

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`;

Re: Rename Datum plane using mapkey

i checked trail.txt file mapkey not run the full script

MAPKEY

Re: Rename Datum plane using 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.

Re: Rename Datum plane using mapkey

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`;

Re: Rename Datum plane using mapkey

Thank you so much.

its working Great.

let me know whats mistake of mine. 

Re: Rename Datum plane using mapkey

Nice.