PMeasureUnits

Specifies the default measurement system used for the open publication settings or, if no publication is open, for future publications.


Command constructor

PMeasureUnits(short cMeasurement, short cVertical, short dCustomPoints);
short cMeasurement;
Measurement system for the horizontal ruler and for all coordinates (x- and y-axis), as specified with these values:
kMeasurementInches
kMeasurementDecimalInches
kMeasurementMetric
kMeasurementPica
kMeasurementCicero
kMeasurementCustom
short cVertical;
Measurement system for the vertical ruler, but not for vertical (y-) axis coordinates, as specified with these values:
kMeasurementInches
kMeasurementDecimalInches
kMeasurementMetric
kMeasurementPica
kMeasurementCicero
kMeasurementCustom
short dCustomPoints;
Space, in points, between major tick marks on the vertical ruler if cVertical is kMeasurementCustom
kParmDefault if not defining a custom vertical ruler (cVertical is not kMeasurementCustom) in tenths of a point (250.0 = 2500).
Matching ruler and text leading. If you specify custom for the cVertical parameter, you can set the vertical ruler to match your leading by specifying the leading value for dCustomPoints. Then, if PSnapToRulers is set to on and the paragraph is set to proportional leading, the baseline of the text will align with tick marks on the ruler.

Example. The following example specifies millimeters for the publication measurement system and a custom vertical ruler with major tick marks at 12 -point intervals.

PMeasureUnits(2, custom, 120);


See also

The PLeading and PSnapToRulers commands

The PGetMeasureUnits query

Adobe PageMaker 6.5 Help > Commands > File > Preferences


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support