Create a shape consisting of lines, curves, and arcs.

syntaxSyntax:
FWizAssembly.DrawShape(shape)
FWizAssembly.DrawShape(shapeDef)

Parameters

Parameter Description
shape A DlxFigure object with the shape.
shapeDef String with the definition of the shape. For more information, see Shape Format Specifications.

Return Value

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

Example

  Copy codeCopy code
function OnBuildAssembly()
{
  var ctx = FWiz.GetAssemblyCtx();
  var pen = FWiz.GetPenStyle(0);
  pen.SetStyle("Marker pen blue");
  ctx.SetPenStyle(pen);
  var brush = FWiz.GetBrushStyle(0);
  brush.SetStyle("Yellow");
  ctx.SetBrushStyle(brush); 
  ctx.DrawShape("V90,110,0;V110,130,0;V130,110,0;V90,110,-120;");   
}

See also