drawRect

Syntax: drawRect document, rect, filled

Draws a rectangle on the current page. If the filled parameter is TRUE, the rectangle is filled using the current color. Otherwise, the rectangle is stroked using the current line weight and color.

Example:

drawRect doc, Rect(0,0,500,100), TRUE