GetPreviewImageFile Method


IExternal Data Manager Server Get Preview Image File Method

Retrieves the handle of preview image.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
string GetPreviewImageFile(
	Document document,
	ExternalDataManagerDataItemId dataId
)

Parameters

document Document
The document.
dataId ExternalDataManagerDataItemId
The id of data.

Return Value

String
The path of the preview image file.
Remarks
Alternative to getPreviewImage: provide a temporary file path that contains the preview bitmap. Useful when the preview is larger than what can reasonably be kept in memory or when the generation happens in another process.
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 →