// file : /home2/designs/boards/BVDC_24/Work/Geometries/slim_mox_104_modif_res
//
// date :  Tuesday    3 JULY 2007  12:00:00    Initial draft - both pins
//                                               have HV power plane relief
//                                               slim_mox_104_modif_res has its
//                                               leads bent out to the side
//
//        Thursday    4-Oct-2007     Clean up for use on BVDC-24 card.
//
//
//
//            Resistor   Ohmite  SLIM-MOX-104   Modified Leads
//         ------------------------------------------------------
//
//  This is the geometry for the  Ohmite  Slim-Mox 104  resistor.
//  It is mounted to the pcb in a modified form with one lead bent
//  out forward and the other lead bent out backwards.
//
//  The dimensions of this resistor are:
//
//     height above the pcb = 0.34"      8.64 mm
//              body length = 1.08"     27.43 mm
//             lead spacing = 0.90"     22.86 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
//



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


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

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

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_thd_mox_104_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_104_p2", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_thd_mox_104_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_104_modif_res", @replace);

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

$$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 , , [-13.75, -5.9,    -9.15, -5.9,    -9.15, -1.3,    13.75, -1.3,    13.75, 5.9,    9.15, 5.9,    9.15, 1.3,    -13.75, 1.3] );



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

$$path( "SILKSCREEN", 0.40 , , [-13.75,  1.3,      9.15,  1.3] );
$$path( "SILKSCREEN", 0.40 , , [ -9.15, -1.3,     13.75, -1.3] );

$$path( "SILKSCREEN", 0.40 , , [  9.15,  5.9,     13.75,  5.9] );
$$path( "SILKSCREEN", 0.40 , , [-13.75, -5.9,     -9.15, -5.9] );

$$path( "SILKSCREEN", 0.40 , , [-13.75,  1.3,    -13.75, -5.9] );
$$path( "SILKSCREEN", 0.40 , , [ 13.75,  5.9,     13.75, -1.3] );

$$path( "SILKSCREEN", 0.40 , , [ -9.15, -1.3,     -9.15, -5.9] );
$$path( "SILKSCREEN", 0.40 , , [  9.15,  5.9,      9.15,  1.3] );


$$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 , , [-11.5, -3.81 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, term_thd_mox_104_p1");

$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [ 11.5,  3.81 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, term_thd_mox_104_p1");

