How to get a reference to an FPMIWindow given a window path?

I’m new to module development and I’m trying to do a couple of things that I’ve done comfortably within the Python scripting environment, however in the new-to-me java environment I’m not sure how to do. What I’d like to do is to get an FPMIWindow object so that I can then get various components on the window. In Python, what I’m trying to do looks like this.

displayPath = "Main Windows/My Window"
window= system.gui.getWindow(displayPath)
container = window.getRootContainer()

In the Ignition SDK I’m not sure what the analog to the system.gui.getWindow() function is. Any ideas? Thanks!

If you’re writing a component, you should have a VisionClientContext available to you, so you can do

1 Like