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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to create a mapkey which opens Appearances dialog box

MartinHanak
24-Ruby II

How to create a mapkey which opens Appearances dialog box

My question is very simple. Is it possible to create a mapkey with functionality shown in uploaded Appearances.mp4 video?


Martin Hanák
ACCEPTED SOLUTION

Accepted Solutions

PTC response: The creation of mapkey that opens the appearance menu is not implemented.

 


Martin Hanák

View solution in original post

6 REPLIES 6

The keyboard shortcut (<CTRL + <SHIFT> + A) is not working correctly in Creo 7.0.10.0 or Creo 9.0.7.0 . This sequence is documented to open the appearance gallery, but it is not working correctly. This shortcut when recorded in a mapkey sequence should open the appearance gallery but since it is not working correctly, I am not sure there is a workaround.

 

It looks like the shortcut is not working to spec.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

I tried a few things in 9 and 11 and couldn't get it to work. The best I could do was get the appearances button to be selected so you could pick something but I couldn't get the dialog box to open.

Write down very simple script to a vbs-file

Dim WshShell
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "%vya"
WScript.Quit()

 

And call the vbs-file from mapkey.

Something like this

 

mapkey ag @MAPKEY_LABELOpen Appearances;\
mapkey(continued) @SYSTEMstart WScript.exe \
mapkey(continued) \\ptc\\creo\\vbs\\ag.vbs;

INFO:

I opened Case at PTC Support. Below you can see their response:

 

Unfortunately, the creation of mapkey that opens the appearance menu is not implemented.

 

 

Personally I use following mapkey

mapkey dd ~ Activate `main_dlg_cur` `page_View_control_btn` 1;\
mapkey(continued) @SYSTEMstart D:\\PTC\\MoveMouseToAppearances\\MoveMouseToAppearances.exe;

~ Activate `main_dlg_cur` `page_View_control_btn` 1; ... activates View tab

@SYSTEMstart D:\\PTC\\Open_Windows_list\\Open_Windows_list.exe; ... runs AutoIt script - this script moves mouse cursor to requested screen coordinates and clicks LMB.

 

Note: In some companies, the use of AutoIt scripts is prohibited.


Martin Hanák

PTC response: The creation of mapkey that opens the appearance menu is not implemented.

 


Martin Hanák
kdirth
20-Turquoise
(To:MartinHanak)

I have added Appearances to the Model tab so that I do not have to switch tabs.


There is always more to learn in Creo.
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags