Quantcast
Channel: PTC Community: Message List - Creo
Viewing all articles
Browse latest Browse all 11377

Re: How to make a part in assembly tree "active", via VB.Net or MapKey

$
0
0

Try this mapkey to select by name:

 

mapkey activate ~ Command `ProCmdMdlTreeSearch` ;\

mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Component`;\

mapkey(continued) ~ Select `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasNameComp` 1 ` \

mapkey(continued) == `;~ Open `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList`;\

mapkey(continued) ~ Close `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList`;\

mapkey(continued) ~ Select `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` 1 \

mapkey(continued) `YOURPARTNAME.PRT`;~ Activate `selspecdlg0` `EvaluateBtn`;\

mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\

mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node`;\

mapkey(continued) ~ PopupOver `main_dlg_cur` `ActionMenu` 1 `PHTLeft.AssyTree`;\

mapkey(continued) ~ Open `main_dlg_cur` `ActionMenu`;~ Close `main_dlg_cur` `ActionMenu`;\

mapkey(continued) ~ Activate `main_dlg_cur` `MakeActive`;

 

Just replace YOURPARTNAME.PRT with your part name and the name of the mapkey if you wish.


Viewing all articles
Browse latest Browse all 11377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>