Exporting selected objects to DWG

Exporting selected objects to DWG

mhillis
Advocate Advocate
1,984 Views
1 Reply
Message 1 of 2

Exporting selected objects to DWG

mhillis
Advocate
Advocate

Utilizing the API what is the most simple, direct method of exporting selected objects in a given Revit project to a DWG?

Based on the only constructor I see, Document.Export(folder, name, views, DwgExportOptions), I would build a view, isolate my objects in that view, and then just pass that view into the constructor.

 

By any chance, is there something a bit more direct such as passing in the objects directly for export?

 

 

0 Likes
1,985 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Mhillis,

 

Thank you for your query.

 

Yes, that is the way to go; set up a view and isolate the required elements in it.

 

That is about as direct as it gets.

 

The Building Coder presents several samples showing how this can be easily implemented:

 

 

I hope this helps.

 

Best regards,

 

Jeremy

 



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

0 Likes