EditPolygon Object Command

EDITPOLYGON Object Commands

Sets the coordinates of a selected regular polygon.

editpolygon [POSITION centerx centery radiusx radiusy] [type] [SIDES number] [OFFSETANGLE angle] [DEFLECTION amount] [ANGLEDEFLECTION amount] [ROTATE angle | SKEW slantangle twistangle | SLANT angle | TWIST angle] [ABOUT pointx pointy | ABOUTCENTER] [constraint] [printable] [DOCUMENT name | WINDOW name | OBJECTID number]

POSITION/d The coordinates of the object.

type/k The polygon type.

Options: NORMAL|STAR|PUFFY|SCALLOP|WAVY.

SIDES/i The number of sides.

Must be >2.

OFFSETANGLE/d The pre-rotation angle.

DEFLECTION/d The spike depth.

ANGLEDEFLECTION/d The spike angle.

ROTATE/d The rotation angle.

SKEW/d The slant and twist angle.

SLANT/d The slant angle.

TWIST/d The twist angle.

ABOUT/d The rotation point.

ABOUTCENTER Rotates around its center.

constraint/k The aspect ratio constraint toggle.

Options: CONSTRAIN|FREE (default). printable/k The print object toggle.

Options: PRINT (default)|NOPRINT.

DOCUMENT/s The document name.

WINDOW/s The window name.

OBJECTID/i The number of the object to edit.

Notes:

All options default to the current values if not specified.

Examples:

editpolygon sides 11 wavy

editpolygon offsetangle 0 deflection 40% ยจ
   angledeflection 50%

 

EditPolygon  Command Definition  url:PGScmd/editpolygon
  created:2006-03-30 14:03:53   last updated:2006-03-30 14:03:53
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For EditPolygon
Dan Kilroy wrote...2006-05-03 20:25:27

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

Gets the {...} .

EditPolygon ([POSITION xcenter ycenter xradius yradius [ADJUST]] [SIDES sides] [OFFSETANGLE angle] [DEFLECTION scale] [ANGLEDEFLECTION angle] [NORMAL | STAR | PUFFY | SCALLOP | WAVY] [ROTATE rotation | SKEW slant twist | SLANT slant | TWIST twist] [ABOUT x y | ABOUTCENTER] [CONSTRAIN | FREE] [PRINT | NOPRINT] [DOCUMENT document | WINDOW document window | OBJECTID objectid])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For EditPolygon