Our previous BIM Manager gathered details from various projects by exporting drafting views as seperate rvt files. I’m sure the export was easy, but now they are very hard to scroll thru. I would like to import 200 drafting views (1 per file) from multiple rvt files into 1 Revit file. There are 200 Revit files, each containing 1 drafting view. Seems way too time consuming to use “Import Views” 200 times. Is this something for Dynamo?
Yes, this can work, and it is a popular topic on the forum. Give it a shot and let us know where you get!
Bruh!! You’re right. I spent 30 minutes copying this and adjusting a couple of things. Then I SAVED 30 minutes of work with 1 button press. Many thanks to a.lara Copy Drafting Views to Revit Master File - #3 by a.lara …I did not need to save each file upon closing so I just disconnected that part.
I’m very new to Dynamo and this is my first attempt at trying it, so hoping my inexperience is causing my problem and someone has a solution. I have a large library of drafting view details in individual files that I would like to put together into one; same as this topic has already solved and I started with these steps. However, if the View Name is the same as another, it will rename the duplicate view (Detail, Detail1, Detail2, etc.) but the view is empty. It creates the view but there isn’t anything in it. I have many details with the same view name. I found a way to add additional steps in the script to rename the drafting view after it is imported. However, Dynamo will not bring in the view, rename, and then move on to the next file and instead collects all the views in the background, brings them all in together, and then tries to rename them all at the same time. So, any views that have the duplicate name are brought in empty again. Is there a trick to go along with this script to complete each file view brought in, renamed and then move on to the next file in the directory? I added the rename steps between the copy views and passthrough so I thought I would see the views populate in the file, get renamed, and then start on the next one but that isn’t happening. The script works exactly as it should as long as I add files with different view names into my test folder. As soon as there is a duplicate, it does not give an error, but I get the empty views. Thank you and hope this made sense.
If you notice, I have disconnected the “Save As” node, because I wanted to do that manually, but perhaps reconnecting the “Save as” function would have an impact on your problem.
I do have the save as connected and tried to close with and without saving. The result is the same. Any view with the same name inserts blank. I also tried to write a script that would open each file and rename the view to make it unique, save and then close in order to be able to the insert the views with the other script. It looks like the rename string gives the correct name and the file saves, but when I open it, the view name doesn’t get updated. So, just can’t figure out what I’m missing.
My guess is that it has to do with the pass through. I understood that the pass through was needed as a delay so that Revit would wait until the file was fully opened before creating the view. The passthrough portion of the script is telling Revit to get the current document “name” and wait until it is opened before importing it as a view? If two consecutive files have the same document name, that would prevent the delay from happening. I did not create the original script, but I listed a link to the original post and the author. So I don’t have a thorough understanding of how the pass-through works, but it solved my problem I had at the time. You have found a vulnerability here that will need to be solved for this script to be more reliable. Maybe try adding some kind of a “IF” the document equals the previous document “THEN” …
I suppose an IF THEN statement may work, but with my limited Dynamo knowledge and skills, not sure if I’m ready to tackle that. However, I did find information and a link to Bird Tools that I was able to utilize with my dynamo script for renaming the views first, and then once I had the views with a unique name, I was able to run the script to import the views and it worked great. It was 2 steps, but it gave me the result I was looking for and has been a huge timesaver, so for now I think I’ll continue with that method. Thank you so much for responding. Appreciate your time.