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

Does anyone have a mapkey to close all windows?

SOLVED
Highlighted
Garnet

Does anyone have a mapkey to close all windows?

Does anyone have a mapkey to close all windows?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Does anyone have a mapkey to close all windows?

Try this:

mapkey qw @MAPKEY_NAMEClose all open windows;@MAPKEY_LABELQuit Window;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;

 

It will close up to 20 windows but Creo is currently limiting me to 18 windows open at one time.

Too Many Windows.PNG

View solution in original post

8 REPLIES 8
Highlighted

Re: Does anyone have a mapkey to close all windows?

People may better, but a cludge

 

We use qw to Quit Window (C is used as a prefix for our Create related mapkeys), and thus

qaw Quit All Windows - map have to be called a couple of times if there are alot of windows open

 

 Regards

 

 

 

mapkey qaw @MAPKEY_NAMEQuit All Windows;@MAPKEY_LABELQuit All Windows...[qaw];\
mapkey(continued) %qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;
!
mapkey qw @MAPKEY_LABELQuit Window...[qw];\
mapkey(continued) ~ Activate `main_dlg_cur` `page_View_control_btn` 0;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup`;

Highlighted

Re: Does anyone have a mapkey to close all windows?

@cadcam Thanks for the reply and sharing the code but looking for more simplified solution. Specially for a big assemblies.

 

Highlighted

Re: Does anyone have a mapkey to close all windows?

We are using the same method.

QW = Quit Window

Then create a new mapkey that re-uses the "QW mapkey" multiple times to close multiple windows.

 

How many windows do you have open when working on a large assembly?

Highlighted

Re: Does anyone have a mapkey to close all windows?

around 20 😐

Highlighted

Re: Does anyone have a mapkey to close all windows?

To close 1 or 1-20 windows 😉

 

mapkey qw @MAPKEY_LABELQuit Window [qw];\
mapkey(continued) ~ Command `ProCmdWinCloseGroup`

!

mapkey qaw @MAPKEY_NAMEQuit All Windows;@MAPKEY_LABELQuit All Windows...[qaw];\
mapkey(continued) %qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;\
mapkey(continued) %qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;%qw;


Highlighted

Re: Does anyone have a mapkey to close all windows?

We use this as well.  A surprisingly useful alternative is a mapkey I created to close Creo and start a new session.  Basically record shutting down Creo, then put that after use a batch command to start Creo.  Make sure to make the name something no one would accidentally type because closes without saving! 🙂

(Note, you must replace C:\\dir\\StartCreo.bat with whatever file you use to start Creo)

 

 

mapkey somethingrediculous @MAPKEY_NAMEExit Creo without saving and Start new Creo Session;\
mapkey(continued) @MAPKEY_LABELExit & Restart!;\
mapkey(continued) @SYSTEM\@echo off\n\n \
mapkey(continued) C:\\dir\\StartCreo.bat;\
mapkey(continued) %exitnosave;


mapkey exitnosave @MAPKEY_NAMEExit Creo without saving;\
mapkey(continued) @MAPKEY_LABELExit!;\
mapkey(continued) ~ Select `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdExit` ;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;

Highlighted

Re: Does anyone have a mapkey to close all windows?

Try this:

mapkey qw @MAPKEY_NAMEClose all open windows;@MAPKEY_LABELQuit Window;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;\
mapkey(continued) ~ Command `ProCmdWinCloseGroup` ;~ Command `ProCmdWinCloseGroup` ;

 

It will close up to 20 windows but Creo is currently limiting me to 18 windows open at one time.

Too Many Windows.PNG

View solution in original post

Highlighted

Re: Does anyone have a mapkey to close all windows?

That is the simple solution.

Announcements