ScrDrawPolygon

Draws a polygonal plane.

UI Command:   Home > Draw Polygon.
Syntax:   obj.ScrDrawPolygon(<points>, <layerName>, <netName>, <unit>)
Parameters:  

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

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.ScrDrawPolygon(points,"Top Metal","NET-1","mm")

IPY Example:  

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