SourceFileAccess.swp - Copyright 2003 Leonard Kikstra                10/09/2003

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

INTRODUCTION:
SourceFileAccess is an example macro contains routines I use for accessing 
data in an external configuration file.  If the data file is not found, the 
macro uses default values.

In the example macro provided, the data read from the source file will be 
concatenated and displayed in a message box after the data has been read from 
[GROUP] section of the data file.  

If the source file exists, the 'ReadProperties' routine will be executed.  If 
the source file does not exist, the user will be informed and the 'SetDefaults' 
routine will be executed.  This provides for a means of still having values for 
the program to use if the source file cannot be found.  This is preferred to 
save the user receiving a 'File not found' error and the macro program abruptly 
stopping.

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

USING AN EXTERNAL SOURCE FILE FOR READING PROGRAM DATA:
  * Data/source file must be in same directory as macro file.  
  * Data/source 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.
  * If the data/source file is not found, the macro should have values, 
    defined within the macro, that can be used.

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