68 lines
2.0 KiB
Batchfile
68 lines
2.0 KiB
Batchfile
@echo off
|
|
echo === Navisworks Transport Plugin Deployment ===
|
|
echo.
|
|
echo Current directory: %CD%
|
|
echo.
|
|
|
|
REM Check if we're in the right directory
|
|
if not exist "NavisworksTransportPlugin.csproj" (
|
|
echo ERROR: NavisworksTransportPlugin.csproj not found in current directory
|
|
echo Please run this script from the project root directory
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Check if compiled files exist
|
|
if not exist "bin\Debug\NavisworksTransportPlugin.dll" (
|
|
echo ERROR: Plugin file not found, please compile the project first
|
|
echo Run command: dotnet build NavisworksTransportPlugin.csproj
|
|
echo.
|
|
echo Checking bin directory...
|
|
if exist "bin" (
|
|
echo bin directory exists
|
|
dir bin /b
|
|
if exist "bin\Debug" (
|
|
echo bin\Debug directory exists
|
|
dir "bin\Debug" /b
|
|
) else (
|
|
echo bin\Debug directory does not exist
|
|
)
|
|
) else (
|
|
echo bin directory does not exist
|
|
)
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Set target directory (Navisworks installation Plugins folder)
|
|
set "TARGET_DIR=C:\Program Files\Autodesk\Navisworks Manage 2026\Plugins\NavisworksTransportPlugin"
|
|
|
|
echo Target directory: %TARGET_DIR%
|
|
echo NOTE: Administrator privileges required to write to this directory
|
|
echo.
|
|
|
|
REM Create directories
|
|
if not exist "%TARGET_DIR%" (
|
|
mkdir "%TARGET_DIR%"
|
|
echo [OK] Created plugin directory
|
|
)
|
|
|
|
REM Copy files
|
|
copy "bin\Debug\NavisworksTransportPlugin.dll" "%TARGET_DIR%\" >nul
|
|
echo [OK] Copied plugin file: NavisworksTransportPlugin.dll
|
|
|
|
if exist "bin\Debug\NavisworksTransport.Tian.name.txt" (
|
|
copy "bin\Debug\NavisworksTransport.Tian.name.txt" "%TARGET_DIR%\" >nul
|
|
echo [OK] Copied localization file: NavisworksTransport.Tian.name.txt
|
|
)
|
|
|
|
echo.
|
|
echo SUCCESS: Plugin deployed successfully!
|
|
echo.
|
|
echo Next steps:
|
|
echo 1. Start Navisworks Manage 2026
|
|
echo 2. Look for "Logistics Path Planning" dockable panel
|
|
echo 3. If not visible, check Plugin Manager
|
|
echo.
|
|
echo Plugin location: %TARGET_DIR%
|
|
echo. |