I have the following code in a program:
)swApp = CreateObject("SldWorks.Application")
swApp.UserControl = True
swApp.Visible = True
It works fine to open SolidWorks. Now if I try opening any SolidWorks part by double clicking on it on my desktop or the network they do nothing. I went into SolidWorks and ran the "Restore All File Associations" and it still does this. I also tried SldWorks.Application.21 in the create object. We recently upgraded from 2012 to 2013. In 2012 it never did this. SolidWorks files will open just fine if I go to file > open > and select them. If SolidWorks is already open, then it connects with that instance of SolidWorks and works fine. If anyone knows a way to fix this I would appreciate it. Thanks.
SolidworksApi macros