Compare commits

...

2 Commits

Author SHA1 Message Date
Sebastian Storholm 79e85344ba
Merge pull request #3 from JoeyStrandnes/master
Copies the threads to the newest version of Fusion360
2026-04-09 03:28:04 +03:00
Joey Strandnes 0b83260eba Copies the threads to the newest version of Fusion360
Simple PS script to copy the custom threads to the latest version of Fusion360.
2025-09-08 14:43:24 +02:00
1 changed files with 16 additions and 0 deletions

16
CopyThreads.ps1 Normal file
View File

@ -0,0 +1,16 @@
#Simple script to copy the custom threads to the most recent Fusion 360 directory.
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$FileDir = Join-Path $ScriptDir 'PGConduitThreads.xml'
$FusionDir = Join-Path $env:LOCALAPPDATA 'Autodesk\webdeploy\production\'
#Find the most recent version of Fusion360
$LatestSubdir = Get-ChildItem -Path $FusionDir -Directory -ErrorAction Stop |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
$ThreadPath = Join-Path $LatestSubdir.FullName 'Fusion\Server\Fusion\Configuration\ThreadData'
Copy-Item -Path $FileDir -Destination $ThreadPath -Force