Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
FVFilipe Venceslau10/06/2010
Hey people,
I've been working with solidworks macros/api for over a year and never had a problem with the way I create my solidworks object...now...after installing .net 4.0 and batchprocess, I've started getting this error.
When I use:
Set myApp = GetObject(, "SldWorks.Application")
If solidworks is closed (need to create object), I get runtime error 429:
ActiveX component can't create object.
If solidworks is already opened, I get runtime error 48:
Error in loading DLL
When I use:
Set myApp = CreateObject("SldWorks.Application") 'New Application.SldWorks
I get runtime error 48 as well.
Help would be appreciated.
I have no other code related to connecting to solidworks, other tham the dimensioning of it, and the references in my project.
This code has worked flawlessly for quite a while now, and it this just started happening.
Please help...
Thanks