You are here: Section Rules Reference > Section Rules Summary > SetOriginM

SetOriginM

Use this section level rule to set the section overlay/page segment X and Y coordinates. Using this rule, you specify where the page segment will be placed on the printed page.

You can also use the SetOrigin and SetOriginI rules. SetOrigin works just like this rule except you enter X and Y coordinates in FAP units, instead of millimeters. There are approximately 98 FAP units per millimeter.

SetOriginI works just like this rule except you enter X and Y coordinates in inches. There are approximately 25.4 millimeters per inch.

Syntax

SetOriginM (Fixed,X,Y,Form,Store(),ImageName)

Parameter

Description

FIXED

(Optional) Anchors the section at the specified X and Y coordinates. This must be the first parameter listed. See Fixing a section’s position for more information.

X

Sets the X coordinate for a section. This determines the section’s horizontal position.

Y

Sets the Y coordinate for a section. This determines the section’s vertical position.

Form

(Optional) The form name on which the section exists. This parameter lets you define more than one SetOrigin rule for a section and specify which one applies based on the name of the form.

Store( )

(Optional) This parameter lets you store the current section coordinates in prefix-name variables for later use. The syntax is:

Store(prefix-name variable)

For Windows, the coordinates are stored in:

prefix-name.left, prefix-name.right, prefix-name.top, and prefix-name.bottom

The stored coordinates can be referenced from any page in the form set.

Specify the X and Y coordinates using a combination of the following parameter prefixes plus the addition or subtraction of measurements you specify in millimeters. Here are the prefixes you can use:

Prefix

Description

Abs

Absolute page position based on millimeters. (supports overflow)

Rel

Relative to the last section’s top left coordinate. (supports overflow)

Max

Relative to the last section’s maximum edge. For example, Rel+0,Max+1 would position the current section 1 millimeter below the last section. (supports overflow)

Mpg

Relative to any section at the maximum edge. For example, Abs+0,Mpg+1 places the current section 1 millimeter below the lowest object currently on the page. (does not support overflow)

T2T

Top edge is placed relative to the last section’s top edge. (Similar to Rel)

T2B

Top edge is placed relative to the last section’s bottom edge. (Similar to Max+)

B2T

Bottom edge is placed relative to the last section’s top edge. (Similar to Max-)

B2B

Bottom edge is placed relative to the last section’s bottom edge.

L2L

Left edge is placed relative to the last section’s left edge. (Similar to Rel)

L2R

Left edge is placed relative to the last section’s right edge. (Similar to Max+)

R2L

Right edge is placed relative to the last section’s left edge. (Similar to Max-)

R2R

Right edge is placed relative to the last section right edge.

CTR

X/Y dimensions are centered on the last section’s X/Y dimensions.

See also