This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Bulk remove objects
#1
For knx secure i need to import my complete projectfile from ets.

But in my logicmachine i only need groupaddresses 6/*/*

Is it possible to bulk remove all other objects/groupaddresses? Maybe with a script.
Reply
#2
See this: https://forum.logicmachine.net/showthrea...4#pid14054
Reboot LM after running this script and make sure that deleted objects are not used in scripts, schedulers, trends etc.
Reply
#3
Code:
-- delete all objects
-- except: 6/*/*
myobjects = grp.all()
for index, value in ipairs(myobjects) do
  if not (string.sub(value.address, 1, 2) == '6/') then
    --log(index,value.address)
    grp.delete(value.address)
  end
end

This code also works
Reply


Forum Jump: