Application: DuplicateViews
Revit Platform: All
Revit Version: 2014.0
First Released For: 2014.0
Programming Language: C#
Skill Level: Medium
Category: Elements, Views
Type: ExternalApplication

Subject: Copy paste drafting views and schedules from one document to another
Summary: 
Use the copy paste APIs to copy drafting views and schedules from one document to another.  The drafting view contents will also be copied.  

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.ElementTransformUtils
Autodesk.Revit.DB.CopyPasteOptions
Autodesk.Revit.DB.IDuplicateTypeNamesHandler
Autodesk.Revit.DB.FilteredElementCollector
Autodesk.Revit.DB.IFailuresPreprocessor

Project Files: 
Application.cs – Implements the IExternalApplication.
DuplicateAcrossDocumentsCommand.cs - A command to copy schedules and drafting views across documents.
DuplicateViewUtils.cs - Utilities that facilitate duplication of drafting views and schedules into another document.

Description: 
This sample copies all drafting views, image views, and schedules from the currently active document into another document that is currently in memory. All drafting elements in the non-schedule views are also copied, as is all schedule formatting and filtering.  It uses API tools to hide any duplicate types warnings which typically arise when doing this from the user interface.

Instructions: 
Open 2 project documents in Revit.  Set the active document to be the document from which you wish to copy views.   Choose Add-ins -> CopyPaste -> Duplicate across documents. 

A popup message will list the number of schedules, drafting views and drafting elements copied by the command.