cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Window not closing using VB API

TusharSuradkar
5-Regular Member

Window not closing using VB API

with the VB API on Creo 5 

I am using model.Erase()

followed by
window.Close()

 

But the window remains open, though the model is erased.

Is there a solution for this?

 

Q: What is the equivalent API for 'Erase not Displayed'?

 

I also tried window.Clear()

but that was of no use.

 

Regards,

~Tushar

1 ACCEPTED SOLUTION

Accepted Solutions
sjuraj
13-Aquamarine
(To:TusharSuradkar)

As said in documentation:

If the model is displayed in a window, the model is marked to be erased when control returns the Creo Parametric UI from the application. It is not erased immediately.

So window need to be closed first. 

View solution in original post

2 REPLIES 2
sjuraj
13-Aquamarine
(To:TusharSuradkar)

As said in documentation:

If the model is displayed in a window, the model is marked to be erased when control returns the Creo Parametric UI from the application. It is not erased immediately.

So window need to be closed first. 

TusharSuradkar
5-Regular Member
(To:sjuraj)

That worked like a charm.

Thanks a lot @sjuraj.

 

Regards,

~Tushar

 

Top Tags