Is it possible to train AI tools like ChatGPT to build Ignition projects?
It can be useful for cleaning up existing code, but I wouldn't trust it much beyond that with Ignition. I've seen AI use functions that don't exist in example code that it spits out, and it wouldn't surprise me if it gets Vision and Perspective mixed up.
I would be cautious even with this. I find AI Ignition outputs are somewhat dirty both in code and comment.
Example:
Jython gives a developer access to Java and Python libraries, and Ignition has a long list of its own system functions that tend to play nicer with the gui and tend to clean up some of Jython's messy tendencies such as ASCII string outputs. Therefore, there are often at least three ways to get the same result in Ignition. My recommendation is to use Ignition system functions when available, and when not, use Java's methods, but the AI tools I've experimented with tend to take the opposite approach, often using obscure Python methods over Java, and they will almost never use anything provided by Ignition without intricate prompting.
I find Claude is quite good at it, even using system functions in ways I didn’t think of.
As long as it has some context and instructions/guidelines, it does a pretty good job.
Still gotta be careful, obviously, I wouldn’t use code without validating it first.