hi guys, when you work with thumbnails, how do you go about it? Do you use Solidworks-internal methods such as GetPreviewBitmap or do you have other tools/methods?
I have used ISldWorks::GetPreviewBitmap in the past but you can also use ISwDMDocument10::GetPreviewBitmap. Both return a pointer to IPictureDisp object which you will have to convert to System.Drawing.Image before you can save or use the image. I think none of the methods work in stand alone application. They only work in either macro or add-in. Here is the example for your reference: Get Preview Bitmap of Drawing Sheet Example (C#) - 2025 - SOLIDWORKS API Help
- I use SaveBMP()
SaveBMP Method (IModelDoc2) - 2019 - SOLIDWORKS API Help - Get images of files in a folder