Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I just wanted to say THANKS for the forum. The knowledge I gain from your site is invaluable..."

Geography

Where in the world do Eng-Tips members come from?
ptoolkituser (Computer)
30 Nov 11 9:39
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
 
looslib (Mechanical)
30 Nov 11 10:23
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

ptoolkituser (Computer)
30 Nov 11 11:12
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
looslib (Mechanical)
30 Nov 11 11:31
Don't know why ProMdlEraseNotDisplay() is not doing what you want.

 

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

Ben Loosli

ptoolkituser (Computer)
1 Dec 11 8:06
I think because ProE consider DRW not erased...

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!

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close