TemplateSwitch.swp - Copyright 2003-2010 Leonard Kikstra             06/26/2010

Dowloaded from Lenny's SolidWorks Resources
	http://www.lennyworks.com/SolidWorks
-------------------------------------------------------------------------------

INTRODUCTION:

TemplateSwitch is a SolidWorks macro that provides a simple interface to make 
switching drawing templates easy.  An external data file contains all the 
information used by the macro.  TemplateSwitch can be configured to work with 
multiple sets of templates, which provides the ability to work with multiple 
corporate divisions.  Once your template information is entered into the data 
file, the data is used to simplify switching drawing templates.

Alternate sheets capability has been added to TemplateSwitch macro.  Alternate 
sheets is used where the templates for sheets 2 and above, are different than 
the template used for sheet 1.
-------------------------------------------------------------------------------

DISCLAIMER:

* These macros are provided free of charge for personal use and/or reference. 
* These macros may be freely distributed, provided the original copyright 
  notices remain unchanged and intact. 
* All macros were written to work with SolidWorks 2003. 
* These macros, and corresponding files, are provided as is. 
* There are no warranties, expressed or implied, that these macros will perform 
  as indicated, perform to users expectations, or complete a specific task. 
* These macros will change the current SolidWorks document. Use these macros at 
  your own risk. Back up your data before using this macro on any SolidWorks 
  document. 

-------------------------------------------------------------------------------

CONFIGURING THE EXTERNAL DATA FILE:

* Data file must be in same directory as macro file.
* Data file must have same name as macro file with '.ini' extension.
* Group names must be enclose with [] brackets.
* An empty line must exist at the end of each group.
* Group names are case sensitive and must match.
* Data should be enclosed in "" quotes to allow special characters to exist 
  within notes.
* The [TEMPLATES] section contains the division name, template directory,
  and numerical equivalent for units as follows:
	 0 = Millimeter			 5 = Feet & Inches
	 1 = Centimeter			 6 = Angstrom
	 2 = Meter			 7 = Nanometer
	 3 = Inch			 8 = Micron
	 4 = Feet			 9 = Mil
					10 = MicroInches
* Each division listed under [TEMPLATES] must have a corresponding group with
  the same name as the division, and must be enclosed in brackets [].  See
  example below.
* Within each division group, enter the template name to be displayed, the 
  template file name without extension, and numerical value representing the
  drawing paper size as follows:
	 0 = A Size Landscape		 6 = A4 Size
	 1 = A Size Vertical		 7 = A4 Vertical
	 2 = B Size			 8 = A3 Size
	 3 = C Size			 9 = A2 Size
	 4 = D Size			10 = A1 Size
	 5 = E Size			11 = A0 Size
* Setting up alternate sheets follows the same format as above, except the
  group naming.  The group name must end in " ALT".  See example below.
  To enable alternate sheets by default, under the group [SETTINGS], add the 
  following line.

AltSheet=True


Example:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 

[TEMPLATES]
"CORPORATE1 (Inch)",   "C:\SWX Source\Templates\CORPORATE1\", 3
"CORPORATE1 (Metric)", "C:\SWX Source\Templates\CORPORATE1\", 0

[CORPORATE1 (Inch)]
"A - Landscape (8.5 x 11)", "TEMP A", 0
"B - Landscape (11 x 17)",  "TEMP B", 2
"C - Landscape (17 x 22)",  "TEMP C", 3
"D - Landscape (22 x 34)",  "TEMP D", 4

[CORPORATE1 (Inch) ALT]
"A - Landscape (8.5 x 11)", "TEMP A Simple", 0
"B - Landscape (11 x 17)",  "TEMP B Simple", 2
"C - Landscape (17 x 22)",  "TEMP C Simple", 3
"D - Landscape (22 x 34)",  "TEMP D Simple", 4

[CORPORATE1 (Metric)]
"A4 - Landscape (210 x 297)",  "TEMP A4", 6
"A3 - Landscape (297 x 420)",  "TEMP A3", 8
"A2 - Landscape (420 x 594)",  "TEMP A2", 9
"A1 - Landscape (594 x 841)",  "TEMP A1", 10
"A0 - Landscape (841 x 1189)", "TEMP A0", 11

[CORPORATE1 (Metric) ALT]
"A4 - Landscape (210 x 297)",  "TEMP A4 Simple", 6
"A3 - Landscape (297 x 420)",  "TEMP A3 Simple", 8
"A2 - Landscape (420 x 594)",  "TEMP A2 Simple", 9
"A1 - Landscape (594 x 841)",  "TEMP A1 Simple", 10
"A0 - Landscape (841 x 1189)", "TEMP A0 Simple", 11

[SETTINGS]
AltSheet=True
-------------------------------------------------------------------------------

