I_CANVAS
generates a drawing area on the SmartPart property palette or in the SmartPart dialog.
All objects hereafter defined by drawing commands are drawn within this area until I_CANVAS
is closed with I_CANVAS_END
.
For this the current settings defined by I_COLOR
and I_PEN
are used.
Syntax
I_CANVAS x_pos, y_pos, x_len, y_len [, img] or I_CANVAS x1, y1, x2, y2, ... xn, yn [, img]
Parameters
x_pos
, y_pos
(integer): X resp. Y coordinate of the starting point; position (left bottom point) of canvas
x_len
, y_len
(integer): dimension of canvas
x1
, y2
... xn
, yn
(integer): coordinates defining a polygonal canvas.
img
(string): resource image for background.
Example
I_COLOR 0 , 0 , 0 , 255 , 255 , 255 , 255 , 255
I_CANVAS 0,0,400,400
I_LINE 0,0,200,200
I_RECT 200,0,200,200
I_ELLIPS 0,200,200,200
I_TEXT 200,200,200,200,"test"
I_CANVAS_END
Remarks
Usable since script version 2.0 (Allplan 2014-1).
(C) ALLPLAN GmbH |
Privacy policy |