- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am trying to understand why this is happing, and how to avoid it...
I am writing a macro that copies selected sheets and the views on these sheets from a linked model to my active model.
But when I copy over a ViewPlan it also brings in other stuff too.
- Callout Head
- Level Head
- Callout Tags
- Fill Patterns
- Materials
- Viewport Types
Why and is there a way to stop it? If no is there an easy way to access the IDs of these elements so I can delete them? Because I haven't found how to access this, except for copy paste the ID's from the warning dialog and manually delete them, which I wish to avoid,
also I notice that the ScopeBox from the Link is also brought in, which is telling me that view specific elements hosted that this view are being copied, which makes sense, but the list above does not quite make sense, to me?
What elements are hosted to a view? To be clear, I am not wanting to copy any elements in the view, I only want to copy the view itself. even though the scopebox is fine. I actualy want that.
I havn't used any copy paste options, because it seems this only lets me either use the default or cancel to avoid seeing the dialog.
Thanks for any advise
Helpers.Functions.CopyElements(sourceDocument, destinationDocument, collection);
// Copy Elements from Source Document to Destination Document
public static void CopyElements(Document sourceDocument, Document
destinationDocument, ICollection<ElementId> collection)
{
ElementTransformUtils.CopyElements(
sourceDocument, collection, destinationDocument, null, null);
}
Solved! Go to Solution.