Builds through-hole lead.
Syntax: |
DlxLead.Pin(style, pinWidth, pinHeight, tickness, headWidth, headHeight, length, bFlat=false, arrowAngle=30) |
Parameters
Parameter |
Description |
style |
A Dlx3DStyle object or the index of the style. There are 10 styles available with indexes from 0 to 9. |
bFlat |
If true the initial part has a flat base. |
arrowAngle |
Tip angle value. Enter 0 for a flat terminal. |
Return Value
If the operation ends correctly it returns true otherwise it returns false.
Example
|
Copy code
|
function OnBuild3DModel()
{
var ctx = FWiz.Get3DModelCtx();
var style = FWiz.Get3DStyle(0);
style.SetStyle("silver");
var pin = new DlxLead();
pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
ctx.Add(pin);
}
|
See also