Repository navigation
Date: 2026-02-13
Large and possibly breaking changes
NuGet package now contains solidworks DLLs (not a breaking change)
You no longer have to add the solidworks DLLs to your project π We added them to the NuGet package so you don't have to reference them yourself. That fixes the issue of having to match the version every year.
Interfaces and mocking (should not be a breaking change)
To support unit tests and mocking, we have added interfaces for all major SolidDNA objects. We tried hard to not make this a breaking change and I think we have achieved that.
We do have a new SolidWorksEnvironment.IApplication property and we marked the Application property as obsolete. If you want to test your code that uses the solidworks application, call the SetApplicationForTesting method and pass in your mocked application. All internal code will use that mocked version. You cannot call SetApplicationForTesting at runtime.
A Command Manager per add-in
The command manager now works as solidworks intended it to work: each add-in now has its own command manager. You should now use the YourAddIn.CommandManager property instead of SolidWorksApplication.CommandManager. This way, all menus and toolbars are linked to the correct add-in. If two add-ins are active and one is unloaded, now only the correct menus should unload.
A faster way to load plugins
Call YourAddIn.PlugInIntegration.AddPlugInToLoad() early, for example in YourAddin.PreLoadPlugIns, to tell SolidDNA which plugin(s) to load.
The second fastest option is to set AutoDiscoverPlugins to false and to add your plugin DLL path to PlugInAssemblyPaths.
The slowest option is to do none of the above and let SolidDNA search all DLLs in the output folder for plugins.
PlugIn< T > is now obsolete
This class did not work as expected, so use SolidPlugIn instead.
Release notes
- Added SolidWorks DLLs to NuGet Package.
- Added support for mocking and unit testing the SolidWorks application.
- Added interfaces for all major objects.
- Added SketchPointId.
- Added getting mates from component.
- Added Mate Entity object.
- Added a faster way to load plugins and marked SolidPlugin< T > as obsolete since it doesn't work.
- Added ColorRef helpers methods.
- Added getting root component and all components from an assembly.
- Added entering and exiting Edit Part mode.
- Added ways to convert entities between components, views and parts.
- Added Source Link.
- Added support for SOLIDWORKS 2026 SP1.1.
- Updated C# version to C# 13.
- Converted to file-scoped namespaces.
- Expanded the readme.
- Refreshed all tutorials.
- Disabled overwriting add-in title when a custom title is set.
- Fixed creating a Command Manager per add-in instead of a static one.
- Fixed lingering Tools menus and toolbars by disposing them.
- Fixed Component.CleanName for virtual components.
- Fixed setting Registry key so the add-in starts up.
- Fixed handling MateInPlace.
- Fixed logging time in 24-hour mode.