Sets the beveled top.

syntaxSyntax:
DlxICBody.SetTopBeveled(width, side)

Parameters

Parameter Description
width Bevel width.
side Specify the side to which the bevel should be applied. Specify one of the following values:
FWiz.ICBODY_SIDEFRONT The bevel is applied to the front side of the package.
FWiz.ICBODY_SIDEBACK The bevel is applied to the back side of the package.
FWiz.ICBODY_SIDELEFT The bevel is applied on the left side of the package.
FWiz.ICBODY_SIDERIGHT The bevel is applied on the right side of the package.

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("gold");

  var obj = new DlxICBody(style, 3.9, 8.65, 1.6, 0.25, 0.15);
  obj.SetSlopeAngle(5);
  obj.SetTopBeveled(1, FWiz.ICBODY_SIDEFRONT);
  obj.SetBotBeveled(1, FWiz.ICBODY_SIDEFRONT);
  obj.Build();
  ctx.Add(obj);
}

See also