×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

mapkey selection

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;
 

RE: mapkey selection

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

RE: mapkey selection

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources