![]() |
|
LogicMachine - Modify Objects name - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: LogicMachine - Modify Objects name (/showthread.php?tid=6257) |
LogicMachine - Modify Objects name - ALEJANDRO - 18.01.2026 Good evening, I've loaded a Logic Machine 5 with a large number of objects, some virtual, some standard, etc. My question stems from another issue: the vast majority of these objects share two letters that are almost always repeated, specifically the following naming convention: "P1". (Image attached.) My question is quite simple: I want to create a backup and load these objects into two other Logic Machines. The problem is that in the second and third Logic Machines, instead of "P1", I need to replace it with "P2" and "P3". Is it possible to do this without having to go object by object? Is there a quick way to do it? Thank you very much. Best regards, Alejandro A. RE: LogicMachine - Modify Objects name - Daniel - 19.01.2026 You can use grp.create in script https://kb.logicmachine.net/libraries/lua/#grpcreateconfig just make sure to add forcename = true to grp.create config to overwrite name for an existing object RE: LogicMachine - Modify Objects name - admin - 19.01.2026 Run this script once: Code: db:query('UPDATE objects SET name=REPLACE(name, "P1", "P2")')RE: LogicMachine - Modify Objects name - ALEJANDRO - 22.01.2026 I understand what you're saying I should do, the problem is that would only change the name to P2. What I'm trying to do is change this: BA_P1-4_A--CONSUMOS.Energia_Electrica BA_P2-4_A--CONSUMOS.Energia_Electrica upps, sorry, I didn't see last answer, thanks RE: LogicMachine - Modify Objects name - ALEJANDRO - 06.02.2026 Good morning, I'm writing to ask if it's possible to modify the group addresses of objects without having to create new objects one by one? My question stems from the fact that I copied a project and wanted to move several variables to reorganize them. For example, if I have 10 variables associated with the addresses 32/0/0 through 32/0/09, could I move all 10 variables to the addresses 32/0/10/19 using a script? Thank you very much. RE: LogicMachine - Modify Objects name - admin - 06.02.2026 Are these objects already used in Schedulers, Trends, Modbus or Visu? RE: LogicMachine - Modify Objects name - ALEJANDRO - 09.02.2026 Yes, many of them are data from energy meters in homes or buildings, others are used to appear in trend graphs, etc. Why? RE: LogicMachine - Modify Objects name - admin - 09.02.2026 Then it will be quite hard to write a script that handles changing the object id in all places where it can be assigned. If you don't have that many objects to change it will be faster to do it manually. RE: LogicMachine - Modify Objects name - ALEJANDRO - 11.02.2026 There are quite a few objects; I have programmed a series of virtual objects in the following address groups: - 32/1/* - 32/2/* - 32/3/* - 32/4/* Is there any way to download these addresses to a file, modify them, and then reload them into LM? I was able to do this with the actual KNX addresses (1/0*,...,1/7/*) using ETS6. I mean, a CSV file for example. RE: LogicMachine - Modify Objects name - ALEJANDRO - 12.02.2026 I gather from the lack of response that I have no other option but to do it manually. |