# 2.5.25 laysetpos

## Brief Information

Set position of one or more graph layers.

## Command Line Usage

 

//Before run this XF, please check that there is a active graph 

laysetpos igp:=Graph1 layer:="1:0" left:=20; 

laysetpos layer:=2 top:=50 unit:=page; 

laysetpos igp:=Graph1 layer:=1:0 left:=20; 

## Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Graph igp

Input

GraphPage

<active>

Specifies the graph to manipulate.

Layer layer

Input

string

<active>

Specifies the layer(s) to manipulate. Note: to specify multiple layers, use colon to separate the first layer and the last layer to be manipulated. For example, "1:3" means the first, second and the third layer.

Left left

Input

double

<optional>

Specifies the position of the layer frame relative to the left side of the page.

Top top

Input

double

<optional>

Specifies the position of the layer frame relative to the top side of the page.

Unit unit

Input

int

% of Page

Specifies the unit for the left variable and the top variable.
Option list

• page:0% of Page
Uses percentage of the graph page height and width as the unit.
• inch:1 inch
Uses inch as the unit.
• cm:2 cm
Uses cm as the unit.
• mm:3 mm
Uses mm as the unit.
• pixel:4 pixel
Uses pixel as the unit.
• point:5 point
Uses point as the unit.

## Description

This X-Function can be used to set the position of specifies graph layers. You can also use it to align layers.