// file : /home2/designs/boards/VBDC_24/Work/Geometries/amp_1_row_2_contact
//
//      Tuesday      9-OCT-2007    Initial Draft.  Derived from
//                                 amp_1_row_12_contact.  BVDC-24.
//
//
//
//      2 pin board mount AMP receptacle
//
//     This connector receives 2 pins spaced 0.1"  25 mil square pins
//     Note that there are 2 thruholes per electrical pin connection.
//
//     This connector is used on the Bias Voltage Distribution Card
//     to provide a Ground connection between the Wire Frame card
//     and the BVDC card  (if it is needed in the future).
//
//      Define the Pad Stack to be used with this connector
//
//         DRILL_SIZE      1.00 mm
//         PAD             1.64
//         SOLDER_MASK     1.64
//         POWER           2.24
//
//         I.E.       the width of the donut is  0.320 mm  or about  12.6 mils
//               the width of the relief gap is  0.300 mm  or about  11.8 mils
//
//         11.8 mils is NOT enough GND plane relief to hold off 500 Volts.
//         The GND plane must be further relieved by explicitly defining
//         a shape in the pcb geometry.
//


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


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

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

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

$$point_mode(@vertex);

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

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

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

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

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

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


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




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

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

$$point_mode(@vertex);


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


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

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


$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", , @scale , , [-2.80, -5.00,   2.80, -5.00,   2.80, 5.00,   -2.80, 5.00] );



//  Draw the Skilscreen    4 lines  1mm outside of the component

//$$path( "SILKSCREEN", 0.40 , , [-2.80,  5.00,     2.80,  5.00] );
//$$path( "SILKSCREEN", 0.40 , , [-2.80, -5.00,     2.80, -5.00] );

//$$path( "SILKSCREEN", 0.40 , , [-2.80,  5.00,    -2.80, -5.00] );
//$$path( "SILKSCREEN", 0.40 , , [ 2.80,  5.00,     2.80, -5.00] );


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

// // $$text( "BREAKOUT", "^$ref", 0.0, 1.90, 3.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//  The component pins

$$attribute( "COMPONENT_PIN_DEFINITION",     "1", , @scale , , [  1.27,  3.94]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "1, term_thd_amp_1x2");

$$attribute( "COMPONENT_PIN_DEFINITION",     "2", , @scale , , [ -1.27,  3.94]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "2, term_thd_amp_1x2");


$$attribute( "COMPONENT_PIN_DEFINITION",     "3", , @scale , , [  1.27, -3.94]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "3, term_thd_amp_1x2");

$$attribute( "COMPONENT_PIN_DEFINITION",     "4", , @scale , , [ -1.27, -3.94]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "4, term_thd_amp_1x2");

