ScrDrawRectangle

Draws a rectangular plane.

UI Command:   Home > Draw Rectangle.
Syntax:   obj.ScrDrawRectangle(<x1>, <y1>, <x2>, <y2>, <layerName>, <netName>, <unit>)
Parameters:  

DOUBLE x1

DOUBLE y1

DOUBLE x2

DOUBLE y2

BSTR layerName

BSTR netName

BSTR unit

Return Value:  

BOOL:

  • 0 – Failure
  • 1 – Success
VB Example:  

obj.ScrDrawRectangle(100, 100, 200, 200, "Top Metal", "NET-1", "mm")

IPY Example:  

oDoc.ScrDrawRectangle (100, 100, 200, 200, 'Top Metal', 'NET-1', 'mm')