mirror of
https://github.com/gittrahan/support-fins.git
synced 2026-10-21 19:32:48 -05:00
Takes over #183. The add-in (C#, .NET Framework 4.8) reads the part's visible solid bodies, and a WebView2 window runs the website's engine (the shared bundle, unmodified) at V8 speed, outside SolidWorks' thread. Its dialog is built from options.json and its readout is the shared reportLine, so overhangs it can't reach and floating pieces are said. Print bed: Top Plane (Y up), Front Plane (Z up) or a selected flat face, never guessed. Each piece goes in as its own named solid body (STL import as solid, mm, the user's import settings put back after); the next run skips and counts them. SolidWorks interop is compile-time only, its types embedded: no Dassault DLL ships and no single SolidWorks release is required. Builds with dotnet on any OS (build.py --zip). tests/host.test.js pins the frame mapping (same fins as computeFins whichever way up the model is drawn) and that every piece is a closed, consistently wound STL. Not yet run in SolidWorks: README has the hand test. From #183: the ribbon command, reading tessellation in metres, the Y-up frame. Co-authored-by: Haititei <werbung@iggena.de>
27 lines
938 B
Batchfile
27 lines
938 B
Batchfile
@echo off
|
|
rem Registers the Support Fins add-in with SolidWorks (Tools > Add-Ins) and loads it at
|
|
rem startup. Run it from the unzipped SupportFins folder, as administrator: COM
|
|
rem registration writes to HKEY_LOCAL_MACHINE. Keep the folder where it is afterwards;
|
|
rem SolidWorks loads the add-in from here. Restart SolidWorks.
|
|
setlocal
|
|
net session >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Right-click install.bat and choose "Run as administrator".
|
|
pause
|
|
exit /b 1
|
|
)
|
|
set "REGASM=%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe"
|
|
if not exist "%REGASM%" (
|
|
echo .NET Framework 4.8 ^(64-bit^) was not found: %REGASM%
|
|
pause
|
|
exit /b 1
|
|
)
|
|
"%REGASM%" /codebase /nologo "%~dp0SupportFins.SolidWorks.dll"
|
|
if errorlevel 1 (
|
|
echo Registration failed; see the message above.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo Support Fins is installed. Restart SolidWorks; it's under Tools ^> Add-Ins and on a Support Fins tab in parts.
|
|
pause
|