Skip to main content
1-Visitor
June 30, 2016
Solved

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

  • June 30, 2016
  • 1 reply
  • 1442 views

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.
Best answer by FV_01

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

1 reply

FV_0117-PeridotAnswer
June 30, 2016

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-61-VisitorAuthor
1-Visitor
July 1, 2016

OK, thank your for you answer, .

I will try these codes this evening.