Sample of creating thumbnail of a RVT model

Hi,

Is there any sample code of creating thumbnail of a RVT model ?(Using HOOPS Exchange)

Thanks.

Exchange has limited options for exporting to an image file, namely from a PDF by using A3DPDFDocumentExportAsImage.

For a Revit file, I think your best bet is to actually use Visualize Desktop/Mobile API. Please see the Image class:

A quick example would be:

HPS::Image::File::Export("output.png", myWindowKey, 150, 150, HPS::Image::Format::Png, false);