DWG Export Settings

DWG Export Settings

Dale.Bartlett
Collaborator Collaborator
1,002 Views
1 Reply
Message 1 of 2

DWG Export Settings

Dale.Bartlett
Collaborator
Collaborator

Is it possible to get the DWG Export Settings in the current project? Dale




______________
Yes, I'm Satoshi.
0 Likes
Accepted solutions (1)
1,003 Views
1 Reply
Reply (1)
Message 2 of 2

Dale.Bartlett
Collaborator
Collaborator
Accepted solution

Update:

I received this reply from ADN:

 

Thanks for your query,

Yes, we can get ExportDWGSettings, this class inherits from Element, so we can use ElementFilter to filter all of them. code example:

 

            var settingFilter = new ElementClassFilter(typeof(ExportDWGSettings));

            FilteredElementCollector exportDwgSettings = new FilteredElementCollector(RevitDoc);

            exportDwgSettings = exportDwgSettings.WherePasses(settingFilter);

            foreach (ExportDWGSettings element in exportDwgSettings)

            {

 

            }

 

Best Regards,

Aaron Lu

Developer Technical Services http://adn.autodesk.com

 

And this post seems to duplicate the request (with responses):

http://forums.autodesk.com/t5/revit-api/how-to-get-exportdwgsettings-use-revit2014-api/m-p/5427133/h...

I am yet to test the samples.

Dale

 




______________
Yes, I'm Satoshi.
0 Likes