Constructs a FWizPadStyle object.
Syntax: |
new FWizPadStyle(styleIndex)
|
Parameters
Parameter |
Description |
styleIndex |
Index of the pad style associated with this object. There are 16 styles available with indexes from 0 to 15. |
Example
See the TO-220 sample code for the complete script.
|
Copy code
|
var style = new FWizPadStyle(0);
if (style.IsAutoPadStyle())
{
style.SetStyle(1);
var holeSize = FWiz.CalcHoleDiameter(FWiz.GetValue("b"), -1);
var padSize = FWiz.CalcPadDiameter(holeSize);
style.InitTHPadStack(holeSize, padSize);
}
// Add Pads
FWiz.DrawPad(0, 0, "2", style, 0);
FWiz.DrawPad(-FWiz.GetValue("e"), 0, "1", style, 0);
FWiz.DrawPad(+FWiz.GetValue("e"), 0, "3", style, 0);
|
See also