Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWG export issue: Title Blocks do not get exported

1 REPLY 1
Reply
Message 1 of 2
Anonymous
351 Views, 1 Reply

DWG export issue: Title Blocks do not get exported

I'm using the following code to export the sheets to dwg:

 

public void ExportToDWG(Document doc,ViewSheet view, string viewName, string output_path) {
    DWGExportOptions options = new DWGExportOptions()
    options.Colors = ExportColorMode.IndexColors
    options.ExportOfSolids = SolidGeometry.Polymesh
    options.FileVersion = ACADVersion.R2013
    options.HatchPatternsFileName = @"C:\Program Files\Autodesk\Revit 2017\ACADInterop\acdbiso.pat"
    options.HideScopeBox = true
    options.HideUnreferenceViewTags = true
    options.HideReferencePlane = true
    options.LayerMapping = "AIA"
    options.LineScaling = LineScaling.PaperSpace
    options.LinetypesFileName = @"C:\Program Files\Autodesk\Revit 2017\ACADInterop\acdbiso.lin"
    options.PropOverrides = PropOverrideMode.ByEntity
    options.TextTreatment = TextTreatment.Exact
    options.MergedViews = true
	
    ICollection<ElementId> views_collection = new List<ElementId>();
    views_collection.Add(view.Id);

    doc.Export(output_path, viewName, views_collection, options)
}
	

But when exporting the sheets, everything except Title Blocks gets exported:

 

Revit.PNGAutoCAD.PNG

 

Tags (2)
1 REPLY 1
Message 2 of 2
yimin.chenTW
in reply to: Anonymous

Hi @Anonymous,

 

I tried to ExportDwg with no problems at all(see pictures below).

Would you like to share your example file for us to try?

revit sample filerevit sample filedwg filedwg file

Yimin Chen
Developer Consultant
Developer Technical Services
Autodesk

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community