Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi,
I try to build a mapkey that automatically select the CS feature above my last copygeometry feature.
To do this I have a first mapkey "--lf" that select the last feature in model tree and a second mapkey that search for parent CS of my copy geometry. but It doesn't work.
If I replace
~ Select `selspecdlg0` `RuleTypes` 1 `ParChild`;%--lf;\
by
~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `T3 621`;\
than it works but reapeating the mapkey later in model wont give the right CS as it will always pick `T3 621`
In the end I would use a similar mapkey to select the last 3 features in model tree and group
Cheers, Robert
mapkey --lf @MAPKEY_NAME--lf select latest feature;@MAPKEY_LABEL--lf select latest feature;\
mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Feature`;\
mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu` 1 `Feature`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Attributes`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes` 1 `Last Feat`;\
mapkey(continued) ~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;
mapkey --b ~ Command `ProCmdMdlTreeSearch` ;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Coord Sys`;\
mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu` 1 `Coord Sys`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Status`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes` 1 `ParChild`;%--lf;\
mapkey(continued) ~ Activate `GET SELECT 1` `done_sel`;\
mapkey(continued) ~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `CascadeButton1`;\
mapkey(continued) ~ Select `selspecdlg0` `SortByCasc`;\
mapkey(continued) ~ Close `selspecdlg0` `CascadeButton1`;\
mapkey(continued) ~ Select `selspecdlg0` `ItemSortRadio` 1 `feature #`;\
mapkey(continued) ~ Select `selspecdlg0` `ResultList`-1;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;
Hi,
what Creo version do you use?
I am not sure if some simple solution exist.
Perhaps the following procedure would work:
Thanks for the solution proposal. I could not test it but I found another workaround:
I added the code:
mapkey(continued) ~ Command `ProCmdActivateInsertBefore@PopupMenuTree` ;\
after each UDF or Copy geometry that the mapkey imports.
The only thing is that once the mapkey is done I still need to manually drag the "insert bar" down to resume the features freshly imported.
In summary: the mapkey does: