On 03/16/12 13:19, Darrin Hiebert wrote:
>
> Randy,
>
> Is that your SPR?
>
Yep. The problem is that the mapkey recorded by WF5 also records a "which window number contains the
drawing". So with this scenario:
* Open a multisheet drawing (drw1)
* Open another multisheet drawing (drw2)
* activate drw1 window, select sheet2, now record a mapkey to switch to sheet 1
* save this mapkey
* activate drw2 window, select sheet2, now record a mapkey to switch to sheet 1
* save this mapkey
The mapkey text looks like this:
!Mapkey text for first drawing
mapkey .. ~ Activate `main_dlg_cur` `switcher_lay_buttons_lay_ph.page_0`1 ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `SmartTabs` `selectButton \
mapkey(continued) main_dlg_w1@switcher_lay_buttons_lay page_0 0`;
!Mapkey text for second drawing
mapkey .. ~ Activate `main_dlg_cur` `switcher_lay_buttons_lay_ph.page_0`1 ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `SmartTabs` `selectButton \
mapkey(continued) main_dlg_w2@switcher_lay_buttons_lay page_0 0`;
Note the difference in the last line. The first mapkey has "main_dlg_w1" and the second mapkey has
"main_dlg_w2". This makes it impossible to create a mapkey to switch sheets.
> I never did report this as lost functionality, but I have a thread on here somewhere asking how to
> do this in WF5.
>
> I eventually did come up with a solution, but it requires altering the drawing program, and it's
> messy, but it does work.
>
I ended up doing it with weblink.
> Here is a mapkey that goes to sheet, and then goes BACK one sheet to get to the last sheet of a
> drawing (which is ultimately where I wanted to get to):
>
> mapkey sht_chg ~ Select `main_dlg_cur` `MenuBar1`1 `View`;\
>
> mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
>
> mapkey(continued) ~ Activate `main_dlg_cur` `View.psh_view_goto_sheet`;\
>
> mapkey(continued) ~ Input `gotosheet` `InpPagenum` `1`;~ Update `gotosheet` `InpPagenum` `1`;\
>
> mapkey(continued) ~ FocusOut `gotosheet` `InpPagenum`;~ Activate `gotosheet` `Goto`;\
>
> mapkey(continued) ~ Activate `gotosheet` `Prev`;~ Activate `gotosheet` `Close`;
>
> NOTE: I cut some of this original mapkey out because it did some other stuff that was not
> relevant to the conversation, but I /think /that this should work as it is. YMMV. J
>
> ____________________________________
> *Darrin Hiebert*
> Senior Product Designer
> - <
">mailto:->>
> *From:*Randy Jones [
> Elements/Pro 5.0":
> > Phone: 785-823-3276
> Fax: 785-667-2695
> ------------------------------------------------------------------------
>
> -----End Original Message-----
--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------