6.0

Table Of Contents
124
Language Reference
4
&maxheight := pdfheight( ‘parts_manual’,4 )
Physical (system object)
The physical object contains system variables that reflect the current state of the document. These system
variables are read-only and therefore cannot be changed using the set command. You can access each
system variable using the same syntax.
Syntax
&physical.x measure value
&physical.y measure value
Variables
x,y — Measure value containing the current horizontal (x) or vertical (y) position of the drawing pen,
relative to the upper left corner of the physical page, whose coordinates are (0,0). This system object can
be used to assess the amount of space left on a page.
Pie (procedure)
Creates a pie slice shape, which can then be rendered using stroke, fill, or strokeandfill.
Syntax
pie( x, y, radius, startangle, endangle )
Arguments
x, y — Measure values representing the horizontal/vertical position, in inches, of a circle's center
representing the whole pie from which to draw a slice.
radius — Measure value representing the length, in inches, of the segments of the pie, i.e. its radius.
startangle, endangle — Measure values representing the angles, in degrees, of both segments of the pie
slice. Values increase counter clock wise, with 0 extending right from the center of the circle.
Code Sample Example
This example draws a whole pie chart with a shadow effect.
Example
setfillcolor([0,0,0,50]) %Set shadow colour to gray
pie(1.5,1.5,1,60,290) %Create shadow for first slice
translate(0.2,0.2) %Separate shadows