does anyone know how to Debug a C# Macro in SolidWorks 2018 with the new VSTA 3.0 ?
When i start the macro i get following error messages.
Otherwise if i set to start soliworks the code does not stop at any breakpoint.
Thanks for any help !
Did you find a solution? I have the same issue.
If you wish to debug a simple macro; you should build is as a "console app", and run it without starting solidworks.
Starting solidworks with the debug in this manner is used if you are developing a full add-in, in which case you need to create a complete plugin and COMregister function
When starting as a standalone macro; you will obviously need a connection to solidworks (which is already running at that point):
_swApp = Activator.CreateInstance(Type.GetTypeFromProgID("SldWorks.Application")) as SldWorks;
Did you change your References to 2018??
Yes, thanks! I got it to run.
Retrieving data ...