Let’s say you have 15 RVT links in FileA, and you want to copy them into FileB. Revit doesn’t usually want you to have two instances of the same linked file loaded into two different open files in a single instance of Revit (that was a mouthful!)
However, we need to work in the same instance of Revit to be able to copy/paste. So, here is how you can do it (relatively reliably):
In FileA.rvt, Select all of the Revit links that you want to copy (easiest in a 3D view)
Switch to a Plan view and Ctrl+C
Still in FileA.rvt, open Manage Links dialog and unload all of these links that you are copying
Switch to FileB.rvt, and go to a Plan view that matches the one in step 4
Modify – Paste – Aligned to Current View
Even though they are unloaded in FileA, the important stuff is in the Clipboard in memory, so Revit can still paste properly into FileB, and you don’t have a “conflict” of the file being loaded in two files at once
Save FileB, close FileA without saving (or reload the links etc)
There you go, you have learned how to copy unloaded RVT links. Enjoy!
(Note: this was tested on Revit 2013 Update Release 3)
Have you ever wanted to copy a directory tree of family files to a single directory? Once you do this, you can load them all into a Revit instance in a single “Load Family” operation – just go to the directory and then Ctrl+A to select all, then click Open.
The following script will copy a directory tree to a single directory – essentially discarding the directory structure. It also filters by file type and only includes RFA files. Copy the code to Notepad, save as CMD or BAT.
dir “sourcedirectory” /A:D /B /S > tempListOfDirs.txt For /F “tokens=*” %%A IN (tempListOfDirs.txt) Do ( If Exist %%A* ( XCOPY “%%A*.rfa” “targetdirectory” /Y /R ) ) del tempListOfDirs.txt
Once you have a single directory of RFA files and have loaded them all into Revit, you could then use the categorizer to sort them all into directories by Category… its really an automated and free way to upgrade and sort your family library.
Note: I had previously posted a similar script using Robocopy at
Let’s say you have exported all families in a Revit project to a bunch of folders by Category, but you want to get them all into one folder so you can drag-drop and load them all into a new project all at once…
Copy the following into a batch file:
@echo off set source=”E:tempEexport” set destination=”E:tempEexport2″
::Not sure if this is needed ::It guarantees you have a canonical path (standard form) for %%F in (%destination%) do set destination=”%%~fF”
for /r %source% %%F in (.) do if “%%~fF” neq %destination% ROBOCOPY “%%F” %destination% *.rfa /COPYALL /R:0
Now, change the text in red to suit your source and destination (my destination folder was empty). Run the batch file and you should have a stack of RFAs all sitting in that folder. Note: results may be a bit unpredictable if you have duplicates of particular files in the source directory tree.
If you are having problems with the ‘Copy Spreadsheet’ utility, it is likely because you are running 64 bit Revit or you have recently updated Revit. If you haven’t heard of this tool, it is a simple program made in Autohotkey, and it automates the ‘copying’ of data from a spreadsheet into a Revit schedule. The Revit schedule will need to be a key schedule, and you will need to add the columns and rows before starting the utility.