Builds the lead pair.

syntaxSyntax:
DlxLead.Pair(style, shapeType, leadLength, tickness, standoffHeight, leadSpacing, maxBodyRange, leadProtusion=0, leadOffset=0, rotAngle=0)

Parameters

Parameter Description
style A Dlx3DStyle object or the index of the style. There are 10 styles available with indexes from 0 to 9.
shapeType Specify one of the following values:
FWiz.PINPAIRMODE_STRAIGHT
FWiz.PINPAIRMODE_STANDOFF90
FWiz.PINPAIRMODE_STANDOFF45
FWiz.PINPAIRMODE_SNAPINX
FWiz.PINPAIRMODE_SNAPINY
FWiz.PINPAIRMODE_CRIMPEDINLINE
leadSpacing If 0 is specified for this parameter only one lead is created.
leadOffset Lead offsets from origin.
rotAngle Angle of rotation of leads.

Return Value

If the operation ends correctly it returns true otherwise it returns false.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("silver");

  var pin = new DlxLead();
  pin.Pair(style, FWiz.PINPAIRMODE_STANDOFF45, 3, 0.5, 3, 5, 2, 1);
  ctx.Add(pin);
}

See also