Logic Machine Forum
Editing object comments in group addresses - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Editing object comments in group addresses (/showthread.php?tid=4110)



Editing object comments in group addresses - asgeirsb - 27.06.2022

Hi,

I'm trying to make a script that can edit the object comments in several group addresses based on group names.

Eg. I'm looking for several group addresses based on the address name, then edit object comments in all those addresses found.

I'm thinking a for loop that uses string.find and then perhaps grp.update the table 'comment'

Is this possible?


RE: Editing object comments in group addresses - admin - 27.06.2022

You can use grp.create to overwrite the object comment field.
Code:
grp.create({
  address = '1/1/3',
  comment = 'test'
})

Can you explain the use case for this?


RE: Editing object comments in group addresses - FatMax - 27.06.2022

admin, while waiting for a reply can I hijack with a question?

Can the comment field be written into when importing a knxproj file? I've tried filling out comments in ETS, but nothing came over from ETS. The idea on my end is to "auto tag" everything in ETS, so when importing the project I can just run a script that runs through all the objects and auto tags them.


RE: Editing object comments in group addresses - asgeirsb - 29.06.2022

(27.06.2022, 13:56)FatMax Wrote: admin, while waiting for a reply can I hijack with a question?

Can the comment field be written into when importing a knxproj file? I've tried filling out comments in ETS, but nothing came over from ETS. The idea on my end is to "auto tag" everything in ETS, so when importing the project I can just run a script that runs through all the objects and auto tags them.

If done correctly the comments should also be imported when importing a .knxproj file. It may be an option you need to tick to get the comments imported as well, cant remember at the moment.