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.SetOptionAllSelected - Change parameters of all selected objects

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

number = lpav.SetOptionAllSelected(optionref, value) ;

Description

Change the parameter of the group of selected graphical objects.

Parameters

Optionref - The referenece of the parameter to modify as define in the loriotinit.lua file

dofile(lp.GetPath().."/config/script/loriotinit.lua");

value - The new value to assign to the option

Refer to the lpav.SetOption for the list of avaliable values.

Return Values

number - The number of modified object
Nil if error

Example

lp.Trace("start");
dofile(lp.GetPath().."/config/script/loriotinit.lua");
lp_value = 0;
lp_buffer ="error";
lpav.Load(lp.GetPath().."/config/active-view/sample/cisco3500.cmp");
co=lpav.SelectFirst();
while co~=nil do
lpav.SetSelected();
co=lpav.SelectNext();
end
lpav.SetOptionAllSelected(LPAV_X1,"10");
lpav.RefreshMap();
lp.Trace("fin");




www.loriotpro.com