Does anyone know how to force SW to resave the thumbnailpicture, and can one get access to the thumbnail for inclusion insay a excel sheet?SolidworksGeneral
Answers8
JB
JB2009-01-15Best Answer
I believe the thumbnail is generated every time you save. Areyou just looking to have a .bmp file?
KL
KL2009-01-15
I don't believe thay are available from within Windows or SW,but you can easily create them with a screen captureutility.
SF
SF2009-01-15
No it does not look like the thumbnail is generated evertime. I find sometimes I will be zoomed in and save then cont. towork saving with the full view of the model. When I go to reopen itthe thumbnail is still of the zoomed in state.
No I do not want a .bmp file. I know sometime ago I read someonehad a macro that accessed the thumbnail of SW files, just can notremember where. I hope they read this forum.
I want to create a picture field in my Excel part number generatorof each prt, ass and drw. That also why I want to regen. thethumbnail evertime.
AW
AW2009-01-15
Doug,
The thumbnail is embedded in the SW file. I believe you can get toit through the API. This would involve having custom code added toyour Excel file to go get and display the thumbnail graphic.
You might ask you question over in the API sub forum to see ifanyone can help you with the code required.
Cheers,
SF
SF2009-01-15
Thanks Anna
JB
JB2009-01-15
I dug into this a little bit... it seems like the bitmap youcan get to through API is different from the pretty isometricpreview you get from the Open dialog. The attached macro allows youto browse for files and extract their bitmaps (for all configs thathave them) to the same folder. The bitmaps I get using this aredifferent from the ones I see in the SolidWorks Open dialog,especially for the configurations of assemblies. Anyone have anyidea why the discrepancy?
SF
SF2009-01-15
Josh will this macro work in2009
JB
JB2009-01-15
It should. Do you also have Excel 2002? I think it might notwork on the 64 bit version of Solidworks, but I'm not sure.
No I do not want a .bmp file. I know sometime ago I read someonehad a macro that accessed the thumbnail of SW files, just can notremember where. I hope they read this forum.
I want to create a picture field in my Excel part number generatorof each prt, ass and drw. That also why I want to regen. thethumbnail evertime.
The thumbnail is embedded in the SW file. I believe you can get toit through the API. This would involve having custom code added toyour Excel file to go get and display the thumbnail graphic.
You might ask you question over in the API sub forum to see ifanyone can help you with the code required.
Cheers,