// file : /home2/designs/boards/BVDC_24/Work/Geometries/cap_27_6_thd
//
// date : Wednesday    5 JULY 2006  12:00:00    Initial draft
//         Tuesday     1 AUG 2006   12:00:00    Reduce plane relief on pin #2
//                                                 relief = 3.8mm   0.4mm gap
//          Monday    21 AUG 2006   12:00:00    Add pad HV description text
//       Wednesday    23 Aug 2006   12:00:00    Move the Reference Designator
//                                                from Silkscreen to Silkscreen_2.
//        Thursday    24 Aug 2006   12:00:00    Move Reference Designator to
//                                                both Silk_1 and Silk_2.
//
//          Monday     2 JULY 2007  Move silkscreen outline into
//                                  to fit the component outline.
//
//       Wednesday     3-Oct-2007   Setup this component for the
//                                  BVDC-24 circuit board.
//
//
//
//          Capacitor   27mm by 6mm   0.01 uFd  1600V
//         -------------------------------------------
//
//  This is the geometry for the capacitor package which has a foot
//  print on the board of  26.5mm by 6mm  and  whose  0.8mm  diameter
//  leads are  22.5mm  apart.  This 0.10 uFd  1600V capacitor is 15mm tall.
//
//
//  Pad design and High Voltage aspects
//
//                       GROUND      High_Voltage
//                     ---------    --------------
//      DRILL_SIZE      1.00 mm         1.00 mm
//      PAD             3.00            3.00
//      SOLDER_MASK     3.00            3.00
//      POWER           3.80            9.00
//
//         The "High Voltage" pad has:
//                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
//
//         The "Ground" pad has:
//                the width of the donut is  1.0 mm  or about  39.4 mils
//           the width of the relief gap is  0.4 mm  or about  15.7 mils
//



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


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

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

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

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

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

$$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.25, -3.0,   13.25, -3.0,   13.25, 3.0,   -13.25, 3.0] );



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

$$path( "SILKSCREEN", 0.254 , , [-13.25,  3.0,     13.25,  3.0] );
$$path( "SILKSCREEN", 0.254 , , [-13.25, -3.0,     13.25, -3.0] );

$$path( "SILKSCREEN", 0.254 , , [-13.25,  3.0,    -13.25, -3.0] );
$$path( "SILKSCREEN", 0.254 , , [ 13.25,  3.0,     13.25, -3.0] );


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



//  The component pins

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

$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [ 11.25, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, term_thd_cap_27_6_p2");

