/***************************************************************************/
/*** REVISIONS BY CHRISTOPHER BUCKLEY DEC-2001 AS FOLLOWS:


BUGS FOUND: (somebodyyyy was sleeeepiiing)


   ShapeTexts[C.pad.shape]
   to
   ShapeTexts[C.pad.shape[LAYER_PADS]]

   ShapeTexts[C.pad.diameter]
   to
   ShapeTexts[C.pad.diameter[LAYER_PADS]]


COMMENTS:

   After trying this script, and experimenting with the demo version 4.08,
I reviewed the .SCR file which this module spits out. I found a number of
concerns in the "numbers" produced for coordinates of the entities.

   The MAJOR concern is that Eagle (in my trials) has "rounding" problems.
It seems that point values "float" such that 0.03125 ends up as 0.031246
or some other thing. Although it is possible this is related to Grid/Snap
reliability, it may be caused by user errors in creating symbols/packages.

   The solution was to incorporate routines I developed for a print routine
in AutoCAD. Two routines provide different types of coordinate adjustments
- as opposed to rounding - to eliminate such errors: gf_tendancy & gf_notendancy.

   Although developed for an AutoCAD environment, the algorithms are simple and
transferrable to almost any number crunching program.


BE ADVISED the conventions for the naming of symbols added to the original,
is personal intellectual property.

Prefix     af_ = Float Argument
           gf_ = Float Global
           tf_ = Float Temporal
           gi_ = Integer Global
           ti_ = Integer Temporal


REVISIONS:

       The revisions to this ULP include:

       ECNoScaleSpec   - Only needed for "cancel" detection.
       GetScale()      - REMOVED
       Norm()          - added gf_tendancy to correct for "floatation"
       Main()          - revised for GetScale removal - really small now
       SCRHeader()     - added fetching of grid parameters

       SET WIRE_BEND   - added otherwise WIRE behaves really wieeerrrd.
       SET WIRE_STYLE  - not longer works must use CHANGE STYLE nn

       ALL routines checked for entity drawing syntax accuracy


ADDITIONS:

       gf_tol          - global variable for gf_tendancy
       gi_wbend        - global variable for wire bending
       gi_wstyle       - global variable for wire style

       gf_tendancy()   - routine to correct for "floatation"
       gf_notendancy() - similar routine to correct for "floatation"
       gr_getparms()   - gets user desired conversion parameters


Cheers,
Christopher Buckley


***************************************************************************/


                                                                         
