API access to ‘Export views on sheets and links as external references’ settings in exporting Revit file to DWG / CAD format

By Partha Sarkar

While exporting to DWG file (or other CAD formats) in the 'Export CAD formats' dialog box we have a check box to select / unselect 'Export views on sheets and links as external reference'. How can we set this to 'Yes' or 'No' using Revit API ?

Export_Revit_to_DWG_Options
 

 

To set this option we need to use DWGExportOptions.MergedViews API.

public bool MergedViews { get; set; } -> Is used to merge all views in one file (via XRefs).  Default value is false  for mergedViews.

Hope this is useful to you !