
//
//  file:  wurth_74477125_560uh_650ma_geom
//
//  date:  18-Jan-2023   original for the Disco-Kraken Board
//
//
//
//
//  This is the geometry for the  Wurth 74477125
//  size 1260 inductor  that is about
//  12.0 mm in X   by   12.0 mm in Y.
//
//  This SMD inductor is about  6.0 mm  tall.
//  The 2 pads are along the horizontal X axis.
//
//  This geometry includes it own SMD pads that are
//  2.9 mm wide in X   by   5.4 mm high in Y.
//  The centers of the pads are  9.9mm  apart along the X axis.
//
//  This is a   560 uH choke   750 mOhm   650 mAmp
//  and a self resonant at about 2.5 MHz.
//



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


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

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

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

$$point_mode(@vertex);

$$polygon( "PAD", ,          [ -1.45, -2.70,    1.45, -2.70,     1.45, 2.70,    -1.45, 2.70 ] );

$$polygon( "SOLDER_MASK", ,  [ -1.50, -2.75,    1.50, -2.75,     1.50, 2.75,    -1.50, 2.75 ] );

$$polygon( "PASTE_MASK", ,   [ -1.45, -2.70,    1.45, -2.70,     1.45, 2.70,    -1.45, 2.70 ] );

$$attribute( "TERMINAL_SURFACE_DEFINITION", "");

//
//   NOTE that Sheet_Dielectric_2 is being used to add metal to the
//   backside of the pads to make a "fill" with the associated Power
//   Via Arrays.

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


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

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

$$point_mode(@vertex); 

$$attribute( "COMPONENT_LAYOUT_TYPE", "surface");

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

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




//
//   Reduced size placement outline
//   outline just around device pins
//   for tighter placement fit
//

$$template_line_style( @Solid );

$$initial([    6.00,   6.00  ], , @nosnap );
$$terminal([  -6.00,   6.00  ] );
$$terminal([  -6.00,  -6.00  ] );
$$terminal([   6.00,  -6.00  ] );
$$terminal([   6.00,   6.00  ] );

$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale );




$$template_line_style( @Solid );

$$path( "SILKSCREEN", 0.20, , [ -6.00,  6.00,     6.00,  6.00 ]);
$$path( "SILKSCREEN", 0.20, , [ -6.00,  6.00,    -6.00,  3.00 ]);
$$path( "SILKSCREEN", 0.20, , [  6.00,  6.00,     6.00,  3.00 ]);

$$path( "SILKSCREEN", 0.20, , [ -6.00, -6.00,     6.00, -6.00 ]);
$$path( "SILKSCREEN", 0.20, , [ -6.00, -6.00,    -6.00, -3.00 ]);
$$path( "SILKSCREEN", 0.20, , [  6.00, -6.00,     6.00, -3.00 ]);



// Reference Designator is on SILKSCREEN Layer.

$$text( "SILKSCREEN", "^$ref", 0.0, 6.7, 2.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//
//  Define the 2 pins on the  Wurth 74477125 inductor
//
//  pin #1 is to the left and pin #2 is on the right both on the X axis.
//

$$attribute( "COMPONENT_PIN_DEFINITION",    "1", , @scale , , [ -4.95,  0.00 ]);

$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, wurth_1260_pad");


$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [  4.95,  0.00 ]);

$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, wurth_1260_pad");



