This event is raised when the graphic image of the component is required for assembly.

function OnBuildAssembly()


The purpose of this function is to create all the graphic objects that make up the graphic image of the component. If this function is not defined, the image for assembly is derived from the one created as a 2D image in response to the OnBuild2DImage event.


See the TO-220 sample code for the complete script.

  Copy codeCopy code
function OnBuildAssembly()
  var ctx = FWiz.GetAssemblyCtx();
  ctx.DrawAttributes(false, false);

See also