Skip to main content
1-Visitor
November 17, 2017
Solved

Does anyone have a mapkey to close all windows?

  • November 17, 2017
  • 1 reply
  • 4463 views

Does anyone have a mapkey to close all windows?

Best answer by TomU

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

1 reply

1-Visitor
November 17, 2017

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

MadhaviG1-VisitorAuthor
1-Visitor
November 27, 2017

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

 

HamsterNL
18-Opal
November 27, 2017

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?