GetGridObject Object Query Command

GETGRIDOBJECT Object Queries

Gets coordinates and information for a grid object.

getgridobject [POSITION stem] [POINTS stem] [DIVISIONS stem] [ROTATION stem] [ABOUT stem] [CONSTRAIN string] [PRINT string] [DOCUMENT name | WINDOW name | OBJECTID number]

POSITION/a Gets the bounding box coordinates.

POINTS/a Gets the coordinates of the vertices of a non-rectangular grid object (numbered counterclockwise).

DIVISIONS/a Gets the number of grid cells in each direction.

ROTATION/a Gets the rotation.

ABOUT/a Gets the rotation point.

CONSTRAIN/s Gets the proportional scale flag state.

PRINT/s Gets the print flag state.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

OBJECTID/i The object number. Default=current.

Results:

The object ID is returned to RESULT.

POSITION stem

left/d The left coordinate.

top/d The top coordinate.

right/d The right coordinate.

bottom/d The bottom coordinate.

POINTS stem

x1/d Point 1's horizontal coordinate.

y1/d Point 1's vertical coordinate.

x2/d Point 2's horizontal coordinate.

y2/d Point 2's vertical coordinate.

x3/d Point 3's horizontal coordinate.

y3/d Point 3's vertical coordinate.

x4/d Point 4's horizontal coordinate.

y4/d Point 4's vertical coordinate.

DIVISIONS stem

h/i The count of horizontal divisions.

v/i The count of vertical divisions.

ROTATION stem

mode/k The rotation point: POINT | CENTER.

slant/d The slant angle.

twist/d The twist angle.

ABOUT stem

x/d The point's horizontal coordinate.

y/d The point's vertical coordinate.

CONSTRAIN string/k The constrain flag: ON | OFF.

PRINT string/k The print flag: ON | OFF.

Examples:

getgridobject position coord
say 'Left:   '||coord.left
say 'Top:    '||coord.top
say 'Right:  '||coord.right
say 'Bottom: '||coord.bottom

 

GetGridObject  Command Definition  url:PGScmd/getgridobject
  created:2006-03-30 22:20:07   last updated:2006-03-30 22:20:07
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For GetGridObject
Dan Kilroy wrote...2006-05-03 18:30:34

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

Gets the {...} .

objectid = GetGridObject ([POSITION &coord/.LEFT.TOP.RIGHT.BOTTOM] [POINTS &coord/.X1.Y1.X2.Y2.X3.Y3.X4.Y4] [DIVISIONS &grid/.H.V] [ROTATION &rotation/.SLANT.TWIST] [ABOUT &mode/.MODE<POINT|CENTER>.X.Y] [CONSTRAIN &flag<ON|OFF>] [PRINT &flag<ON|OFF>] [DOCUMENT document | WINDOW document-window | OBJECTID objectid])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For GetGridObject