swpilotcli-install
Installs or uninstalls the SwpilotCLI SolidWorks add-in on the user's machine.
What it does
Install mode (default):
- Reads the Windows registry to find installed SolidWorks version(s)
- Locates
SolidWorks.Interop.sldworks.dllfrom the user's SolidWorks installation - Builds
SwpilotCLIAddin.dllusing the user's local Interop DLL - Prints instructions for the user to run
Manage.batas Administrator to register the DLL
Uninstall mode:
- Prints instructions to run
Manage.batas Administrator to unregister
Usage
# Install
dotnet run --project SolidWorksConsole/swpilotcli-install/SwpilotInstall.csproj
# Uninstall
dotnet run --project SolidWorksConsole/swpilotcli-install/SwpilotInstall.csproj -- uninstall
Notes
- SolidWorks must be closed when building, otherwise the DLL will be locked
- DLL registration requires Administrator privileges — the tool prints instructions for this step
src/contains all source files needed to buildSwpilotCLIAddin.dllManage.bathandles register/unregister/reinstall via regasm