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

Incremental measure (delta x,y,z) function in Creo 4

tbraxton
20-Turquoise

Incremental measure (delta x,y,z) function in Creo 4

The below mapkeys create a macro for using the incremental measure functionality. If it is something you use often this is worth automating. I have added this to the UI customization available in Creo 4. It works in part mode and assembly mode.

imdi.jpg

 

 

The mapkey "imdi" calls the measure tool and defines a projection reference using a csys of the current model.

 

Caveats:

I am exploiting the default csys in start models having containing the string "csys_def".

It uses a search function that selects a csys whose name contains the following string "*csys_def". If your start part(s) use a name for the default csys that is different you will need to modify the ".fcsx" mapkey accordingly.

 

Mapkey definitions used follow:

 

mapkey .fcsx @MAPKEY_NAMEfind def csys in model;@MAPKEY_LABELfind def csys;\
mapkey(continued) ~ Key `main_dlg_cur` `proe_win` 9 1141 53 38141958 0 1451 868 1920 1200 \
mapkey(continued) 11931661 `Ctrl+F`;~ Command `ProCmdMdlTreeSearch` ;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Coord Sys`;\
mapkey(continued) ~ Open `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Close `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu` 1 `Coord Sys`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `*csys_def`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;

 

mapkey imm @MAPKEY_NAMEMeasure;@MAPKEY_LABELMeasure tool;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Analysis_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdNmdTool` 1;

 

mapkey imdi @MAPKEY_NAMEMeasure wrt to CS0;@MAPKEY_LABELMeasure delta;%imm;\
mapkey(continued) ~ Trigger `nmd_1` `nmd_prj_lst` `0`;~ Focus `nmd_1` `nmd_prj_lst`;\
mapkey(continued) ~ Select `nmd_1` `nmd_prj_lst` 0;~ Trigger `nmd_1` `nmd_prj_lst` ``;%.fcsx;\
mapkey(continued) ~ Trigger `nmd_1` `nmd_prj_lst` `0`;~ Trigger `nmd_1` `nmd_prj_lst` ``;\
mapkey(continued) ~ Trigger `nmd_1` `nmd_setup_tbl` 2 `DuMmY` `References`;\
mapkey(continued) ~ Focus `nmd_1` `nmd_setup_tbl`;~ FocusIn `nmd_1` `nmd_setup_tbl`;\
mapkey(continued) ~ Arm `nmd_1` `nmd_setup_tbl` 2 `DuMmY` `References`;\
mapkey(continued) ~ Select `nmd_1` `nmd_setup_tbl` 2 `DuMmY` `References`;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `CollectorWdg_FocusTimer`;\
mapkey(continued) ~ Trigger `nmd_1` `nmd_setup_tbl` 2 `` ``;~ FocusOut `nmd_1` `nmd_setup_tbl`;

 

 

2 REPLIES 2
Philip_Olieux
5-Regular Member
(To:tbraxton)

Hello,

should the three different mapkeys be joined in one? What mapkey is used for the (RMB) "measure delta"?

Kind regards,

 

Philip Olieux

Mapkey imdi is used and is placed in the UI to access using RMB menu. You have to add this new mapkey to the UI where you want to access it.

 

The mapkey imdi is a nested mapkey and calls .fcsx and imm. You only need to invoke imdi to activate the measure tool. You need to have all 3 mapkeys in session in order for imdi to function preoperly.

Announcements