Revit 2026 API
Base |
Returns a list of names of predefined setups of export options.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static IList<string> GetPredefinedSetupNames( Document document )
Public Shared Function GetPredefinedSetupNames ( document As Document ) As IList(Of String)
public: static IList<String^>^ GetPredefinedSetupNames( Document^ document )
static member GetPredefinedSetupNames : document : Document -> IList<string>
Parameters
- document Document
- A Revit document to retrieve names from.
Return Value
IListStringAn array of strings representing names of predefined setups.

Exception | Condition |
---|---|
ArgumentException | document is not a project document. |
ArgumentNullException | A non-optional argument was null |

The predefined setups may be used for export to both DWG and DXF formats.
To get predefined options in the desired format use the static method
getPredefinedOptions defined in DWGExportOptions or DXFExportOptions respectively.
See Also