Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Nov 30, 2011
3
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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor