Is there an event when SOLIDWORKS is fully loaded?

Is there an event that tells when SOLIDWORKS has completely finished loading itself—not just a document, but the entire application, including UI and internal initialization?

I think I’ve also searched for this method a while ago. I didn’t find one.

It looks like the ISldWorks interface has StartupProcessCompleted which could be checked in a loop until it is returns true like this

while (swApp != null && !swApp.StartupProcessCompleted)
{
    System.Threading.Thread.Sleep(100);
}

https://help.solidworks.com/2021/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~startupprocesscompleted.html

1 Like