![]() |
|
Bulk remove objects - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Bulk remove objects (/showthread.php?tid=5995) |
Bulk remove objects - gjniewenhuijse - 19.05.2025 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. RE: Bulk remove objects - admin - 19.05.2025 See this: https://forum.logicmachine.net/showthread.php?tid=2241&pid=14054#pid14054 Reboot LM after running this script and make sure that deleted objects are not used in scripts, schedulers, trends etc. RE: Bulk remove objects - gjniewenhuijse - 19.05.2025 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
endThis code also works |