ElementTransformUtils - Copy Elements Method

Hi everyone,

Im having a problem with copying elements from a document to another document in Revit and was wondering if anyone has had a similar experience.

The python script I am using:

The result:

“Some of the elements cannot be copied, because they belong to a different view”

Hi, welcome to the forum!

Well, as the error explicitly states, you are trying to copy elements that cannot be copied to another document view without specifying the destination view. This most likely happens when copying annotation elements. Filter them out or try this method if you need the annotation elements:

https://www.revitapidocs.com/2016/0f6a7a2e-13b9-008a-4c41-951a0702d16b.htm

I got it to work from one document to the other, the issue was elemsout instead of elemsOut. I think my other issue now is getting items from a family to a drafting view using the CopyElements method below:

https://www.revitapidocs.com/2016/b22df8f6-3fa3-e177-ffa5-ba6c639fb3dc.htm

Any help is appreciated.

Thanks