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: 

Export to DWG

3 REPLIES 3
Reply
Message 1 of 4
il_iliev
539 Views, 3 Replies

Export to DWG

Hi All,

 

I'm using the Revit SDK 2012 sample for ImportExport. 

Using this code Revit reads all settings from AIA2 setup, except whether to merge the views. bool MergedViews { get; set; } returns always true, no matter how it is in the Setup.

 

 

//parameter : DWGExportOptions 
DWGExportOptions dwgExportOptions = DWGExportOptions.GetPredefinedOptions(m_activeDoc, "AIA2");

//Export
exported = m_activeDoc.Export(m_exportFolder, m_exportFileName, views, dwgExportOptions);

 

 

 

I need help.

 

best regards

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: il_iliev

dear il_iliev,

 

are you also niki, who submitted the same question on the blog?

 

thank you for reporting this and your persistence!

 

after looking more closely at the existing change request concerning this issue, i see that that one of them is still being worked on and the fix will probably become available in the next major release. as always, we make no promises regarding future products or functionality, however.

 

best regards,


jeremy
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com

 



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

Message 3 of 4
il_iliev
in reply to: jeremytammik

Dear Jeremy,

 

Yes I'm Niki. Thank you for your answer. 

 

best regards

 

Niki

Message 4 of 4
jeremytammik
in reply to: il_iliev

Dear Niki,

Some interesting news on this:

1. The merge views check box in the UI has no effect; views are never merged in the UI regardless of the setting.

2. The MergedViews property in the API is always initially set to false, regardless of the UI setting.

3. The good news: The MergedViews property in the API does do the job you would expect, e.g. control whether or not views are merged.

It seems to be the only way to control this, since the UI check box does not.

Thank you for bringing this to our attention!

Cheers, Jeremy.
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com



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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community