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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Bringing active window to the front

sbots
9-Granite

Bringing active window to the front

I am sure there is a simple solution to this but I have already spent way too much time on it today so I thought I would ask the group. In J Link I have created a drawing from a template and I am displaying it using the drawing create option DRAWINGCREATE_DISPLAY_DRAWING. I am also able to activate it using session.GetModelWindow(drawing).Activate() but I can not seem to get it to be the window that is viewed. It is always behind the window of the model that I used to create the drawing. Once I have the handle to the window how do I bring it to the front so that it is not only active but also viewable.


Thanks


Scott


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.
2 REPLIES 2
llie
16-Pearl
(To:sbots)

I think this might help. Tools, Customize Screen, All Commands
Select "List of Current Windows" and drag to the end of toolbar




Every window that you have open is displayed in the toolbar as shown
below.



Select the file and it will bring it forward and automatically activate
it.

Hope this helps.






Lance Lie
Sr Computer System Technologist II
310.334.1934 office
310.426.4968 cell
310-334.3078 fax
-




Scott,
I don't know how to do it in J-Link but I do know Pro/TOOLKIT. Here's
what I would do in Pro/TOOLKIT:

1. Create the drawing with ProDrawingFromTmpltCreate(). No options were
passed to this function like PRODWGCREATE_DISPLAY_DRAWING.
2. Optional - Retrieve the drawing with ProMdlRetrieve(). There was a
bug with the drawing creation API and this subsequent call to
ProMdlRetrieve() will initialize internal variables which would allow the
creation of detail entities (TAN 140708).
3. Create a new window with ProObjectwindowCreate().
4. Set the new window as current with ProWindowCurrentSet().
5. Display the drawing with ProMdlDisplay().

Since J-Link functionality is based upon Pro/TOOLKIT functionality then I
would follow this Pro/TOOLKIT code to see if that solves the problem.

PATRICK S WILLIAMS
Information Technology
Mechanical Engr Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (office)
+1 520.446.0244 (pager)
+1 520.545.6399 (fax)
-

6221 S Palo Verde Rd
Tucson, AZ 85706-5093 USA
www.raytheon.com

Follow Raytheon On




This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.


Top Tags