Question
[Macro] How to select the first item in Search Tool results?
I'm creating a macro to automatically select a 3D Curve using the Search Tool.
The search returns multiple results and I need to always select the first item in the result list.
In Creo, it seems that selection is based on the ID. Is there a way to make it always select the first item.
mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `3D Curve`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
mapkey(continued) `SKETCH6`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `ResultList` 1 `260:59:`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;