CopyElements method in RVT 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
ElementTransformUtils.CopyElements(RevitSourceDocument, new List<ElementId> { viewToCopy.ViewId }, DestinationDoc, Autodesk.Revit.DB.Transform.Identity, new CopyPasteOptions());
I'm using the CopyElements method to copy sheet views from one file to another and get the error "Sheet views in this model cannot contain more than one instance of the same view" when trying to copy in Revit 2024 version.
In version 2023 and earlier CopyElements allows me to copy sheetview (but does not include draftView or title, text) I have to use copyelements (view to view) again to copy them.
In version 2024 there has been a change, (title ,text) will be copied along with the sheet view, however when I copy the sheet view containing Drafting View or Image View, the CopyElements function returns the error "Sheet views in this model cannot contains more than one instance of the same view."
Has anyone else had a similar problem and how did you handle it?