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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Rename Datum plane using mapkey

dg-2
6-Contributor

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.

ACCEPTED SOLUTION

Accepted Solutions
jbob
11-Garnet
(To:dg-2)

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

View solution in original post

11 REPLIES 11
dschenken
21-Topaz I
(To:dg-2)

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

 

 

dg-2
6-Contributor
(To:dschenken)

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

dg-2
6-Contributor
(To:dschenken)

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

dg-2
6-Contributor
(To:dg-2)

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

dg-2
6-Contributor
(To:dg-2)

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

MAPKEY

dg-2
6-Contributor
(To:dg-2)

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.

jbob
11-Garnet
(To:dg-2)

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

dg-2
6-Contributor
(To:jbob)

Thank you so much.

its working Great.

let me know whats mistake of mine. 

gkovács
8-Gravel
(To:jbob)

Does anyone know how to solve this with three datum planes?

I can't solve it...

 

Gábor

StephenW
23-Emerald II
(To:gkovács)

Use the same mapkey, make 3 versions of it for each plane, then make a master mapkey that callls the 3 individual mapkeys.

Tyson24
1-Newbie
(To:dg-2)

Nice.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags