I am trying to use the
ElementTransformUtils.CopyElements method but specifically the
View, ICollection<ElementId>, View, Transform, CopyPasteOptions overload. When I use the method with the arguments
ViewSheet, ICollection<ElementId>, ViewSheet, I get an error saying expecting Document, got ViewSheet.
I am working in Revit 2018 with Dynamo 2.0.3. As far as I can tell, ViewSheet should work as a valid argument for the overload I am going for. Does anyone know what the issue would be?
n_restId = ElementTransformUtils.CopyElements(o_sht, o_restId, n_sht)
o_sht is the original ViewSheet with elements,
o_restId is a list of ElementId for elements on
n_sht is the destination ViewSheet.
I can add the rest of the python code if needed but 90% of it is irrelevant and pretty long.
Edit: Side question, I was trying to return the actual Autodesk.Revit.Exceptions class that it springs up but instead, the exception is an IronPython exception. How would I go about returning the Autodesk exception class in the
try; except: statement?