Hi All.
I'm still trying to develop my PRO/TOOLKIT Appand here is the problem which I want you to ask. I'm developing the PRO/TOOLKITlibrary and my library is the complex decision for those who don't want to know how PRO/TOOLKIT really works. In my library I'm trying to implement SaveAs function and I coundn't foresee that this is such a problem. The PRO/TOOLKITdoesn't have function ProMdlSaveAs though it would be excellent. So I must use the resources that I have. I found 2 functions which are perfoming the similar function. Here are them: ProMdlCopy and ProMdlfileCopy. As fo me these functions are working very strange. If you are trying to feed ProMdlCopywith the same model names but different paths (the ussual situation as I think) it returns the same model pointer thinking that this is is the same model. And here as the question. Now I'm working as follows. I'm getting the full model path by ProMdldataGet function and then using WIN32 API I simply copy the file in the my new destination. Then I close the source model by ProMdlErase() and open the copied file by function ProMdlRetrieve() . It is working but this is very inconveniently and require a lot of code. And what is the main problem. It works not always and I can't understand why.
Help me please... I'm really in deadlock.
Anatoly
I'm still trying to develop my PRO/TOOLKIT Appand here is the problem which I want you to ask. I'm developing the PRO/TOOLKITlibrary and my library is the complex decision for those who don't want to know how PRO/TOOLKIT really works. In my library I'm trying to implement SaveAs function and I coundn't foresee that this is such a problem. The PRO/TOOLKITdoesn't have function ProMdlSaveAs though it would be excellent. So I must use the resources that I have. I found 2 functions which are perfoming the similar function. Here are them: ProMdlCopy and ProMdlfileCopy. As fo me these functions are working very strange. If you are trying to feed ProMdlCopywith the same model names but different paths (the ussual situation as I think) it returns the same model pointer thinking that this is is the same model. And here as the question. Now I'm working as follows. I'm getting the full model path by ProMdldataGet function and then using WIN32 API I simply copy the file in the my new destination. Then I close the source model by ProMdlErase() and open the copied file by function ProMdlRetrieve() . It is working but this is very inconveniently and require a lot of code. And what is the main problem. It works not always and I can't understand why.
Help me please... I'm really in deadlock.
Anatoly