Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapkey selection 1

Status
Not open for further replies.

DanDwig

Mechanical
Sep 27, 2002
9
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;
 
Replies continue below

Recommended for you

You can try using the CTRL+F Find Datum Plane by Name rules by adding three NAme = Front OR NAme= Right or NAme = Top etc.

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
 
Michael,
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top