this dynamo script is from node “copy elements from view to view” but the problem it is reading only single input which is one source view and one destination view. i would like to read list of source views and list of destination views.
i really need your help .
thanks a lot
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
from System.Collections.Generic import*
ele = ListElementId
sourceView = UnwrapElement(IN[1])
destView = UnwrapElement(IN[2])
try:
newId = ElementTransformUtils.CopyElements(sourceViews, ele, destView, None, CopyPasteOptions() )
res1 = [doc.GetElement(newId[i]).ToDSType(False) for i in xrange(len(newId) )]
except:
TransactionManager.Instance.EnsureInTransaction(doc)
newId = ElementTransformUtils.CopyElements(sourceView, ele, destView, None, CopyPasteOptions() )
res1 = [doc.GetElement(newId[i]).ToDSType(False) for i in xrange(len(newId) )]
i will chck it out but i tried many inputs to source and destination views but it is only accepting views node.that is why i was wondering it is python issue
Hello @Kulkul
i have tried list mapping from the link you have send to me but still not working i think any kind of list is not accepted to be as input to this node
what i want is to trasnfer from section S1 to S1A and From S2 to S2B
.
hello @Kulkul
thanks a lot i really appreciate . thank you soo much. it works just if started with sections but i want to read from the created sections directly and no need to selct the desired sections.
but just to confirm the input to list chop must be from type ?? because i tried to use the the output from list transpose (elements as in the fourth snap shot) as an input to list chop but it didn’t work ??
I have question? How is this script has advantage to revit process copy to clipboard and Align to selected views? I made some Run and testing in revit and looks like the same. Please enlightened me Master Jedi?