Wait until SolidEdge becomes Responsive

Hey guys,

 

We have programmed a recursive printing program which opens every draft document and all it's children (and their children and so on).

 

I've encountered random problems because SolidEdge seems to become unresponsive or the program goes too fast for SolidEdge. I want a better solution than:

 

[code type=vbnet]Threading.Thread.Sleep(500)[/code]

 

I would rather something more concrete such as waiting until SolidEdge is ready ... Does something like that exist?

 

 

Thank you

 

Posted by: Alex
Post date: 12/13/2012 10:03:03 AM

1 REPLY

Wait until SolidEdge becomes Responsive

Alex,

 

2 important issues when dealing with a lot of documents:

 

[ol]

[li]Make use of implementing your own OleMessageFilter (see Solid Edge SDK help for details)[/li]

[li]Call SolidEdgeApplication.DoIdle() after each closing of a Solid Edge document[/li]

[/ol]

 

Posted by: Wolfgang Kunert
Post date: 12/13/2012 10:59:29 AM