GetLine Object Query Command

GETLINE Object Queries

Gets coordinates and information for a line.

getline [POSITION stem] [ROTATION stem] [ABOUT stem] [CONSTRAIN string] [PRINT string] [DOCUMENT name | WINDOW name | OBJECTID number]

POSITION/a Gets the coordinates.

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

x1/d The first endpoint's horizontal coordinate.

y1/d The first endpoint's vertical coordinate

x2/d The second endpoint's horizontal coordinate

y2/d The second endpoint's vertical coordinate.

ANGLES stem

type/k The ellipse type: ELLIPSE | PIE | ARC.

begin/d The beginning angle.

end/d The ending angle.

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:

getline position coord
if coord.x2>coord.x1 then do
   temp=coord.x1
   coord.x1=coord.x2
   coord.x2=temp
   temp=coord.y1
   coord.y1=coord.y2
   coord.y2=temp
end
say 'Left Endpoint:  '||coord.x1||', '||coord.y1
say 'Right Endpoint: '||coord.x2||', '||coord.y2

 

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

User Contributed Comments For GetLine
Dan Kilroy wrote...2006-05-03 19:08:14

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

Gets the {...} .

objectid = GetLine ([POSITION &coord/.X1.Y1.X2.Y2] [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 GetLine