mapkey selection
mapkey selection
(OP)
I am attempting to creat assorted life simplifying mapkeys. In order to get the best use out of them, I need to be able to use them in parts created with several different templates. These different templates have setup datum planes that are named the same, but apparently have different node IDs. Using the mapkey recorded to select them uses the node ID which causes a problem between templates. Is there any way to instead call the datum planes by name?
Here is the selection code as the recorder creates it (this is to select all three setup datum planes):
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`1 `node9`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`2 `node9` `node8`2 ;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`3 `node9` `node8` `node7`2;
Here is the selection code as the recorder creates it (this is to select all three setup datum planes):
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`1 `node9`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`2 `node9` `node8`2 ;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree`3 `node9` `node8` `node7`2;





RE: mapkey selection
mapkey 3p ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0`
`SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1 `Datum`;\
mapkey(continued) ~ Open `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Close `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu`1 `Datum`;\
mapkey(continued) ~ Update `selspecdlg0`
`ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `FRONT`;\
mapkey(continued) ~ Activate `selspecdlg0`
`ExtRulesLayout.ExtBasicNameLayout.BasicNameList`;\
mapkey(continued) ~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Update `selspecdlg0`
`ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `TOP`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Update `selspecdlg0`
`ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `RIGHT`;\
mapkey(continued) ~ Activate `selspecdlg0`
`ExtRulesLayout.ExtBasicNameLayout.BasicNameList`;\
mapkey(continued) ~ Activate `selspecdlg0` `AddRuleBtn`;~ Activate
`selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `ResultList`-1 ;~ Activate
`selspecdlg0` `ApplyBtn`;\
Michael
RE: mapkey selection
Thaks, this did the trick. Of course I'm still fighting about three other things where pro doesn't behave consistently, but at least I can do the plane selection.
Dan