Creates a line passing through two points.
Syntax: |
---|
FWizAssembly.DrawLine(p1, p2) |
Parameters
Return Value
If an error occurs it returns false otherwise it returns true.
Example
Copy code | |
---|---|
function OnBuildAssembly()
{
var ctx = FWiz.GetAssemblyCtx();
var style = FWiz.GetPenStyle(0);
style.SetStyle("Marker pen blue");
ctx.SetPenStyle(0);
ctx.DrawLine(new DlxPoint(-20, -20), new DlxPoint(20, 20));
}
|