tnq95/Niagara4-GenHistory — reverse-engineered prompt
Reverse engineered prompt
Build me a Niagara 4 Java utility that can automatically add History Extensions to points in a station, so I do not have to open every point and configure history one by one.
I want it to work like a program object I can bring into Workbench with a sample BOG, compile, then set a few properties and run an Execute action. The properties should cover the history type, a query string to find the target points, a history config, and an interval. It should handle common cases like numeric interval history and boolean interval history, and use a station query such as selecting NumericPoint objects under Apps or another folder.
Please make it practical for Niagara N4, with the Java code and a ready to use example object or BOG that shows how to import it, set the values, and run it. If there are any edge cases, like skipping points that already have history, handle those sensibly. Look up current Niagara docs online if you need to.
Want more depth? Deep Reverse