UnitManager.swp - Copyright 2003 Leonard Kikstra                    09/11/2003

Dowloaded from KIKSTRA SolidWorks Resources
	http://webpages.charter.net/mkikstra/SolidWorks.html
-------------------------------------------------------------------------------

INTRODUCTION:
UnitManager is a SolidWorks macro that provides a quick and consistent method 
for changing the unit settings (type and precision) in a SolidWorks document.  
Once your preferred settings entered into the external data file, the data is 
used by the macro to provide a simple interface for changing the unit settings 
of the SolidWorks document.  (If the external data file is not found, the user 
will be warned, and the default settings, stored in the macro, will be used.)  
This macro ensures the unit settings consistent with definitions that exist in 
the external data file.

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

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.
  * Section names must be enclose with [] brackets. 
  * Section names are case sensitive and must match.  
  * An empty line must exist at the end of each section.
  * Data with special characters should be enclosed in "" quotes.
  * The group [UNITS] must exist in the data file.
  * This group must contain the unit name, the numerical value representing 
    the unit type (see 'swLengthUnit_e' in the swconst.bas), the appropriate 
    setting for using fraction (see 'swFractionDisplay_e' in the swconst.bas)
    and number of decimal places (or fraction denominator).  See example below.

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

' Unit Name        Typ, Fra, Den/Plc
[UNITS]
"Decimal Inch",     3,   1,   2
"Fractional Inch",  3,   2,   8
"Millimeter",       0,   0,   2

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