DrawGrid Drawing Command

Draws a new grid object.

drawgrid <pointx1 pointy1 pointx2 pointy2 | POINTS pointx1 pointy1 pointx2 pointy2 pointx3 pointy3 pointx4 pointy4> [DIVISIONS horz vert] [ROTATE angle | SKEW slantangle twistangle | SLANT angle | TWIST angle] [ABOUT pointx pointy | ABOUTCENTER] [constraint] [printable] [stack] [PAGE number | MPG name/S | DOCUMENT name | WINDOW name]

pointx1.../d The coordinates of a rectangular grid.

POINTS/d The coordinates of the vertices of a non-rectangular grid. (Numbered counterclockwise)

DIVISIONS/i The number of grid cells in each direction. Default=4x4.

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.


drawgrid 2 2 6 6 divisions 5 10
drawgrid 2 2 6 6 divisions 5 10 constrain noprint
drawgrid points 1 1 1 3 5 6 2 3 page 'MyDoc~6'


DrawGrid  Command Definition  url:PGScmd/drawgrid
  created:2006-03-30 13:47:47   last updated:2006-08-18 11:46:52
  Copyright © 1985-2023 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For DrawGrid
Dan Kilroy wrote...2006-05-03 18:29:22

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

Draw a grid object {...} .

objectid = DrawGrid (left top right bottom [POINTS x1 y1 x2 y2 x3 y3 x4 y4] [DIVISIONS x y] [ABOUT x y | ABOUTCENTER] [INFRONT | INBACK] [CONSTRAIN | FREE] [PRINT | NOPRINT] [PAGE document:...-pagenum | MPG document:...-masterpage:side | DOCUMENT document | WINDOW document-window])




See Also:




User Contributed Comments For DrawGrid