Skip to main content
1-Visitor
Jun 30, 2016 1:42 AM UTC
Solved

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.
FV_01
FV_01Answer
Jun 30, 2016 3:05 PM UTC

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(...)

2 replies

FV_01
FV_0117-PeridotAnswer
Jun 30, 2016 3:05 PM UTC

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(...)

Translate
jzhang-61-VisitorAuthor
1-Visitor
Jul 1, 2016 12:26 AM UTC

OK, thank your for you answer, .

I will try these codes this evening.

Translate