Learn how to streamline SOLIDWORKS add-in development using C# and VB.NET via free and open-source SwEx.AddIn Framework
Installing NuGet package
Select Manage NuGet Packages… command from the context menu of the project in Visual Studio
Search for CodeStack.SwEx in the search box. Once found click Install button for the required framework.
This will install all required libraries to the project.
Preparing the project
Set the Embed Interop Types to False for the SOLIDWORKS Interop libraries as shown below.
Check the Register for COM Interop option in project properties:
For C# project this option can be found in Build tab:
For VB.NET project this option can be found in Compile tab:
Supporting multiple versions of the SwEx framework
Methods signatures and behaviour of SwEx framework might change in new versions. SwEx libraries are strong named which prevents the compatibility conflict in case several add-ins loaded in the same session of SOLIDWORKS referencing different versions of framework.