Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I want to create mapkey that would involve the operator picking a point on a drawing, but that point would be a different location from drawing to drawing. When recording this, does the mapkey look for an operator input after "clicking" on a point, or does it hard code the location that the point at which the click was made?
Solved! Go to Solution.
It's been a while since I made a "pause" mapkey.
I would start the record process, then I would pick the table tab (mainly to have something before the pause)
Pause button, use pause for keyboard input (key in the prompt)
pick the cell
resume
finish making the mapkey
I seem to remember there was a significant trial and error every time I make one.
During mapkey creation, there is an option "pause for keyboard input" that when push the pause button, it allow you to enter a Prompt. That will instruct the user what it needs them to do. there are 3 options for pause under the "prompt handling" area.
I have a mapkey for patterning about an axis and it pauses for me to pick the axis. Below is the snippet of the mapkey where it pauses and the prompts "pick axis"
mapkey(continued) ~ Select `main_dlg_cur` `maindashInst0.ui_pat_type` 1 `ui_pat_type_axis`;\
mapkey(continued) @MANUAL_PAUSEPICK AXIS;\
mapkey(continued) ~ Input `main_dlg_cur` `maindashInst0.ui_pat_axis_1_num_inst` `2`;\
Does the 2nd line...
mapkey(continued) @MANUAL_PAUSEPICK AXIS;\
... pop up a box that says "Pick Axis"?
Yup. You can make it say whatever you need.
While creating the mapkey, how is this programmed?
Recording the mapkey...
Keyboard Shortcut: (add 4 digits)
Name: (add name)
Description: (add description)
Now the first thing after typing the command is to choose a table row. Do I pick the circle "Pause for keyboard inport", then click on the row, and then click the circle "Record keyboard input" to continue the rest of the mapkey?
If I select the row and then run the mapkey, it worked, but I would like to run the mapkey first and then select the row.
mapkey `q11 @MAPKEY_NAMESet selected table row height to 1.1;\
mapkey(continued) @MAPKEY_LABELRow Height;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Command `ProCmdEditProperties@PopupMenuGraphicWinStack` ;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t1.inp_row_ht_char` `1.1`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `t1.inp_row_ht_char`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t1.inp_row_ht_char`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
@Dale_Rosema wrote:
If I select the row and then run the mapkey, it worked, but I would like to run the mapkey first and then select the row.
mapkey `q11 @MAPKEY_NAMESet selected table row height to 1.1;\
mapkey(continued) @MAPKEY_LABELRow Height;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Command `ProCmdEditProperties@PopupMenuGraphicWinStack` ;\
mapkey(continued) ~ Update `Odui_Dlg_00` `t1.inp_row_ht_char` `1.1`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `t1.inp_row_ht_char`;\
mapkey(continued) ~ FocusOut `Odui_Dlg_00` `t1.inp_row_ht_char`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;
Hi,
please provide your Creo version.
Below you can find mapkey created in Creo 2.0. It sets row height to 2 characters.
mapkey ff @MAPKEY_NAMEThis is ffmapkey;@MAPKEY_LABELffmapkey;\
mapkey(continued) @MANUAL_PAUSESelect table row;\
mapkey(continued) ~ Command `ProCmdDwgTblRowColResize` ;\
mapkey(continued) ~ Activate `dwgtbl_height_width` `chk_row_height_adjust` 0;\
mapkey(continued) ~ Update `dwgtbl_height_width` `ip_height_charac` `2`;\
mapkey(continued) ~ FocusOut `dwgtbl_height_width` `ip_height_charac`;\
mapkey(continued) ~ Activate `dwgtbl_height_width` `psh_ok`;
Using Creo 4.0 M060
It's been a while since I made a "pause" mapkey.
I would start the record process, then I would pick the table tab (mainly to have something before the pause)
Pause button, use pause for keyboard input (key in the prompt)
pick the cell
resume
finish making the mapkey
I seem to remember there was a significant trial and error every time I make one.
I was able to get it to work by selecting the table tab, then clicking on Pause for keyboard input, Click the OK on the keyboard input, then selecting the row, then selecting the resume button, then continuing with the rest of the commands.
here is a mapkey I created a number of years ago to select the boxes in the revision block and add text. This should help.
I want to check into this further. Did you automate some of the text in the boxes or was it all filled out manually? I am thinking that a one time drop of the date into the block could be automated along with a couple of our other boxes.
FYI: there was an error in the picture you posted.
when you begin recording your mapkey, change from record keyboard input to pause for keyboard input.
What about picking a "box" or setting a value for a box?
I want to change the "Height in number of characters" from 3.0 to 1.1.
If this window gets moved, it will not be in the same location.
This value will be determined in the mapkey, so I don't really want the user to have to pick this, but I need the value to be update wherever the pop up window is on the screen. Is there a parameter setting for this box? If so, how is the name discovered?
Thanks.
I have to mapkeys to evaluate:
1. Select the row of the table and then run the mapkey (less key strokes)
2. Run the mapkey with the pause for the instructions to select the row of the table and then resume.
Since there are only two of us and I have a cheat sheet for mapkey instructions, I am leaning towards the first mapkey. Any thoughts on this?
I've made them both ways. For me, I prefer to preselect what I want to do the operation on and then run the mapkey. I think it's preference