Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello all,
Does anyone have any experince with theOnAfterWindowChange event?
I have done some preliminary testing and found that it doesn't fire in all cases:
Why isn't the event triggered in the 2 last cases? It doesn't matter if I have a window with a model shown already, in which case it creates a new window. I can kindof understand that it doesn't trigger if i only have an empty window.
I'm trying to update the model, when the user somehow opens a new "topmodel". I could do it on the retrieve event, but that will not trigger in the second case, since the sub-component is already in memory.
Have I missed some event?
thanks,
\Bjarne
The Pro/TOOLKIT notification type PRO_WINDOW_OCCUPY_POST reacts on all actions that Bjarne has tested with PRO_WINDOW_CHANGE_POST (OnAfterWindowChange in JLink):
The notification type PRO_WINDOW_OCCUPY_POST is available in Wildfire 5 or newer.
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany
phone: +49 6145 598296
mail: -
Do you know what its called in Jlink?
I cannot find it in the documentaion or directly in the api
I have checked the DefaultModelActionListener andDefaultSessionActionListener classes
thanks,
\Bjarne
Bjarne,
a solution from Wildfire 5 on might be this procedure:
1. Pro/E's config.pro has a protkdat option that starts a Toolkit app
2. The toolkit app starts and registers a jlink app
3. The toolkit app implements the listener/notification for OnWindowOccupy and this calls a jlink function from the jlink app started in step 2 (toolkit can do this).
I think it is not possible to execute a jlink function from a jlink app that's already running.Toolkit must start the jlink app to have a "jlink app handle" for later function calls.
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany
phone: +49 6145 598296
mail: -