REM DISSEMINATES REVIT OOTB DRAG AND DROPPED FOLDER TO CLIENT-SPECIFIC NAMED FOLDERS
@echo
REM file-folder path for drag and drop
Set source=%~1
echo %source%

rem set source=C:\ProgramData\Autodesk\RVT 2015

echo
REM NAMING PREFIXES FOR MAIN FOLDERS
    REM VERSION SUFFIX
set Version=2015
    REM DESTINATION PATH
set NewPath=C:\temp\libtest
    REM CLIENT PREFIX
set Client=OOTB\ootb_

echo
set USImperial=%newpath%\%Client%I(US)-%Version%
set USMetric=%newpath%\%Client%M(US)-%Version%
set CANMetric=%newpath%\%Client%M(CAN)-%Version%

Set RoboPrefs=/e /Z /DCOPY:T /MT:8 /XO /IT /XJ /FFT /DST /XJD /XJF /R:0 /TBD /LOG+:%newpath%\RVT_%version%_SPLIT.txt
rem  Set RoboPrefs=/e /Z /DCOPY:T /MT:8 /XO /IT /XJ /FFT /DST /XJD /XJF /R:0 /TBD /LOG+:%newpath%\RVT_%version%_SPLIT.txt /TEE
REM --SET COPY  English Templates (US)
set Src=%source%\Family Templates\English_I\
set Dest=%USImperial%\000-TEMPLATES-FAMILY
robocopy "%Src%" "%Dest%" %RoboPrefs%
mkdir %USImperial%\000-TEMPLATES-PROJECT


REM --SET COPY **METRIC TEMPLATES**
set Src=%source%\Family Templates\English\
set Dest=%USMetric%\000-TEMPLATES-FAMILY
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%CANMetric%\000-TEMPLATES-FAMILY
robocopy "%Src%" "%dest%" %RoboPrefs%
mkdir %USMetric%\000-TEMPLATES-PROJECT


REM --SET COPY IES For Metric & Imperial
set Src=%source%\ies\
set Dest=%USImperial%\Lighting\000-IES
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%CANmetric%\Lighting\000-IES
robocopy "%Src%" "%dest%" %RoboPrefs%
mkdir %CANmetric%\000-TEMPLATES-PROJECT

REM --SET COPY Imperial Library<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
set Src=%source%\Libraries\US Imperial
set Dest=%USImperial%
robocopy "%Src%"  "%dest%" %RoboPrefs%

REM --SET COPY US Metric Libraries<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
set Src=%source%\Libraries\US METRIC
set Dest=%USmetric%
robocopy "%Src%"  "%dest%%RoboPrefs%

REM --SET COPY CAN METRIC LIBRARIES
set Src=%source%\Libraries\Canada
set Dest=%CANmetric%
robocopy "%Src%"  "%dest%%RoboPrefs%

REM --SET COPY CONDUIT TABLES - Metric & Imperial
set Src=%source%\Lookup Tables\Conduit
set Dest=%USImperial%\Conduit\000-Lookup_Conduit
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%USMetric%\Conduit\000-Lookup_Conduit
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%CANmetric%\Conduit\000-Lookup_Conduit
robocopy "%Src%"  "%dest%%RoboPrefs%

REM --SET COPY Metric & Imperial
set Src=%source%\Lookup Tables\Pipe
set Dest=%USImperial%\PIPE\000-Lookup_Pipe
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%USMetric%\PIPE\Lookup_Pipe
robocopy "%Src%" "%dest%" %RoboPrefs%
set Dest=%CANmetric%\PIPE\Lookup_Pipe
robocopy "%Src%"  "%dest%%RoboPrefs%

REM --SET COPY Project Templates
set Src=%source%\Templates\US Imperial
set Dest=%USImperial%\000-TEMPLATES-PROJECT
robocopy "%Src%" "%dest%" %RoboPrefs%

set Src=%source%\Templates\US Metric
set Dest=%USMetric%\000-TEMPLATES-PROJECT
robocopy "%Src%"  "%dest%%RoboPrefs%

set Src=%source%\Templates\Canada
set Dest=%CANMetric%\000-TEMPLATES-PROJECT
robocopy "%Src%" "%dest%" %RoboPrefs%

REM --SET COPY Dictionaries
set Src=%source%
set Dest=%USImperial%\000-KEYS-CLASS-DIC
robocopy "%Src%" "%dest%"  revitEN?.dic
set Dest=%USMetric%\000-KEYS-CLASS-DIC
robocopy "%Src%" "%dest%"  revitEN?.dic
set Dest=%CANmetric%\000-KEYS-CLASS-DIC
robocopy "%Src%" "%dest%"  revitEN?.dic



pause


Comments

Popular posts from this blog

Revit area plans adding new types and references (Gross and rentable)

Organization and management of data in Revit across omniclass, Masterformat, Uniclass, and Uniformat