Set swApp = Application.SldWorks
I run this code on a macro with SW2017 and it's returned 25; however, when I run it on an addin, it's returned 24
what am I doing wrong here?
Are you sure the addin is using the same libs as the macro?
I did compile the addin with SW2016 and I thought if I run the addin with SW2017, it should show the SW2017 version
How are you referencing the solidworks interops?
I simply reference the ones in the api folder. Take a look at this: SOLIDWORKS Forums API/Macros: How to write a SOLIDWORKS AddIn in C#? - YouTube
Retrieving data ...