Macro Language: Text & Graphic Commands

text <tag> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [align] [pos] [offset] [cb] [cb] [cb]

Adds a text label to the document.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<x>, <y>: the position in screen coordinates of the text.
<font>: The font for the text (e.g. Helvetica-Bold)
<font size>: The font size of the text.
[c] [c] [c]: The color of the text. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).
[angle]: The text angle.
[align]: The text alignment (0=left, 1=center, 2=right).
[pos]: The position for automatically positioned text label (0=off, 1-21 fixed text positions).
[offset]: Offset for automatically positioned text label.
[cb] [cb] [cb]: The color of the text background. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

ftext <tag> <COOR> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [align] [tbalign] [cb] [cb] [cb]

Adds a floating text label to the document.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: the position of the text in the defined coordinates system.
<font>: The font for the text (e.g. Helvetica-Bold)
<font size>: The font size of the text.
[c] [c] [c]: The color of the text. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).
[angle]: The text angle.
[align]: The text alignment (0=left, 1=center, 2=right).
[tbalign]: The textbox alignment.
[pos]: The position for automatically positioned text label (0=off, 1-21 fixed text positions).
[offset]: Offset for automatically positioned text label.
[cb] [cb] [cb]: The color of the text background. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

qtext <COOR> <x> <y> <text> [angle] [align] [tbalign]

Adds a text label to the document. This command uses the default color and the default font. The generated text label has the tag 999.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: the position in screen coordinates of the text.
[angle]: The text angle.
[align]: The text alignment (0=left, 1=center, 2=right).
[tbalign]: The textbox alignment.

rect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c]

Draw a rectangle with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: The position of the rectangle in the defined coordinates system.
<w>, <h>: The size of the rectangle in the defined coordinates system.
[linewidth]: The rectangles line width.
[dash]: The dash pattern for the rectangle (0-15).
[c] [c] [c]: The color of the rectangle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

frect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [cf] [cf] [cf]

Draw a filled rectangle with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: The position of the rectangle in the defined coordinates system.
<w>, <h>: The size of the rectangle in the defined coordinates system.
[linewidth]: The rectangles line width.
[dash]: The dash pattern for the rectangle (0-15).
[c] [c] [c]: The color of the rectangle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).
[cf] [cf] [cf]: The fill color of the rectangle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

circle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c]

Draw a circle with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the circle belongs.
<x>, <y>: The position of the circle in the defined coordinates system.
<w>, <h>: The size of the circle in the defined coordinates system.
[linewidth]: The circles line width.
[dash]: The dash pattern for the circle (0-15).
[c] [c] [c]: The color of the circle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

fcircle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [cf] [cf] [cf]

Draw a filled circle with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the circle belongs.
<x>, <y>: The position of the circle in the defined coordinates system.
<w>, <h>: The size of the circle in the defined coordinates system.
[linewidth]: The circles line width.
[dash]: The dash pattern for the circle (0-15).
[c] [c] [c]: The color of the circle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).
[cf] [cf] [cf]: The fill color of the circle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

arrow <tag> <COOR> <x1> <y1> <x2> <y2> <a1> <a2> <at> <as> [linewidth] [dash] [c] [c] [c]

Draw an arrow with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the arrow belongs.
<x1>, <y1>, <x2>, <y2>: The start and end position of the arrow in the defined coordinates system.
<a1>, <a2>: Draw arrow at line start and/or end (possible values: yes/no)
<at>: The arrow type (0=open, 1=closed, 2=triangle, 3=double).
<as>: The arrow size.
[linewidth]: The arrow line width.
[dash]: The dash pattern for the arrow (0-15).
[c] [c] [c]: The color of the arrow. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

line <tag> <COOR> <x1> <y1> <x2> <y2> [linewidth] [dash] [c] [c] [c]

Draw a line with the given attributes.
<tag>: The tag argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<COOR>: The coordinate system to which the line belongs.
<x1>, <y1>, <x2>, <y2>: The start and end position of the line in the defined coordinates system.
[linewidth]: The line width.
[dash]: The dash pattern for the line (0-15).
[c] [c] [c]: The color of the line. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).

rmtext <tag>

Remove text object with the tag tag.

rmgraphic <tag>

Remove graphic object with the tag tag.

defaultfont <font> <font size>

Defines a default font for all text and graphic commands.

defaultcolor <c> <c> <c>

Defines a default color for all text and graphic commands.
<c> <c> <c>: The color of the circle. Dependent on the colormode the three values are RGB or HSB values from 0.0 to 1.0. The colormode can be set with the command colormode (0=RGB, 1=HSB).