Skip to main content
1-Visitor
March 9, 2018
Solved

Mapkey to add "TYP" to dimension text (Creo 4)

  • March 9, 2018
  • 2 replies
  • 7826 views

In a drawing (creo 4), I want to create a Mapkey to add "TYP" in dimension text. Everytime I try this, my Mapkey only work in the drawing I create it. Someone to help me ? Does anybody is able to add dimension text with a Mapkey ? 

Thank you for your help ! 

Best answer by MartinLaliberte

 

Try this!

 

mapkey typ @MAPKEY_NAMEADD TYP TO DIMENSION;@MAPKEY_LABELADD_TYP;\

mapkey(continued) ~ Activate `main_dlg_cur` `Dimension_Properties:ProCmdPmaChkSldPnlDimTxt`;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TYP.`;\
mapkey(continued) ~ Update `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TYP.`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Dimension_Properties:ProCmdPmaChkSldPnlDimTxt` 0;

 

Mart

; )

2 replies

23-Emerald III
March 9, 2018

The use of 'TYP' is not a valid nomenclature for repetitive dimensions according to ASME Y14.5-2009.

See section 1.9.5 in the standard for how to properly dimension repetitive values.

It is also not valid in ANSI Y14.5M-1982 and ASME Y14.5M-1994.

 

23-Emerald IV
March 9, 2018

1.9.5 says, "Repetitive features or dimensions may be specified by the use of an X in conjunction with a number to indicate the "number of places" required."  Notice it says the word "may", not "must" or "shall".  Is there somewhere else in the standard that actually prohibits the use of "typical" (or "unless otherwise specified")?

1-Visitor
March 20, 2018

I think it comes from the interpretation "may". For the 1982 standard "may" indicated a recommended practice. The interpretation has changed. For the 1994 standard the interpretation of "may" indicated an accepted practice. The interpretation was changed in Nov. 2017 to indicate an allowed practice. My understanding is you have three options: 1) dimension all individually, 2) use repetitive feature dimension, and 3) a general note. The standard that specifies the definition is Y14.100 section 1.3. Another difference is "must" is not used to indicate a mandatory requirement only "shall" and "will".

23-Emerald III
March 9, 2018

Is it only working on that one drawing or in that one session of Creo?

If only on that one session of Creo, then following questions:

Are you saving the mapkey to the config.pro? In the past, there has been issues with saving mapkeys.

Also, did you save the mapkey to the correct config.pro, you may have more than one, based on your company.

 

If only on that one drawing, can you copy and paste your mapkey to the forum?

maxoue171-VisitorAuthor
1-Visitor
March 9, 2018

Only work in one drawing and I'm sure to saved the mapkey at the right place. Here is the mapkey, dimension is selected before I run it.

 

mapkey typ @MAPKEY_NAMEADD TYP TO DIMENSION;@MAPKEY_LABELADD_TYP;\
mapkey(continued) ~ Command `ProCmdPmaChkSldPnlDimTxt` 1;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` \
mapkey(continued) `RibbonPanelsOnActivate_ProCmdPmaChkSldPnlDimTxt` \
mapkey(continued) `main_dlg_w1/Dimension_Properties:ProCmdPmaChkSldPnlDimTxt/`;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D `;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D T`;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TY`;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TYP`;\
mapkey(continued) ~ Input `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TYP.`;\
mapkey(continued) ~ Update `ProCmdPmaChkSldPnlDimTxt__panel` `PH.dim_txt_area` `@D TYP.`;\
mapkey(continued) ~ Command `ProCmdPmaChkSldPnlDimTxt` 0;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` \
mapkey(continued) `RibbonPanelsOnActivate_ProCmdPmaChkSldPnlDimTxt` \
mapkey(continued) `main_dlg_w1/Dimension_Properties:ProCmdPmaChkSldPnlDimTxt/`;

 

Thank you ! 

23-Emerald III
March 9, 2018

Well, I'm not running Creo 4 so testing your mapkey was a bust.

I created a creo 3 version and it seemed to work across at least 2 different drawings.

FYI, it was a quick mapkey, so it looks like there is some trash in there but I didn't want to re-create it just to clean it up.

 

mapkey typ ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Command `ProCmdEditProperties@PopupMenuGraphicWinStack` ;\
mapkey(continued) ~ Select `mod_dim_new_asynch` `tab_main` 1 `lay_display`;\
mapkey(continued) ~ FocusIn `mod_dim_new_asynch` `txt_dim_text`;\
mapkey(continued) ~ Input `mod_dim_new_asynch` `txt_dim_text` `@D `;\
mapkey(continued) ~ Input `mod_dim_new_asynch` `txt_dim_text` `@D T`;\
mapkey(continued) ~ Input `mod_dim_new_asynch` `txt_dim_text` `@D TY`;\
mapkey(continued) ~ Input `mod_dim_new_asynch` `txt_dim_text` `@D TYP`;\
mapkey(continued) ~ Update `mod_dim_new_asynch` `txt_dim_text` `@D TYP`;\
mapkey(continued) ~ FocusOut `mod_dim_new_asynch` `txt_dim_text`;\
mapkey(continued) ~ FocusIn `mod_dim_new_asynch` `txt_dim_text`;\
mapkey(continued) ~ FocusOut `mod_dim_new_asynch` `txt_dim_text`;\
mapkey(continued) ~ Activate `mod_dim_new_asynch` `psh_ok`;