How to know that SE is opened again

Valued Contributor
Valued Contributor

 

Hi,

    I'm developing an application which generates a 3d model using SE APIs. Im using vb.net for that (vs 2008).

While generating 3d models, SE is invisible. Now if somebody opens solidedge while my app is still updating variables etc then my app gets into trouble. I dont want this to happen. Can I know that SE app is requested to open by user by hooking to some  event etc. I tried to hoot to BeforeEnvironmentDeactivate() event ,which is successful, but I don't know how to cancel that SE open process.

Is there any way ?

Thnaks in advance,

Myth.

 

Posted by: Mithun **bleep**ole
Post date: 5/15/2009 2:24:26 AM

3 REPLIES

RE: How to know that SE is opened again

Valued Contributor
Valued Contributor

No way out????

 

Posted by: Mithun **bleep**ole
Post date: 5/17/2009 8:44:32 PM

RE: How to know that SE is opened again

Valued Contributor
Valued Contributor

I'm assuming that you do not mean that user starts a 2nd session of Solid Edge. If that assumption is correct, then you can use some of the Application object properties like:

 

application.DisplayAlerts = false

application.Interactive = false

application.ScreenUpdating = false

application.Visible = false

 

Use my Solid Edge Spy to easily see what options are available.

 

Posted by: Jason Newell
Post date: 5/19/2009 12:09:20 PM

RE: How to know that SE is opened again

Valued Contributor
Valued Contributor

Jason, your assumption is correct. But i didn't understand what you exactly suggesting.

Does this mean that i should check for these properties for change?

means say from app.visible=false to app.visible=true to detect app is opened by user?

 

 

Posted by: Mithun **bleep**ole
Post date: 5/20/2009 2:39:09 AM