Copy from View to View

revit
excel
dynamo
list-filter

#1

Hello all,

I am a new user trying to learn Dynamo. I have successfully created a graph that will copy the detail items, lines, text, etc out of a one drafting view and paste it into a new drafting view I have created. For my next step, I am trying to upgrade this graph so that Dynamo will obtain the original drafting view name from an Excel file, as well as the copy drafting view. However, I am running into two problems (that I know of D: )

  1. I cannot input a list into the “Element.CopyFromViewToView” node. How would I create a loop from my list to feed into the node one at a time?

  2. Why are both options for the “copy drafting view” name coming up false?

I have attached a screenshot of my graph. Please let me know if you have any questions or require any more information. Thank you all for any help!

Thanks all! I’ve managed to update my graph, and it’s slowly getting to where I want it! However, my main problem is still #1. The “Element.CopyFromViewToView” node from the Rhythm package does not seem to accept lists in their view inputs, only items.

What would be a workaround for this? I was thinking perhaps a loop function?


#2

Your list structure doesn’t match. Flatten the list from List.Transpose.


#3

Thanks, that worked! However, that brings up another question. I did not flatten the list for the original drafting view; why did it work then?

Also, do you happen to have an idea for the 1st problem of mine?


#4

That’s a good question. I can’t give you an answer off the top of my head, but I will say it’s always best to match your list structure. It’s not always necessary but I guarantee it will make your life easier in the long run. (And it keeps your graph clean.)

Again, it’s probably list structure. I assume you’re trying to copy a list of elements from a single view to a single view - however this may be to multiple views in other instances. I think your problem might be because your source view is a list (even though it’s one view) and your destination view is a single item. Flattening your other list of drafting views might fix this.


#5

Enabling levels would likely clear up some of these issues as another work around.


#6

What do you mean by enabling levels?


#7

What do you mean by enabling levels?

You will find a good explanation on List@Level here :slightly_smiling_face:
http://dynamoprimer.com/en/06_Designing-with-Lists/6-3_lists-of-lists.html


#8

@hjnbyun90

Did you find a solution for your 1st problem yet? I need / want to achieve the same.

Or did you find a way to loop the function?


#9

hi @Nick_Boyts ,
i need help please, i tried to use the node copy from view to view but it doesn’t work with multiple views. i tried to add two views as source views and two as destination views but still doesn’t work. any advice.

thanks a lot


#10

Can you show a preview of the elements you’re copying?


#11

Hi @Nick_Boyts
i just have in the first section dimension and spot elevation so i would like to copy to the other sections

thanks a lot


#12

I’m guessing it’s because you have an empty list. I also don’t think you’re combining your list of elements correctly - try something like AddItemToFront.


#13

hello @Nick_Boyts
thanks again for your support.but i tried to add items to not have empty list however, still the same and i tried add item to front as well and there is no change.from the moment it is list to copy from to view node it doesn’t work but it works if it is single view .


#14

Can you share your dyn and a stripped down rvt file?


#15

hi @Nick_Boyts
thanks for your support. but i figure it out it was a matter of filter missing.

thanks s alot