diff --git a/importobj-batch/1.x/ImportObj_Batch_1.3.dyn b/importobj-batch/1.x/ImportObj_Batch_1.3.dyn new file mode 100644 index 0000000..b29db3b --- /dev/null +++ b/importobj-batch/1.x/ImportObj_Batch_1.3.dyn @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + Test_BRA + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJ + + + + + False + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/importobj-batch/2.x/empty-dir b/importobj-batch/2.x/empty-dir new file mode 100644 index 0000000..e69de29 diff --git a/importobj-batch/obj-copy.bat b/importobj-batch/obj-copy.bat new file mode 100644 index 0000000..f6793f7 --- /dev/null +++ b/importobj-batch/obj-copy.bat @@ -0,0 +1,28 @@ +@echo off +SETLOCAL EnableDelayedExpansion +REM Obj import template copier +REM Copies and renames the default rfa file to all obj files in the folder. +REM Current revit file is for revit 2016 update it for later revit versions first +REM Created by Peter Gyetvai: gyetpet@gmail.com + +REM --------- +REM VARIABLES +REM --------- + +SET FILEEXT=OBJ +SET TEMPLATEFILENAME=obj-empty2016 + +REM ----------------------- +REM Beginning of the script +REM ----------------------- + +for /R "%~dp0" %%f in (*.%FILEEXT%) do ( + echo processing: %%f + + copy "%~dp0\%TEMPLATEFILENAME%.rfa" "%~dp0%%~nf.rfa" + echo "%~dp0%%~nf.rfa">> "%~dp0filelist.txt" +) + +REM ----------------- +REM End of the script +REM ----------------- \ No newline at end of file diff --git a/importobj-batch/obj-empty2016.rfa b/importobj-batch/obj-empty2016.rfa new file mode 100644 index 0000000..1dc1bd0 Binary files /dev/null and b/importobj-batch/obj-empty2016.rfa differ diff --git a/importobj-batch/readme.md b/importobj-batch/readme.md new file mode 100644 index 0000000..c0864cf --- /dev/null +++ b/importobj-batch/readme.md @@ -0,0 +1,15 @@ +# importobj-batch + +Script for batch importing obj files to separate revit families + +Written for Revit 2016 + +## Usage + +1. Copy the .bat and the .rfa to the same folder as the objs + +2. Run obj-copy.bat + +3. If you want to change settings for the import script open the script in dynamo and modify the input values and save. + +4. In Revit batch processor select the created filelist and the dynamo script and it will create the objs inside the rfa files. \ No newline at end of file