cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Window Handling with Pro/TOOLKIT

AndreasHellmann
3-Visitor

Window Handling with Pro/TOOLKIT

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:

  • There are 2windows opened in Pro/E displaying different models.
  • Pro/E's base window is showing a drawing d1.drw.
  • A second window shows an assembly a1.asm.
  • The second window is ACTIVE.
  • A toolkit app simply has to "switch" to the first (base) window and has to activate it.

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: -


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags