The code below will show you how to arrange windows with a CATIA macro:

 

 

Learn how this code works by reading VB Scripting for CATIA V5.