2.5.29 laysetunit
Brief Information
Set unit for graph layers.
Command Line Usage
//Before run it please check that there is a active Graph
laysetunit layer:=1 unit:=inch;
laysetunit igp:=Graph1 layer:="2:4" unit:=page;
laysetunit igp:=Graph1 layer:=2:4 unit:=page;
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
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 manipulate. For example, "1:3" means the first, second and the third layer.
|
Unit
|
unit
|
Input
int
|
% of Page
|
Specifies the unit for the specified layers.
Option list
- page:0% of Page
- This unit is useful for maintaining the same layer size relative to the page size. When this unit is selected, the left, top, height, and width of the layer are in percentage of the graph page height and width.
- inch:1 inch
- When this unit is selected, the left, top, height, and width of the layer are measured in inch.
- cm:2 cm
- When this unit is selected, the left, top, height, and width of the layer are measured in cm.
- mm:3 mm
- When this unit is selected, the left, top, height, and width of the layer are measured in mm.
- pixel:4 pixel
- When this unit is selected, the left, top, height, and width of the layer are measured in pixel.
- point:5 point
- When this unit is selected, the left, top, height, and width of the layer are measured in point.
|
Description
This X-Function can be used to set the unit for several graph layers.
Related X-Functions
laylink
|