Create the DlxICBody object.
Syntax: |
new DlxICBody(style, width, length, height, standoffHeight, pinsEdgeHeight=-1)
|
Parameters
Parameter |
Description |
style |
A Dlx3DStyle object or the index of the style. There are 10 styles available with indexes from 0 to 9. |
width |
Package width. |
length |
Package length. |
height |
Package height. |
standoffHeight |
Standoff height. |
pinsEdgeHeight |
Height of the pin attachment edge. |
Example
|
Copy 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(10);
obj.SetRoundedCorners(0.2, FWiz.ICBODY_CORNERALL);
obj.SetNotch(1, 1, 0.3, true);
obj.Build();
ctx.Add(obj);
}
|
See also