×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problem Pro Toolkit WF4 et WF5

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
 

RE: Problem Pro Toolkit WF4 et WF5

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

RE: Problem Pro Toolkit WF4 et WF5

(OP)
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

RE: Problem Pro Toolkit WF4 et WF5

Don't know why ProMdlEraseNotDisplay() is not doing what you want.

 

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

Ben Loosli

RE: Problem Pro Toolkit WF4 et WF5

(OP)
I think because ProE consider DRW not erased...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources