Skip to content

Installation

Michal Dengusiak edited this page Aug 27, 2024 · 3 revisions

To install SAM from .exe just download and run the latest installer otherwise rebuild using VS SAM


our Grasshopper\SAM.Core.Grasshopper\SAM.Core.Grasshopper.csproj does include specific post build event:

copy "$(TargetPath)" "$(TargetDir)\$(ProjectName).gha"

set SAM_DIR=$(APPDATA)\SAM\ if not exist "%SAM_DIR%" mkdir "%SAM_DIR%"

copy "$(TargetDir)*.dll" "%SAM_DIR%" copy "%SAM_DIR%\$(ProjectName).dll" "%SAM_DIR%\$(ProjectName).gha"

echo %SAM_DIR% >> "$(APPDATA)\Grasshopper\Libraries\SAM.ghlink"

xcopy "$(SolutionDir)\files\resources" "$(APPDATA)\SAM\resources" /Y/I/E/S xcopy "$(SolutionDir)\files\resources" "$(USERPROFILE)\Documents\SAM\resources" /Y/D/I/E/S

if Exist "$(SolutionDir)\files\Grasshopper\UserObjects" ( xcopy "$(SolutionDir)\files\Grasshopper\UserObjects" "$(APPDATA)\Grasshopper\UserObjects\SAM" /Y/I/E/S )

::erase "%SAM_DIR%$(ProjectName).dll" ::erase "$(TargetPath)"

Clone this wiki locally