CustomExporter Constructor


Constructs a new instance of a CustomExporter for a given document using the input instance of IExportContext as the output device.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2014

Syntax

C#
public CustomExporter(
	Document document,
	IExportContext context
)
Visual Basic
Public Sub New ( _
	document As Document, _
	context As IExportContext _
)
Visual C++
public:
CustomExporter(
	Document^ document, 
	IExportContext^ context
)

Parameters

document
Type: Autodesk.Revit.DBDocument
The document containing the model to be exported
context
Type: Autodesk.Revit.DBIExportContext
An instance of a context class that will be consuming the output

Remarks

The input context should be an instance of a class that implements either IModelExportContext or IPhotoRenderContext interfaces.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →