// file : /home2/designs/boards/BVDC_24/Work/Geometries/slim_mox_102_resistor
//
//
//     Tuesday    3-OCT-2007   Derive the Slim-Mox 102 resistor geometry
//                             from the Slim-Mox 104 geometry.
//                             This is for use on the BVDC-24 card.
//
//     Thursday  25-OCT-2007   Modify the Silkscreen to get it off of
//                             the pads.
//
//
//
//              Resistor   Ohmite  SLIM-MOX-102
//         -----------------------------------------
//
//  This is the geometry for the  Ohmite  Slim-Mox 102  resistor.
//
//  The dimensions of this resistor are:
//
//     height above the pcb = 0.34"      8.64 mm
//              body length = 0.58"     14.73 mm
//             lead spacing = 0.40"     10.16 mm
//            lead diameter = 0.032"     0.81 mm
//                thickness = 0.1"       2.54 mm
//
//
//
//  Pad design and High Voltage aspects.  In the BVDC card application
//  both leads of this resistor will be running at up to 500 Volts with
//  respect to the ground plane.  Thus sufficient relief from the
//  ground plane is needed.  This pad stack will use a 3mm relief.
//
//
//      DRILL_SIZE      1.00 mm
//      PAD             3.00
//      SOLDER_MASK     3.00
//      POWER           9.00
//
//         I.E.       the width of the donut is  1.0 mm  or about   39.4 mils
//               the width of the relief gap is  3.0 mm  or about  118.1 mils
//
//



$abort_enable = @false;
$$lock_windows(@on) ;
$$snap_diagonal(@off) ;
$$snap_orthogonal(@off) ;


//----------------------------------------------------------------------------

$$create_pin("term_thd_mox_102_p1", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_thd_mox_102_p1']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "default");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [1.0, 0.0]);

$$circle( "PAD",         0.0, 0.0,  3.0,  0.0);

$$circle( "SIGNAL",      0.0, 0.0,  3.0,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0,  3.0,  0.0);

$$circle( "POWER",       0.0, 0.0,  9.0,  0.0);


//----------------------------------------------------------------------------

$$create_pin("term_thd_mox_102_p2", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_thd_mox_102_p2']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "default");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [1.0, 0.0]);

$$circle( "PAD",         0.0, 0.0, 3.0,  0.0);

$$circle( "SIGNAL",      0.0, 0.0, 3.0,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0, 3.0,  0.0);

$$circle( "POWER",       0.0, 0.0, 3.8,  0.0);


//----------------------------------------------------------------------------



$$create_component("slim_mox_102_resistor", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'CO$slim_mox_102_resistor']);

$$point_mode(@vertex);


$$attribute( "COMPONENT_LAYOUT_SURFACE", "both");


$$attribute( "COMPONENT_HEIGHT", "", , @scale , , [15.0, 0.0]);

$$attribute( "COMPONENT_OUTLINE_OVERHANG", "no");


$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", , @scale , , [-7.37, -1.3,    7.37, -1.3,    7.37, 1.3,    -7.37, 1.3] );



//  Draw the Skilscreen    4 lines  on the outside of the component

$$path( "SILKSCREEN", 0.254 , , [-7.37,  1.8,     7.37,  1.8] );
$$path( "SILKSCREEN", 0.254 , , [-7.37, -1.8,     7.37, -1.8] );

$$path( "SILKSCREEN", 0.254 , , [-7.37,  1.8,    -7.37, -1.8] );
$$path( "SILKSCREEN", 0.254 , , [ 7.37,  1.8,     7.37, -1.8] );


$$text( "SILKSCREEN_1", "^$ref", 0.0, 0.0, 2.2, @CC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );
$$text( "SILKSCREEN_2", "^$ref", 0.0, 0.0, 2.2, @CC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//  The component pins

$$attribute( "COMPONENT_PIN_DEFINITION",    "1", , @scale , , [-5.1, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, term_thd_mox_102_p1");

$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [ 5.1, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, term_thd_mox_102_p1");

