Added existing scripts
This commit is contained in:
18
RevitFolderCleaner.bat
Normal file
18
RevitFolderCleaner.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
REM Version: 1.1
|
||||
REM Move revit backup files to the specified folder
|
||||
REM Usage information: see readme.txt
|
||||
REM Created by Peter Gyetvai: gyetpet@gmail.com
|
||||
|
||||
chcp 1250
|
||||
SET FOLDER=D:\Backup\Revit\
|
||||
for /R "%~dp0" %%f in (*.00*.rfa) do (
|
||||
move "%%f" "%FOLDER%"
|
||||
echo.
|
||||
echo:%%f
|
||||
)
|
||||
for /R "%~dp0" %%f in (*.00*.rvt) do (
|
||||
move "%%f" "%FOLDER%"
|
||||
echo.
|
||||
echo:%%f
|
||||
)
|
||||
24
backupRvt.bat
Normal file
24
backupRvt.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
REM Version: 1.1
|
||||
REM Backup all revit files for Exobim folder structure.
|
||||
REM Usage information: see readme.txt
|
||||
REM Created by Peter Gyetvai: gyetpet@gmail.com
|
||||
|
||||
cd %~dp0
|
||||
cd ..
|
||||
cd ..
|
||||
if not exist ".\06 - Backup" mkdir "06 - Backup"
|
||||
cd .\06 - Backup
|
||||
|
||||
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
|
||||
set dt=%dt:~0,8%
|
||||
md .\%dt%-rvtFiles
|
||||
cd .\%dt%-rvtFiles
|
||||
|
||||
for /R "%~dp0" %%f in (*.rvt) do (
|
||||
copy "%%f" "%cd%"
|
||||
echo.
|
||||
echo:%%f
|
||||
)
|
||||
|
||||
cd %~dp0
|
||||
8
cleanMacFiles.bat
Normal file
8
cleanMacFiles.bat
Normal file
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
REM Version: 1.1
|
||||
REM Remove hidden mac files from subfolders
|
||||
REM Usage information: see readme.txt
|
||||
REM Created by Peter Gyetvai: gyetpet@gmail.com with the help of the internet
|
||||
|
||||
cd %~dp0
|
||||
del /s /q /f /a ._*
|
||||
56
exobim-revitServerInstaller.bat
Normal file
56
exobim-revitServerInstaller.bat
Normal file
@@ -0,0 +1,56 @@
|
||||
@echo off
|
||||
REM Version: 1.0
|
||||
REM Revit server installer script for exobim
|
||||
REM Usage run this after download
|
||||
REM Created by Peter Gyetvai: gyetpet@gmail.com with the help of the internet
|
||||
|
||||
SET SERVERPATH=exobim.asuscomm.com
|
||||
|
||||
SET FOLDER2018=%programdata%\Autodesk\Revit Server 2018
|
||||
SET FOLDER2019=%programdata%\Autodesk\Revit Server 2019
|
||||
SET INI2018=%FOLDER2018%\Config\RSN.ini
|
||||
SET INI2019=%FOLDER2019%\Config\RSN.ini
|
||||
|
||||
echo You have to restart Revit after running this script, or modifying your RSN.ini file
|
||||
echo This script will add the following path to your RSN.ini:
|
||||
echo %SERVERPATH%
|
||||
echo ---
|
||||
|
||||
if exist "%FOLDER2018%" (
|
||||
echo Revit 2018 installed
|
||||
if exist "%INI2018%" (
|
||||
echo RSN.ini exists, skipping
|
||||
echo Modify your RSN.ini here:
|
||||
echo "%INI2018%"
|
||||
SET OK2018=no
|
||||
) else (
|
||||
echo Creating RSN.ini
|
||||
echo %SERVERPATH% > "%INI2018%"
|
||||
SET OK2018=ok
|
||||
)
|
||||
) else (
|
||||
echo Revit 2018 not installed, skipping
|
||||
)
|
||||
echo ---
|
||||
|
||||
if exist "%FOLDER2019%" (
|
||||
echo Revit 2019 installed
|
||||
if exist "%INI2019%" (
|
||||
echo RSN.ini exists, skipping
|
||||
echo Modify your RSN.ini here:
|
||||
echo "%INI2019%"
|
||||
SET OK2019=no
|
||||
) else (
|
||||
echo Creating RSN.ini
|
||||
echo %SERVERPATH% > "%INI2019%"
|
||||
SET OK2019=pl
|
||||
)
|
||||
) else (
|
||||
echo Revit 2019 not installed, skipping
|
||||
)
|
||||
echo ---
|
||||
if %OK2018% EQU ok echo Successfully set up Revit 2018
|
||||
if %OK2019% EQU ok echo Successfully set up Revit 2019
|
||||
echo ---
|
||||
|
||||
pause
|
||||
17
readme.txt
Normal file
17
readme.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
How to use these files?
|
||||
|
||||
This files only work from the PCs in the office. NOT WORKING THROUGH FILEZILLA! However you can download them and use on your own PC.
|
||||
They only work on Windows.
|
||||
|
||||
- backupRvt.bat
|
||||
Copy this file to the BIM modeling folder.
|
||||
If you run it, it will create a folder in the backup folder of the project. The name of this folder will be the current date.
|
||||
It COPIES all of the rvt files to there. No other files touched.
|
||||
|
||||
- cleanMacFiles.bat
|
||||
Copy to any folder, it will DELETE the macintosh junk (the ._ files) from every subfolder
|
||||
|
||||
- RevitFolderCleaner.bat
|
||||
Copy this script to any folder. It will MOVE all revit backup file from all subfolders.
|
||||
Before running you have to edit the file(rightclick -> edit). On the third line change the path to where you want to MOVE the files: SET FOLDER=D:\Backup\Revit\
|
||||
After you set the folder run the script
|
||||
Reference in New Issue
Block a user