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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Creo window focus controls; Alternate to CTRL+A?

tbraxton
22-Sapphire I

Creo window focus controls; Alternate to CTRL+A?

Is anyone aware of any command sequence other than CTRL+A to shift focus to the graphics window in Creo? The CTRL+A sequence closes any dialogue boxes (e.g. find tool etc.). I am in need of a method to shift focus to the graphics window or an alternate method which will keep the dialogue boxes open while enabling the execution of commands via mapkeys. I am looking for a direct command call that does not require use of the mouse to activate the graphics window. This is all in the context of creating and nesting mapkeys.

 

One can pick the window with LMB but that does not seem very robust to me to record such a LMB and use it in mapkeys.

 

 

What I am attempting to implement is the following via an automated mapkey sequence. I am using the mapkey recorder and calling existing mapkeys when creating this sequence.

 

1) Create a feature

2) Place this feature on a layer by using select last feature functionality in the find tool

 

The focus issue arises when calling the layer properties dialogue box, which has focus when invoked. The focus must be switched back to the graphics window to execute mapkeys. It can be done with the mouse (not preferred) but I am not aware of any other method to put the focus back in the graphics window. To maintain the mapkeys I keep them short and nest them wherever possible and this sequence calls 6 mapkeys.

 

I have created the following to deal with the focus issue but I still question the robustness of this approach. Is anyone able to offer insight from the trail file record of the command what is happening with this? From the trial file it does not appear to be using any mouse function calls and may work fine for shifting the focus. If anyone knows of any reference docs for trail syntax that would be useful.

 

mapkey .fcs @MAPKEY_LABELFocus main;;

 

This is the trail file output for this command:

!%CIPlaying mapkey .fcs...

!playing mapkey .fcs

~ Select `main_dlg_cur` `appl_casc`

~ Close `main_dlg_cur` `appl_casc`

 


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.
========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
ACCEPTED SOLUTION

Accepted Solutions
tbraxton
22-Sapphire I
(To:tbraxton)

I finally got a response from support. They provided a solution below if anyone else has a need to use this in nested mapkeys or while recording mapkeys, test it. If you find it is not working please document the conditions and report back.


The information I have for this from R&D is as below.

If users wants current active main window to be brought to the front without disrupting the state of the window, then they could use the following mapkey definition for the .fcs mapkey:

mapkey .fcs @MAPKEY_LABELFocus main;~ Activate `main_dlg_cur` `main_dlg_cur`;

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

View solution in original post

1 REPLY 1
tbraxton
22-Sapphire I
(To:tbraxton)

I finally got a response from support. They provided a solution below if anyone else has a need to use this in nested mapkeys or while recording mapkeys, test it. If you find it is not working please document the conditions and report back.


The information I have for this from R&D is as below.

If users wants current active main window to be brought to the front without disrupting the state of the window, then they could use the following mapkey definition for the .fcs mapkey:

mapkey .fcs @MAPKEY_LABELFocus main;~ Activate `main_dlg_cur` `main_dlg_cur`;

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


Top Tags