- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I like to export dwg from with c#.
How can i export with a Layout in the paperspace dwg.
The following code export only things in the modelspace.
// setting up the dwg export options
DWGExportOptions o = new DWGExportOptions();
ExportDWGSettings dwgSettings = ExportDWGSettings.Create(doc, "RevitExportSettings");
o = dwgSettings.GetDWGExportOptions();
o.ACAPreference = ACAObjectPreference.Geometry;
o.Colors = ExportColorMode.TrueColorPerView;
o.ExportOfSolids = SolidGeometry.ACIS;
o.ExportingAreas = false;
o.FileVersion = ACADVersion.R2013;
o.MergedViews = true;
o.LineScaling = LineScaling.ViewScale;
o.HideReferencePlane = true;
o.HideScopeBox = true;
o.HideUnreferenceViewTags = true;
o.TargetUnit = ExportUnit.Millimeter;
....
doc.Export(ExportFolder, plannumber, icollection, o);
When i use the Revit export button there is an layout in the paperspace.
thx for help.
Solved! Go to Solution.