Logic Machine Forum
Find an Object in Visualization - Printable Version

+- Logic Machine 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: Find an Object in Visualization (/showthread.php?tid=3488)



Find an Object in Visualization - khalil - 25.07.2021

Hello 
Is it possible to find objects in the visu also in the script?
I have a customer who claimed that an AC unit runs by itself at random times, I added that value to the log to check source address in future events.
but for now, I want to check that I didn't use this object by mistake in another place in the visu or in the script.

regards,


RE: Find an Object in Visualization - Daniel - 26.07.2021

In Scripts-Tools you can print scripts. Use search in there to check if you used this object.


RE: Find an Object in Visualization - khalil - 26.07.2021

(26.07.2021, 07:41)Daniel. Wrote: In Scripts-Tools you can print scripts. Use search in there to check if you used this object.

Thanks, Daniel I forgot this option regarding Script.
But is there something to find/search in visu?


RE: Find an Object in Visualization - admin - 26.07.2021

Use this script to log all plan names where a certain object is used:
Code:
id = buslib.encodega('1/1/1')

plans = db:getlist([[
  SELECT vf.name FROM visfloors vf
  JOIN visobjects vo ON vf.id=vo.floor
  WHERE vo.object=?
]], id)

log(plans)



RE: Find an Object in Visualization - khalil - 26.07.2021

(26.07.2021, 10:14)admin Wrote: Use this script to log all plan names where a certain object is used:
Code:
id = buslib.encodega('1/1/1')

plans = db:getlist([[
  SELECT vf.name FROM visfloors vf
  JOIN visobjects vo ON vf.id=vo.floor
  WHERE vo.object=?
]], id)

log(plans)

thank you, admin 
this is very helpful