| Revit 2022.1 API |
| ImageExportOptions..::..GetFileName Method |
| ImageExportOptions Class See Also |
Gets the file name that will be produced when exporting a view to an image.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.1.0)
Since:
2015
Syntax
| C# |
|---|
public static string GetFileName( Document aDoc, ElementId dbViewId ) |
| Visual Basic |
|---|
Public Shared Function GetFileName ( _ aDoc As Document, _ dbViewId As ElementId _ ) As String |
| Visual C++ |
|---|
public: static String^ GetFileName( Document^ aDoc, ElementId^ dbViewId ) |
Parameters
- aDoc
- Type: Autodesk.Revit.DB..::..Document
The document that owns the view.
- dbViewId
- Type: Autodesk.Revit.DB..::..ElementId
View which is to be exported as image.
Return Value
The generated exported image file name.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |