Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Pro Toolkit WF4 et WF5

Status
Not open for further replies.

ptoolkituser

Computer
Joined
Nov 30, 2011
Messages
3
Location
FR
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
 
Sound like the function is working as designed.

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
 
thanks, so, your are telling me that there is no way to clear the proE session ?, because it work If I never display the files in ProE...
I have the same problem if I user ProMdlErase(drwHandler) and after that ProMdlEraseNotDisplay().
Thanks
 
Don't know why ProMdlEraseNotDisplay() is not doing what you want.



"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
I think because ProE consider DRW not erased...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top