Create a new group of objects.

syntaxSyntax:
FWizAssembly.BeginGroup(name)

Parameters

Parameter Description
name Enter the name to assign to the group of objects.

Return Value

If an error occurs it returns false otherwise it returns true.

Remarks

All objects created after calling the BeginGroup function are added to the group. To end the construction of the object group, call the EndGroup function.

Example

  Copy codeCopy code
function OnBuildAssembly()
{
  var ctx = FWiz.GetAssemblyCtx();
  ctx.DrawAttributes(false, false);
  
  var style = FWiz.GetPenStyle(0);
  style.SetStyle("ballpoint pen blue");
  ctx.SetPenStyle(0); 
  var rect = new DlxRect();
  rect.SetRect(new DlxPoint(0,0), 10, 5);  
  ctx.BeginGroup("Body");
  ctx.DrawRectangle(rect);
  ctx.EndGroup();
}

See also