ScrDrawTrace

Draws a trace.

UI Command:   Home > Draw Trace.
Syntax:   obj.ScrDrawTrace(<points>, <width>, <layerName>, <netName>, <unit>)
Parameters:  

ARRAY points (x, y, x, y, x, y, ...)

DOUBLE width

BSTR layerName

BSTR netName

BSTR unit

Return Value:  

BOOL:

  • 0 – Failure
  • 1 – Success
VB Example:  

dim points

points = Array(10,-10,-5,5,25,20,-20,0)

outcome = obj.ScrDrawTrace(points,0.5,"Top Metal","NET-1","mm")

IPY Example:  

oDoc.ScrDrawTrace([-10,10,5,-5,-25,-20,20,0], '0.5', 'Top Metal', 'NET-1', 'mm')