cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Chg Sheet mapkey - WF5

GavinBRumble
5-Regular Member

Chg Sheet mapkey - WF5

Since there doesn't seem to be a menu command to access the Sheets menu in
WF5, and since it is cumbersome to change to sheet 43 using the tabs, I
wanted to set up a mapkey. I couldn't find a way to do it. Then I
remembered my mapkey from Rev20.I simply loaded it and, sure enough, there
was the Menu Manager. Included below are the Set Current, Next and Previous
mapkeys which do work in Creo E/P 5 as well.



mapkey $F8 @MAPKEY_NAMEChange to Previous Drw Sheet;@MAPKEY_LABELSheet
Prev;\

mapkey(continued) #sheets;#previous;



mapkey $F9 @MAPKEY_NAMEChanges to Next Drawing Sheet;@MAPKEY_LABELSheet
Next;\

mapkey(continued) #sheets;#next;



mapkey $F10 @MAPKEY_NAMEChanges to Next Drawing Sheet;@MAPKEY_LABELSheet
Next;\

mapkey(continued) #sheets;#set current;



Hope this helps someone,



Gavin B. Rumble, PE

Solid Engineering

336-224-2312




This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
6 REPLIES 6

There actually is a way to change to a specific sheet in WF5, but it's not
super intutitive.



Down in the SHEET X OF Y area on your drawing, double click on the "SHEET
X" part. A dialog will then pop up that will allow you to change to
whatever sheet it is that you want. Like this:







I quickly tried to create a mapkey that pops up this dialog, and that
doesn't appear to work.


See this titled "Lost functionality: Unable to create a mapkey to switch sheets in Creo Elements/Pro
5.0":

Randy,



Is that your SPR?



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.



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`;


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
------------------------------------------------------------------------

We are on WF5 and at the bottom of the window, see the attached jpg, there are tabs for each sheet. You simply select the sheet you want to go to and you are done. I am not sure if this takes a config.pro option or not.

John M. Scranton
Manager Design Drafting
and Configuration Management
Ultra Electronics - USSI
4686 E. Park 30 Dr.
Columbia City, IN 46725-8869
*Voice: 260.248.3576
*Fax; 260.248.3509
[cid:image002.jpg@01CD05D4.D6E1F2B0]

Sorry I sent my first email too quick.

Right next to the sheet tabs are arrows that will take you to the next or back to the first grouping of sheet tabs should you have more sheets than will fit across the bottom of the page. There are arrows for moving one sheet at a time as well.

John M. Scranton
Manager Design Drafting
and Configuration Management
Ultra Electronics - USSI
4686 E. Park 30 Dr.
Columbia City, IN 46725-8869
*Voice: 260.248.3576
*Fax; 260.248.3509
[cid:image001.jpg@01CD05D6.73F21E80]
Top Tags