Get preview bitmap for drawings
Get preview bitmap for drawings
(OP)
OK, finally got my API problem straightened out. I'm trying to use previewBitmap = SldWorks.GetPreviewBitmap ( filePathName, configName ). Works fine for assemblies and parts. No go for drawings.
I've tried various arguments for the configuration name ("", Empty, Null, "Default") and I get nothing. Is there a trick?
I've tried various arguments for the configuration name ("", Empty, Null, "Default") and I get nothing. Is there a trick?
Good and evil: wrap them up and disguise it as people.






RE: Get preview bitmap for drawings
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
RE: Get preview bitmap for drawings
ie:previewBitmap = SldWorks.GetPreviewBitmap (filePathName)
RE: Get preview bitmap for drawings
Excerpt from email:
Sorry, GetPreviewBitmap does not work with drawings. I have the
following enhancement request:
162462 - SldWorks::GetPreviewBitmap should support drawings
RE: Get preview bitmap for drawings
You would have thought they would have listed that limitation in the help screen or at least not listed drawings as a viable option in the sample program.
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
RE: Get preview bitmap for drawings
A little example with free VB source code (which can be used in VBA also) will do the trick for the drawing preview.
HTH,
Stefan
--
unofficial german SolidWorks helppage
http://solidworks.cad.de
Shareware, freeware, tools and macros
http://swtools.cad.de
RE: Get preview bitmap for drawings