DGN Export settings

DGN Export settings

info
Contributor Contributor
309 Views
3 Replies
Message 1 of 4

DGN Export settings

info
Contributor
Contributor

Hi,

 

we are trying to export all views in one single dgn file using revit api. but we can not create one single file.we can create all views in different dgn file.

we apply dgnOptions.MergedViews = true ; but nothing change in export file. what we do ? for that .

our code is shown below. If any other information is required then feel to free. 

 

 code-->

 

DGNExportOptions dgnOptions = new DGNExportOptions();

dgnOptions.Colors = ExportColorMode.IndexColors;
dgnOptions.FileVersion = DGNFileFormat.Default ;
dgnOptions.MergedViews = true ;
//dgnOptions.HatchPatternsFileName = @"C:\Program Files\Autodesk\Revit 2018\ACADInterop\acdbiso.pat";
dgnOptions.SeedName = "V8-Metric-Seed3D.dgn";
dgnOptions.HideScopeBox = true;
dgnOptions.HideUnreferenceViewTags = true;
dgnOptions.HideReferencePlane = true;
dgnOptions.LayerMapping = "DGNV7";
dgnOptions.PropOverrides = PropOverrideMode.ByEntity;

exported = document.Export(Path.GetDirectoryName(document.PathName),Path.GetFileNameWithoutExtension(document.PathName), views1, dgnOptions);

 

Thank you.

0 Likes
310 Views
3 Replies
Replies (3)
Message 2 of 4

sonicer
Collaborator
Collaborator

I think mergeview is mean all view,legends and shedulle on sheet will be exported to one file. not separated file as xrefs. Its not for merge files

0 Likes
Message 3 of 4

info
Contributor
Contributor

yes we know it.then how to we create all view,legends and shedulle on sheet will be exported to one dgn file.

Thank you

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Thank you for your query.

 

Can you achieve what you want manually through the user interface?

 

If not, it is probably not possible programmatically either.

 

Please take a look at this discussion on exporting all Revit views to a single DWG file:

 

http://forums.augi.com/showthread.php?38475-Export-all-Revit-views-to-Single-DWG-File

 

Maybe part of it applies to your case as well.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes