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.CopyAllSelected - Copy all selected objects in internal clipboard

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 

result = lpav.CopyAllSelected();

Description

Copy the current selected object(s) in the Active View internal clipboard

Return Values

result =1 if done, nil if error

Example


lp_value = 0;
lp_buffer ="error";

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

zz=LPAV_OBJ_ANALOGIC_METER_01;

k=0;
lpav.Insert(10,1,9,9,zz);
lpav.SetClipart( lp.GetPath().."/card/vumeters/vumeter8.emf");
lpav.SetSelected();
lpav.Insert(20,1,9,9,zz);
lpav.SetClipart( lp.GetPath().."/card/vumeters/vumeter12.emf");
lpav.SetSelected();
lpav.CopyAllSelected();
lpav.ClearAllSelected();
lpav.DeleteAll();
lpav.Paste(0);

--for i=0,5 do
--
--lpav.ShiftPositionAllSelected(10*i,10);
--end

lp.Trace("fin");
lpav.RefreshMap();




www.loriotpro.com