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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

window created by ProObjectWindowCreate has no ribbon and can't be closed.

jzhang-6
1-Visitor

window created by ProObjectWindowCreate has no ribbon and can't be closed.

hello all,

I recently made a dll with toolkit. I want to open 2 models at the same time, and I used the codes like this:

ProObjectwindowCreate( mdl_name, mdl_type, &w_id);

ProWindowActivate( w_id);

But the created window has no ribbon and can't be closed.

Does anyone know why?

Thanks in advance.

tkModelOpen.png

tkModelOpen-2.png


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.
ACCEPTED SOLUTION

Accepted Solutions
FV
17-Peridot
17-Peridot
(To:jzhang-6)

You'll need to use ProWindowCurrentSet instead of ProWindowActivate

This sequence works from WF5 to Creo 3 (WF3 and WF4 would need a different one)

ProObjectWindowCreate(...);

ProWindowCurrentSet(...)

ProMdlDisplay(...)

View solution in original post

2 REPLIES 2
FV
17-Peridot
17-Peridot
(To:jzhang-6)

You'll need to use ProWindowCurrentSet instead of ProWindowActivate

This sequence works from WF5 to Creo 3 (WF3 and WF4 would need a different one)

ProObjectWindowCreate(...);

ProWindowCurrentSet(...)

ProMdlDisplay(...)

jzhang-6
1-Visitor
(To:FV)

OK, thank your for you answer, .

I will try these codes this evening.

Announcements


Top Tags