I'm trying to copy some ViewSheet elements from one document to another, but I always get a: "Copying one or more elements failed."
It's working fine with ViewDrafting and ViewSchedule - checked the DuplicateViews sample on the SDK already, and this code is entirely based on that.
Here is the line of the failure:
ICollection<ElementId> copiedIds =
ElementTransformUtils.CopyElements(fromDocument, elementIds, toDocument, Transform.Identity, options);
I wonder if there is a way to mitigate these CopyElements errors to see if I'm missing something.