I am working on a Jlink program that I cannot get to open a model in a new window. I am using an event action listener of OnAfterModelCopyAll. When a copy is done I want to open the model that was just copied to in a new window and have it be the active window. I have tried OpenFile(descr) which according to the API will open a new window and retrieve and activate the window. I can use this method with nothing in the base window just as a test and I can get it to work. But I cannot get it to work after the copy. A new window will come up but there is no model in the window nor is the window active. It shows the correct model in the window name on the upper left corner of the window. If you look at the windows under the Pro/E windows menu it shows the window that I copied from as the active window and has 2.prt as the other window. Any help would be appreciated. Thanks
Window win = session.OpenFile(descr);
to open a model and then set win.activate(); to get the resulting window activated. Sometimes u must redraw the window after u get it, or after simple operations to get everything visible thats in it.
win.repaint(); is ur friend to repaint the window.
If the model is scrolled out of view in some case u don't have a chance I know to do it with jlink. But u can use toolkit to get it back. and get the toolkit in a DLL started with jlink.
Where is your problem / why can't u get it work? Is there an exception or can't u compile your code?