Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Does anyone know what the current possibilities are for changing the current window with toolkit and display it?
From my point of view PTC did some changes to this startingwith Wildfire 4...
I thought it might be a simple task:
Using "ProWindowCurrentSet()" the base window is being set to be the current one (so far so good), but still window #2 (assembly) is the visible one.
A call of function "ProWindowActivate()" after ProWindowCurrentSet() causes Pro/E to crash after 3 seconds. Referring to the documentation ProWindowActivate should be used in asynch mode only.
With Pro/Weblink it is very easyto complete the task. And because of that I am sure that it should work with Toolkit, too.
In Weblink it works with these lines (hWin is the handle to the window #1):
Session.CurrentWindow = hWin;
hWin.Activate();
Yes - the second line works fine in Weblink.... No delay, no problems.
>>> Has anyone some ideas on that? Starting with WF4 there is the possibility of using the accessory window, but it does not seem to be possible to display a model in it when there is already an open window owning the model.
Thanks,
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany
phone: +49 6145 598296
mail: -