Skip to main content
1-Visitor
October 11, 2017
Question

Toolkit VC++ : How to Refresh the Session? Any help would be greatly appreciated.

  • October 11, 2017
  • 2 replies
  • 2897 views

Need to remove a drawing model from session.

I used ProWindowDelete/ ProWindowCurrentClose to close the Drawing model's window.

Then ProMdlErase to erase it from memory.

But I still get that drawing model in ProSessionMdlList.

If I use ProMdlEraseNotDisplayed to erase it from session then it gives me error. ( may be because  model was already erased)

Please let me know is there any way

to refresh the Session? or

forcefully remove the model from session?

 

Any help would be greatly appreciated.

Warm regards,

Madhavi

 

2 replies

1-Visitor
January 5, 2018

Give a try with below API sequence and update whether it is working or not:

 

ProWindowCurrentClose

ProMdlEraseAll

1-Visitor
January 8, 2018

Thanks for reply.

But that does not work

1-Visitor
January 8, 2018
Can i know version Nd datecode of Creo you have? I have not tried but I have feeling that previous APIs should solve purpose..
18-Opal
June 13, 2018

As far I know, you canโ€™t change the current model in a synchronous session. Try to open a object from disk, this one you can change, save and erase if you are done,