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

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →