DrawBox Drawing Command

Draws a new box.

drawbox <left top right bottom> [type] [CORNER radius | ECORNER radiusx radiusy]

[ROTATE angle | SKEW slantangle twistangle | SLANT angle | TWIST angle] [ABOUT pointx pointy | ABOUTCENTER] [constraint] [printable] [stack] [PAGE number | MPG name | DOCUMENT name | WINDOW name]

left.../d The coordinates of the box.

type/k The corner type.


CORNER/d The corner radius. Default=0.

ECORNER/d The elliptical corner radius. Default=0.

ROTATE/d The rotation angle. Default=0.

SKEW/d The slant and twist angle. Default=0.

SLANT/d The slant angle. Default=0.

TWIST/d The twist angle. Default=0.

ABOUT/d The rotation point.

ABOUTCENTER Rotates around its center. Default.

constraint/k The aspect ratio constraint toggle.

Options: CONSTRAIN|FREE (default).

printable/k The print object toggle.

Options: PRINT (default)|NOPRINT.

stack/k The stack position.

Options: INFRONT (default)|INBACK.

PAGE/s The page number. Default=current.

MPG/s The master page name and side. Default=current.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.


The identification number (handle) of the new object is returned to RESULT.


drawbox 1.75 1.5 2.75 2.5
drawbox 3 3 6 6 inback page 'project.doc~8'
drawbox 6 7 8 9 ecorner 0.1 0.2 skew 0 45


DrawBox  Command Definition  url:PGScmd/drawbox
  created:2006-03-30 13:47:47   last updated:2006-08-18 11:41:09
  Copyright © 1985-2023 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For DrawBox
Dan Kilroy wrote...2006-05-03 12:26:05

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.
Gets the {...} .

objectid = DrawBox (left top right bottom [CORNER radius | ECORNER rx ry] [NORMAL | ROUND | SCALLOP | BEVEL | INSET] [ROTATE rotation | SKEW slant twist | SLANT slant | TWIST twist] [ABOUT x y | ABOUTCENTER] [INFRONT | INBACK] [CONSTRAIN | FREE] [PRINT | NOPRINT] [PAGE document:...-pagenum | MPG document:...-masterpage:side | DOCUMENT document | OBJECTID objid | WINDOW document-window])




See Also:




User Contributed Comments For DrawBox