Problem Pro Toolkit WF4 et WF5
Problem Pro Toolkit WF4 et WF5
(OP)
Hi,
I have trouble in ProE toolkit with simple code :
I want to open a DRW in ProE, display it an erase it from the ProE Session.
I do this :
1. ProMdlRetrieave
==> I check the number of model in ProE Session, I get 3 models for DRW ==> ASM ==> PRT : OK
2. ProMdlDisplay(drwHandler) to display the DRW
Now, If I use ProMdlEraseALL(drwHandler), the DRW is not displayed anymore, but when I check the models in session with ProSessionMdlList and I get 3 models in session.
So I cannot understand why erasing the session doesn't work.
It works if I do not use the ProMdlDisplay..
Has anyone any idea or tips ?
thanks
I have trouble in ProE toolkit with simple code :
I want to open a DRW in ProE, display it an erase it from the ProE Session.
I do this :
1. ProMdlRetrieave
==> I check the number of model in ProE Session, I get 3 models for DRW ==> ASM ==> PRT : OK
2. ProMdlDisplay(drwHandler) to display the DRW
Now, If I use ProMdlEraseALL(drwHandler), the DRW is not displayed anymore, but when I check the models in session with ProSessionMdlList and I get 3 models in session.
So I cannot understand why erasing the session doesn't work.
It works if I do not use the ProMdlDisplay..
Has anyone any idea or tips ?
thanks





RE: Problem Pro Toolkit WF4 et WF5
This is from the Toolkit user guide:
However, while erasing an active model, ProMdlEraseAll() only clears the graphic display immediately, it does not clear the data in the memory until the control returns to Pro/ENGINEER from the Pro/TOOLKIT application.
You will need another command to clear the part from session or exit the toolkit app before the memory is cleared.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Problem Pro Toolkit WF4 et WF5
I have the same problem if I user ProMdlErase(drwHandler) and after that ProMdlEraseNotDisplay().
Thanks
RE: Problem Pro Toolkit WF4 et WF5
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Problem Pro Toolkit WF4 et WF5