LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpav.GetRectAllSelected - Move the rectangle of a group of object

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax 

x,y,x1,y1=lpav.GetRectAllSelected();

Description

Move the selection rectangle of a group of graphical object.

Remark

Garphical object cannot have negatif coordinates. X and Y define the upper left corner of the rectangle object.

Parameters

none

Return Values

X Y the upper left corner of the rectangle object.

X1 Y1 the lower right corner of the rectangle object.

nil if no object selected

Example

lp_value = 0;
lp_buffer ="error";
lpav.Append(lp.GetPath().."/config/active-view/sample/Cisco3500.cmp");
lpav.RefreshMap();
x,y,x1,y1=lpav.GetRectAllSelected();
lp.Trace("Rectangle ="..x.."/"..y.."/"..x1.."/"..y1);
lp.Break("pause");
lpav.ShiftPositionAllSelected(100,100,5,5);
x,y,x1,y1=lpav.GetRectAllSelected();
lp.Trace("Rectangle ="..x.."/"..y.."/"..x1.."/"..y1);
lpav.RefreshMap();
lp_buffer ="Ok";

 


www.loriotpro.com