CreateDrawing Drawing Command

Creates a new drawing.

createdrawing [POSITION left top right bottom] [CONTENTOFFSET offsetx offsety] [CONTENTSCALE scalex scaley] [ROTATE angle | SKEW slantangle twistangle | SLANT angle | TWIST angle] [ABOUT pointx pointy | ABOUTCENTER] [constraint] [printable] [stack] [frame] [DOCUMENT name | WINDOW name]
[DRAWING | LAYER] IfLayer:[VISIBLE | INVISIBLE][EDITABLE | NONEDITABLE]

POSITION/d The coordinates of the frame. Default=current bounding box.

CONTENTOFFSET/d The offset in the frame. Default=0,0.

CONTENTSCALE/d The scale of the object in the frame. Default=100%.

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.

frame/k Specifies whether the object is framed. Options: FRAMED|FRAMELESS.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

Results:

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

Examples:
ARexx:

createdrawing
createdrawing position 1.5 2.5 3.25 6.457 contentscale 80.5 constrain

 

CreateDrawing  Command Definition  url:PGScmd/createdrawing
  created:2006-03-30 10:07:13   last updated:2006-08-18 11:20:06
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For CreateDrawing
Dan Kilroy wrote...2006-05-03 15:09:33

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

Creates a {...} .

objectid = CreateDrawing ([INFRONT | INBACK | BEST] [POSITION left top right bottom] PGS40:[DRAWING | LAYER] IfLayer:[VISIBLE | INVISIBLE][EDITABLE | NONEDITABLE] [FRAMELESS | FRAMED] [CONTENTOFFSET x y] [CONTENTSCALE x y] [CONTENTROTATE rotation | CONTENTSKEW slant twist] [INTERNAL | EXTERNAL] [CONSTRAIN | FREE] [PRINT | NOPRINT] [ABOUT x y | ABOUTCENTER] [DOCUMENT document | WINDOW document-window | OBJECTID objectid])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For CreateDrawing